ilog.rules.factory

Class IlrHierarchicalPropertyNode

  • java.lang.Object
    • ilog.rules.factory.IlrHierarchicalPropertyNode
  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrHierarchicalPropertyNode
    extends java.lang.Object
    implements java.io.Serializable
    Models a node in a property hierarchy.
    Since:
    JRules6.0
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.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.
      java.lang.String getName()
      Returns the node's name.
      java.lang.String getPathFromRoot()
      Returns the path from the root to the node.
      java.lang.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 java.lang.String toString()
        Returns a string representation of the node.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the node.
      • getChildren

        public java.util.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 java.lang.String getName()
        Returns the node's name.
        Returns:
        The node's name.
      • getPathFromRoot

        public java.lang.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.

© Copyright IBM Corp. 1987, 2017