public class XMLConfigurationNode extends AbstractConfigurationNode
AbstractConfigurationNode.ChainingConfigurationHandle<P extends ParseContext<P>,Q extends ParseContext<Q>>
Constructor and Description |
---|
XMLConfigurationNode(ArooaElement element)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String data)
Adds characters from #PCDATA areas to the wrapped element.
|
ArooaContext |
getContext()
Get the associated
ArooaContext for this node. |
java.lang.String |
getText() |
<P extends ParseContext<P>> |
parse(P parseParentContext)
Parse the encapsulated configuration.
|
void |
setContext(ArooaContext context) |
java.lang.String |
toString() |
addNodeListener, children, indexOf, insertChild, removeChild, removeNodeListener, setInsertPosition
public XMLConfigurationNode(ArooaElement element)
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 ArooaContext getContext()
ConfigurationNode
ArooaContext
for this node.public void setContext(ArooaContext context)
public java.lang.String toString()
toString
in class java.lang.Object