protected static class AbstractConfigurationNode.ChainingConfigurationHandle<P extends ParseContext<P>,Q extends ParseContext<Q>> extends java.lang.Object implements ConfigurationHandle<Q>
Constructor and Description |
---|
ChainingConfigurationHandle(P existingContext,
Q parseParentContext,
int index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Q |
getDocumentContext()
Get the
ArooaContext that corresponds to
the document element or it's equivalent. |
void |
save()
Save the parsed configuration tree back into
the underlying configuration.
|
public ChainingConfigurationHandle(P existingContext, Q parseParentContext, int index)
existingContext
- The context of our ConfigurationNode
that is being parsed.
This can be viewed as the input context.parseParentContext
- The context in which the node is being parsed. This can be viewed
as the output context;index
- The index of the newly created node with respect to its parent.public void save() throws ArooaParseException
ConfigurationHandle
save
in interface ConfigurationHandle<Q extends ParseContext<Q>>
ArooaParseException
public Q getDocumentContext()
ConfigurationHandle
ArooaContext
that corresponds to
the document element or it's equivalent.getDocumentContext
in interface ConfigurationHandle<Q extends ParseContext<Q>>