psdi.common.parse

Class LengthNode

  • All Implemented Interfaces:
    TreeNode


    public class LengthNode
    extends TreeNodeAdapter
    The Length node returns the length of the string representation of it's operand node.
    • Method Detail

      • getBoolean

        public boolean getBoolean(MboRemote mbo)
                           throws MXException,
                                  java.rmi.RemoteException
        No boolean value
        Throws:
        MXException
        java.rmi.RemoteException
      • getString

        public java.lang.String getString(MboRemote mbo)
                                   throws MXException,
                                          java.rmi.RemoteException
        No string value
        Throws:
        MXException
        java.rmi.RemoteException
      • getDouble

        public double getDouble(MboRemote mbo)
                         throws MXException,
                                java.rmi.RemoteException
        double value
        Throws:
        MXException
        java.rmi.RemoteException
      • getDate

        public java.util.Date getDate(MboRemote mbo)
                               throws MXException,
                                      java.rmi.RemoteException
        No date value
        Throws:
        MXException
        java.rmi.RemoteException
      • getNodeDataType

        public int getNodeDataType()
        This node is always a number node.
      • 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
      • setOperands

        public void setOperands(MboRemote mbo,
                                java.util.Vector operands)
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from interface: TreeNode
        Sets the operands for custom class.
        Throws:
        MXException
        java.rmi.RemoteException