public class StandardArooaParser extends java.lang.Object implements ArooaParser<ArooaContext>
ArooaParser that configures a provided root
Object. The root Object is considered to be a component and
so may be given an id and is registered with the
the ComponentPool| Constructor and Description |
|---|
StandardArooaParser(java.lang.Object root)
Constructor that will use a
StandardArooaSession with
a StandardArooaDescriptor. |
StandardArooaParser(java.lang.Object root,
ArooaDescriptor descriptor)
Constructor with a
ArooaDescriptor that will be
used in a StandardArooaSession. |
StandardArooaParser(java.lang.Object root,
ArooaSession session)
Constructor with a
ArooaSession. |
| Modifier and Type | Method and Description |
|---|---|
ArooaElement |
getExpectedDocumentElement()
Getter for the expected document element.
|
ArooaSession |
getSession()
Get the
ArooaSession used. |
ConfigurationHandle<ArooaContext> |
parse(ArooaConfiguration configuration)
Parse an
ArooaConfiguration. |
void |
setExpectedDocumentElement(ArooaElement expectedDocumentElement)
Set the expected document element.
|
public StandardArooaParser(java.lang.Object root,
ArooaSession session)
ArooaSession.root - The root object. Must not be null.session - The ArooaSession. Must not be null.public StandardArooaParser(java.lang.Object root,
ArooaDescriptor descriptor)
ArooaDescriptor that will be
used in a StandardArooaSession.root - The root object. Must not be null.descriptor - The Descriptor. May be null.public StandardArooaParser(java.lang.Object root)
StandardArooaSession with
a StandardArooaDescriptor.root - The root object. Must not be null.public void setExpectedDocumentElement(ArooaElement expectedDocumentElement)
expectedDocumentElement - public ArooaElement getExpectedDocumentElement()
public ConfigurationHandle<ArooaContext> parse(ArooaConfiguration configuration) throws ArooaParseException
ArooaParserArooaConfiguration.parse in interface ArooaParser<ArooaContext>configuration - The configuration.ConfigurationHandle.ArooaParseException - If parsing fails.public ArooaSession getSession()
ArooaSession used. This will either
be as provided or the one created.