T- the type of nodes this class can handle
public class NodeAddData<T> extends Object
A simple data class used by
ExpressionEngine to store
the results of the
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|
Creates a new instance of
|Modifier and Type||Method and Description|
Returns the name of the new node.
Returns the parent node.
Returns a list with further nodes that must be added.
Returns a flag if the new node to be added is an attribute.
public NodeAddData(T parentNode, String newName, boolean isAttr, Collection<String> intermediateNodes)
NodeAddDataand initializes it.
parentNode- the parent node of the add operation
newName- the name of the new node
isAttr- flag whether the new node is an attribute
intermediateNodes- an optional collection with path nodes
public boolean isAttribute()
public String getNewNodeName()
public List<String> getPathNodes()
database. Now the key
database.connection.settings.username(assuming the syntax of the default expression engine) is to be added. Then
usernameis the name of the new node, but the nodes
settingsmust be added to the parent node first. In this example these names would be returned by this method.
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.