public class OnePropertyInterceptor extends java.lang.Object implements ParsingInterceptor
This is typically where a component only has one property which is a value or component. The configuration is more readable because the property name element can be ommitted. For instance:
<snack>
<fruit>
<apple/>
</fruit>
<snack>
becomes:
<snack> <apple/> <list>This interceptor works by creating an invisible RuntimeConfiguration equivalent to the omitted element.
| Constructor and Description |
|---|
OnePropertyInterceptor() |
OnePropertyInterceptor(java.lang.String property) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getProperty() |
ArooaContext |
intercept(ArooaContext suggestedContext)
Intercept current parsing.
|
void |
setProperty(java.lang.String property) |
public OnePropertyInterceptor()
public OnePropertyInterceptor(java.lang.String property)
public ArooaContext intercept(ArooaContext suggestedContext) throws ArooaConfigurationException
ParsingInterceptorintercept in interface ParsingInterceptorsuggestedContext - A suggested context which may be over ridden.ArooaConfigurationExceptionpublic java.lang.String getProperty()
public void setProperty(java.lang.String property)