public class OnePropertyInterceptor extends 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(String property) |
Modifier and Type | Method and Description |
---|---|
String |
getProperty() |
ArooaContext |
intercept(ArooaContext suggestedContext)
Intercept current parsing.
|
void |
setProperty(String property) |
public OnePropertyInterceptor()
public OnePropertyInterceptor(String property)
public ArooaContext intercept(ArooaContext suggestedContext) throws ArooaConfigurationException
ParsingInterceptor
intercept
in interface ParsingInterceptor
suggestedContext
- A suggested context which may be over ridden.ArooaConfigurationException
public String getProperty()
public void setProperty(String property)