psdi.common.parse

Class TreeNodeAdapter

  • java.lang.Object
    • psdi.common.parse.TreeNodeAdapter
    • Constructor Detail

      • TreeNodeAdapter

        public TreeNodeAdapter()
    • Method Detail

      • toString

        public java.lang.String toString()
        Return a pretty-printed string representation of this node. This node's information should occur on the first line. Each child's information should be idented on the next lines.
        Specified by:
        toString in interface TreeNode
        Overrides:
        toString in class java.lang.Object
      • parentInfoString

        protected abstract 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.
      • childrenInfoString

        protected abstract 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.

      • getNodeDataType

        public int getNodeDataType(MboRemote mbo)
                            throws MXException,
                                   java.rmi.RemoteException
        Helper method gets the datatype from attribute nodes when needed.
        Specified by:
        getNodeDataType in interface TreeNode
        Throws:
        MXException
        java.rmi.RemoteException