psdi.common.parse

Class BetweenNode

  • All Implemented Interfaces:
    TreeNode


    public class BetweenNode
    extends BooleanTreeNodeAdapter
    The Between node determines whether a node is between to bound values, inclusive. There are two types of comparisons, numerical and string. The node looks at the data type of the operand, or the attribute specified by the operand. The order of the bounds doesn't matter.
    • Constructor Detail

      • BetweenNode

        public BetweenNode(TreeNode operand,
                           TreeNode bound1,
                           TreeNode bound2)
        Constructor takes operand and bounds
    • Method Detail

      • getBoolean

        public boolean getBoolean(MboRemote mbo)
                           throws MXException,
                                  java.rmi.RemoteException
        Evaluates operands in order given.
        Throws:
        MXException
        java.rmi.RemoteException
      • parentInfoString

        protected java.lang.String parentInfoString()
        Sub-classes should override this method to create a string which provides information for the parent node only. The string created should be a single line.
        Specified by:
        parentInfoString in class TreeNodeAdapter
      • childrenInfoString

        protected java.lang.String childrenInfoString()
        Sub-classes should override this method to return the result of toString on each child, separated by new lines. If the node has no children, this method should return null or the empty string. If the node has 3 children the output should look like:

        \n
        \n

        Note there is no new line character after the last child.

        Specified by:
        childrenInfoString in class TreeNodeAdapter