Rule Execution Server API

ilog.rules.factory
Class IlrHierarchicalPropertyNode

java.lang.Object
  extended by ilog.rules.factory.IlrHierarchicalPropertyNode
All Implemented Interfaces:
Serializable

public class IlrHierarchicalPropertyNode
extends Object
implements Serializable

Models a node in a property hierarchy.

Since:
JRules6.0
See Also:
Serialized Form

Method Summary
 ArrayList getChildren()
          Returns the node's children.
 IlrHierarchicalPropertyNode getFather()
          Returns the father's node of the current node.
 IlrHierarchicalProperty getHierarchy()
          Returns the hierarchy in which the node is defined.
 String getName()
          Returns the node's name.
 String getPathFromRoot()
          Returns the path from the root to the node.
 String toString()
          Returns a string representation of the node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Returns a string representation of the node.

Overrides:
toString in class Object
Returns:
A string representation of the node.

getChildren

public ArrayList getChildren()
Returns the node's children.

Returns:
A list containing the node's children. The list contains IlrHierarchicalPropertyNode. Returns null if the node has no children.

getFather

public IlrHierarchicalPropertyNode getFather()
Returns the father's node of the current node.

Returns:
The father of this node in the hierarchy.

getHierarchy

public IlrHierarchicalProperty getHierarchy()
Returns the hierarchy in which the node is defined.

Returns:
The hierarchy that contains the node.

getName

public String getName()
Returns the node's name.

Returns:
The node's name.

getPathFromRoot

public String getPathFromRoot()
Returns the path from the root to the node. The node path is computed as follows: in the following hierarchy:
   World {
     USA {
       California
     }
     Europe {
     }
   }
 
The California node is specified by the path World/USA/California.


Rule Execution Server API

© Copyright IBM Corp. 1987, 2013