psdi.common.parse

Class FunctionTreeNodeAdapter

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.util.Vector operands 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.lang.String childrenInfoString()
      Sub-classes should override this method to return the result of toString on each child, separated by new lines.
      boolean getBoolean(MboRemote mbo)
      Numbers can't be represented by booleans so this throws an exception
      java.util.Date getDate(MboRemote mbo)
      Numbers can't be represented by dates so this throws an exception
      int getInt(MboRemote mbo)
      Numbers can't be represented by numbers so this throws an exception
      int getNodeDataType()
      Returns the data type of the node.
      int getNodeDataType(MboRemote mbo)
      Helper method gets the datatype from attribute nodes when needed.
      java.lang.String getString(MboRemote mbo)
      Evaluates the node and returns it's value as a String.
      void setOperands(MboRemote mbo, java.util.Vector operands)
      Sets the operands for custom class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • operands

        protected java.util.Vector operands
    • Constructor Detail

      • FunctionTreeNodeAdapter

        public FunctionTreeNodeAdapter()
    • Method Detail

      • getString

        public java.lang.String getString(MboRemote mbo)
                                   throws MXException,
                                          java.rmi.RemoteException
        Evaluates the node and returns it's value as a String. The boolean value is converted into a Yes/No character.
        Throws:
        MXException
        java.rmi.RemoteException
      • getInt

        public int getInt(MboRemote mbo)
                   throws MXException,
                          java.rmi.RemoteException
        Numbers can't be represented by numbers so this throws an exception
        Throws:
        MXException
        java.rmi.RemoteException
      • getDate

        public java.util.Date getDate(MboRemote mbo)
                               throws MXException,
                                      java.rmi.RemoteException
        Numbers can't be represented by dates so this throws an exception
        Throws:
        MXException
        java.rmi.RemoteException
      • getBoolean

        public boolean getBoolean(MboRemote mbo)
                           throws MXException,
                                  java.rmi.RemoteException
        Numbers can't be represented by booleans so this throws an exception
        Throws:
        MXException
        java.rmi.RemoteException
      • childrenInfoString

        protected java.lang.String childrenInfoString()
        Description copied from class: TreeNodeAdapter
        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
      • getNodeDataType

        public int getNodeDataType()
        Description copied from interface: TreeNode
        Returns the data type of the node.
      • 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