ilog.rules.brl.brldf

Class IlrBRLGrammar.Node

  • java.lang.Object
    • ilog.rules.brl.brldf.IlrBRLGrammar.Node
  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    IlrBRLGrammar


    public abstract static class IlrBRLGrammar.Node
    extends java.lang.Object
    implements java.io.Serializable
    This class represents a node of the grammar specified in a BRL definition. A node represents an element in a sequence or a choice type in the schema definition of the BRL. A node has a type and a name, which are the type and the name of the corresponding element in the schema definition. A node also has a reference to the enclosing type that contains it.

    For example, in the BAL definition, the rule actions are specified as follows:
    <complexType name="T-action">
    <choice>
    <element name="action-sentence" type="T-action-sentence"/>
    <element name="assign" type="T-assign"/>
    <element name="foreach" type="T-foreach"/>
    </choice>
    </complexType>
    In this example we have 3 nodes: a node named action-sentence of type T-action-sentence, a node named assign of type T-assign and a node foreach of type T-foreach. All the nodes have the enclosing type T-action.

    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      abstract java.lang.String getEnclosingType()
      Returns the name of the enclosing type of that node.
      abstract java.lang.String getName()
      Returns the name of that node.
      abstract java.lang.String getType()
      Returns the type of that node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrBRLGrammar.Node

        public IlrBRLGrammar.Node()
    • Method Detail

      • getEnclosingType

        public abstract java.lang.String getEnclosingType()
        Returns the name of the enclosing type of that node.
        Returns:
        the name of the enclosing type of that node
      • getName

        public abstract java.lang.String getName()
        Returns the name of that node.
        Returns:
        the name of that node
      • getType

        public abstract java.lang.String getType()
        Returns the type of that node.
        Returns:
        the type of that node

© Copyright IBM Corp. 1987, 2017