public class NodeAddData extends Object
 A simple data class used by ExpressionEngine to store
 the results of the prepareAdd() operation.
 
 If a new property is to be added to a configuration, the affected
 Configuration object must know, where in its hierarchy of
 configuration nodes new elements have to be added. This information is
 obtained by an ExpressionEngine object that interprets the key
 of the new property. This expression engine will pack all information
 necessary for the configuration to perform the add operation in an instance
 of this class.
 
Information managed by this class contains:
| Constructor and Description | 
|---|
| NodeAddData()Creates a new, uninitialized instance of  NodeAddData. | 
| NodeAddData(ConfigurationNode parent,
           String nodeName)Creates a new instance of  NodeAddDataand sets the most
 important data fields. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPathNode(String nodeName)Adds the name of a path node. | 
| String | getNewNodeName()Returns the name of the new node. | 
| ConfigurationNode | getParent()Returns the parent node. | 
| List<String> | getPathNodes()Returns a list with further nodes that must be added. | 
| boolean | isAttribute()Returns a flag if the new node to be added is an attribute. | 
| void | setAttribute(boolean attribute)Sets the attribute flag. | 
| void | setNewNodeName(String newNodeName)Sets the name of the new node. | 
| void | setParent(ConfigurationNode parent)Sets the parent node. | 
public NodeAddData()
NodeAddData.public NodeAddData(ConfigurationNode parent, String nodeName)
NodeAddData and sets the most
 important data fields.parent - the parent nodenodeName - the name of the new nodepublic boolean isAttribute()
public void setAttribute(boolean attribute)
attribute - the attribute flagpublic String getNewNodeName()
public void setNewNodeName(String newNodeName)
newNodeName - the name of the new nodepublic ConfigurationNode getParent()
public void setParent(ConfigurationNode parent)
parent - the parent nodepublic List<String> getPathNodes()
database. Now the key
 database.connection.settings.username (assuming the syntax
 of the default expression engine) is to be added. Then
 username is the name of the new node, but the nodes
 connection and settings must be added to
 the parent node first. In this example these names would be returned by
 this method.public void addPathNode(String nodeName)
nodeName - the name of the nodegetPathNodes()Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.