public static class SimpleParseContext.SimpleConfigNode extends AbstractConfigurationNode<SimpleParseContext>
AbstractConfigurationNode.ChainingConfigurationHandle<P extends ParseContext<P>,Q extends ParseContext<Q>>
Constructor and Description |
---|
SimpleConfigNode(ArooaElement element,
SimpleParseContext owner)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String data)
Adds characters from #PCDATA areas to the wrapped element.
|
SimpleParseContext |
getContext()
Get the associated
ArooaContext for this node. |
java.lang.String |
getText() |
<P extends ParseContext<P>> |
parse(P parseParentContext)
Parse the encapsulated configuration.
|
java.lang.String |
toString() |
addNodeListener, children, indexOf, insertChild, removeChild, removeNodeListener, setInsertPosition
public SimpleConfigNode(ArooaElement element, SimpleParseContext owner)
element
- public void addText(java.lang.String data) throws ArooaException
data
- Text to add.
Should not be null
.ArooaException
public java.lang.String getText()
public <P extends ParseContext<P>> ConfigurationHandle<P> parse(P parseParentContext) throws ArooaParseException
ArooaConfiguration
P
- The type of the context in which parsing occurs.parseParentContext
- The context in which this configuration will be
parsed. This context will provide the
ArooaHandler
, and therefore
subsequent child contexts.ConfigurationHandle
. The handle provides access to the context created
as the result of the parse and a way of saving this context back into the configuration.ArooaParseException
- If parsing fails.public SimpleParseContext getContext()
ConfigurationNode
ArooaContext
for this node.public java.lang.String toString()
toString
in class java.lang.Object