org.oddjob.arooa.xml
Class XMLConfigurationNode

java.lang.Object
  extended by org.oddjob.arooa.parsing.AbstractConfigurationNode
      extended by org.oddjob.arooa.xml.XMLConfigurationNode
All Implemented Interfaces:
ArooaConfiguration, ConfigurationNode

public class XMLConfigurationNode
extends AbstractConfigurationNode


Nested Class Summary
 
Nested classes/interfaces inherited from class org.oddjob.arooa.parsing.AbstractConfigurationNode
AbstractConfigurationNode.ChainingConfigurationHandle
 
Constructor Summary
XMLConfigurationNode(ArooaElement element)
          Constructor
 
Method Summary
 void addText(String data)
          Adds characters from #PCDATA areas to the wrapped element.
 ArooaContext getContext()
          Get the associated ArooaContext for this node.
 String getText()
           
 ConfigurationHandle parse(ArooaContext parentContext)
          Parse the encapsulated configuration.
 void setContext(ArooaContext context)
           
 String toString()
           
 
Methods inherited from class org.oddjob.arooa.parsing.AbstractConfigurationNode
addNodeListener, children, indexOf, insertChild, removeChild, removeNodeListener, setInsertPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLConfigurationNode

public XMLConfigurationNode(ArooaElement element)
Constructor

Parameters:
element -
prefixMappings -
Method Detail

addText

public void addText(String data)
             throws ArooaException
Adds characters from #PCDATA areas to the wrapped element.

Parameters:
data - Text to add. Should not be null.
Throws:
ArooaException

getText

public String getText()

parse

public ConfigurationHandle parse(ArooaContext parentContext)
                          throws ArooaParseException
Description copied from interface: ArooaConfiguration
Parse the encapsulated configuration.

Parameters:
parentContext - The parent context to use.
Returns:
A ConfigurationHandle.
Throws:
ArooaParseException

getContext

public ArooaContext getContext()
Description copied from interface: ConfigurationNode
Get the associated ArooaContext for this node.

Returns:
The ArooaContext. Never null.

setContext

public void setContext(ArooaContext context)

toString

public String toString()
Overrides:
toString in class Object