ucar.unidata.ui
Class XmlTree.XmlTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by ucar.unidata.ui.XmlTree.XmlTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Direct Known Subclasses:
XmlTree.XlinkTreeNode
Enclosing class:
XmlTree

public static class XmlTree.XmlTreeNode
extends DefaultMutableTreeNode

Class XmlTreeNode

Version:
%I%, %G%
Author:
Unidata development team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
XmlTree.XmlTreeNode(Element node, String name)
          ctor
XmlTree.XmlTreeNode(Element node, String name, String baseLocation)
          ctor
 
Method Summary
 String getBaseLocation()
          Find the xml file location.
 Element getXmlNode()
          Get the node
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlTree.XmlTreeNode

public XmlTree.XmlTreeNode(Element node,
                           String name)
ctor

Parameters:
node - The xml node
name - The label to use

XmlTree.XmlTreeNode

public XmlTree.XmlTreeNode(Element node,
                           String name,
                           String baseLocation)
ctor

Parameters:
node - The xml node
name - The label to use
baseLocation - Where the xml came from. May be null.
Method Detail

getXmlNode

public Element getXmlNode()
Get the node

Returns:
The xml node

getBaseLocation

public String getBaseLocation()
Find the xml file location. Recurse up the tree if needed.

Returns:
Where the xml came from where I came from