psdi.common.parse

Class InternalValue

  • All Implemented Interfaces:
    TreeNode


    public class InternalValue
    extends TreeNodeAdapter
    implements TreeNode
    This is a expression function that takes a domain name and a synonym and returns the internal value (aka MaxValue) for the synonym. If the list or synonym value is not found, the empty string is returned.
    • Constructor Summary

      Constructors 
      Constructor and Description
      InternalValue() 
    • 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)
      Evaluates the node and returns it's value as a boolean.
      java.util.Date getDate(MboRemote mbo)
      Evaluates the node and returns it's value as a DateTime.
      double getDouble(MboRemote mbo)
      Evaluates the node and returns it's value as a double.
      int getInt(MboRemote mbo)
      Evaluates the node and returns it's value as an integer.
      int getNodeDataType()
      Returns the data type of the node.
      java.lang.String getString(MboRemote mbo)
      Evaluates the node and returns it's value as a String.
      protected java.lang.String parentInfoString()
      Sub-classes should override this method to create a string which provides information for the parent node only.
      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
    • Constructor Detail

      • InternalValue

        public InternalValue()
    • Method Detail

      • 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
      • parentInfoString

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

        public boolean getBoolean(MboRemote mbo)
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as a boolean.
        Specified by:
        getBoolean in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException
      • getDate

        public java.util.Date getDate(MboRemote mbo)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as a DateTime.
        Specified by:
        getDate in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException
      • getDouble

        public double getDouble(MboRemote mbo)
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as a double.
        Specified by:
        getDouble in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException
      • getInt

        public int getInt(MboRemote mbo)
                   throws MXException,
                          java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as an integer.
        Specified by:
        getInt in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException
      • getNodeDataType

        public int getNodeDataType()
        Description copied from interface: TreeNode
        Returns the data type of the node.
        Specified by:
        getNodeDataType in interface TreeNode
      • getString

        public java.lang.String getString(MboRemote mbo)
                                   throws java.rmi.RemoteException
        Description copied from interface: TreeNode
        Evaluates the node and returns it's value as a String.
        Specified by:
        getString in interface TreeNode
        Throws:
        java.rmi.RemoteException
      • 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.
        Specified by:
        setOperands in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException