public class StandardArooaParser extends Object implements ArooaParser
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(Object root)
Constructor that will use a
StandardArooaSession with
a StandardArooaDescriptor. |
StandardArooaParser(Object root,
ArooaDescriptor descriptor)
Constructor with a
ArooaDescriptor that will be
used in a StandardArooaSession. |
StandardArooaParser(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 |
parse(ArooaConfiguration configuration)
Parse an
ArooaConfiguration. |
void |
setExpectedDocumentElement(ArooaElement exepectedDocumentElement)
Set the expected document element.
|
public StandardArooaParser(Object root, ArooaSession session)
ArooaSession.root - The root object. Must not be null.session - The ArooaSession. Must not be null.public StandardArooaParser(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(Object root)
StandardArooaSession with
a StandardArooaDescriptor.root - The root object. Must not be null.public void setExpectedDocumentElement(ArooaElement exepectedDocumentElement)
exepectedDocumentElement - public ArooaElement getExpectedDocumentElement()
public ConfigurationHandle parse(ArooaConfiguration configuration) throws ArooaParseException
ArooaParserArooaConfiguration.parse in interface ArooaParserconfiguration - The configuration.ConfigurationHandle.ArooaParseException - If parsing fails.public ArooaSession getSession()
ArooaSession used. This will either
be as provided or the one created.