|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrHierarchicalProperty
public class IlrHierarchicalProperty
Model of a hierarchical property. It is characterized by a name and a hierarchy between values.
Constructor Summary | |
---|---|
IlrHierarchicalProperty(String name)
Creates a hierarchical property. |
Method Summary | |
---|---|
void |
addChildren(String parentPath,
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(String rootName)
Creates a root and attaches it to the hierarchy. |
String |
getName()
Returns the name of the hierarchical property. |
IlrHierarchicalPropertyNode |
getNode(String id)
Returns the node in the hierarchy whose name is given as parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrHierarchicalProperty(String name)
name
- The hierarchical property name.Method Detail |
---|
public IlrHierarchicalPropertyNode createRoot(String rootName)
rootName
- The name of the root node.
public String getName()
public void addChildren(String parentPath, 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(String id)
null
is returned.
id
- The node identifier (may include a path from the root or just the node name)
public void close()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |