public class IlrHierarchicalProperty
extends java.lang.Object
implements ilog.rules.factory.IlrHierarchicalPropertyElement, java.io.Serializable
| Constructor and Description |
|---|
IlrHierarchicalProperty(java.lang.String name)
Creates a hierarchical property.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(java.lang.String parentPath,
java.util.List children)
Adds the children contained in the list to a given parent node.
|
void |
close()
Declares that the hierarchy definition is finished, in order to make
some internal computation.
|
IlrHierarchicalPropertyNode |
createRoot(java.lang.String rootName)
Creates a root and attaches it to the hierarchy.
|
java.lang.String |
getName()
Returns the name of the hierarchical property.
|
IlrHierarchicalPropertyNode |
getNode(java.lang.String id)
Returns the node in the hierarchy whose name is given as parameter.
|
public IlrHierarchicalProperty(java.lang.String name)
name - The hierarchical property name.public IlrHierarchicalPropertyNode createRoot(java.lang.String rootName)
rootName - The name of the root node.public java.lang.String getName()
public void addChildren(java.lang.String parentPath,
java.util.List children)
World {
USA {
California
}
Europe {
}
}
The California node is specified by the path World/USA/California.
If the parent path or name does not lead to a node in the hierarchy,
an IllegalArgumentException is thrown.parentPath - The path from the root to the parent node or the
parent node name.children - The list of the child names to add to the parent node.public IlrHierarchicalPropertyNode getNode(java.lang.String id)
null is returned.id - The node identifier (may include a path from the root or just the node name)public void close()
© Copyright IBM Corp. 1987, 2017