com.sun.xml.xsom.impl.util
Class SchemaTreeTraverser.SchemaTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.sun.xml.xsom.impl.util.SchemaTreeTraverser.SchemaTreeNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Direct Known Subclasses:
SchemaTreeTraverser.SchemaRootNode
Enclosing class:
SchemaTreeTraverser

public static class SchemaTreeTraverser.SchemaTreeNode
extends DefaultMutableTreeNode

The node of the schema hierarchy tree.

Author:
Kirill Grouchnikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
SchemaTreeTraverser.SchemaTreeNode(String artifactName, Locator locator)
          Simple constructor.
 
Method Summary
 String getCaption()
          Returns the caption for this node.
 String getFileName()
           
 int getLineNumber()
           
 void setFileName(String fileName)
           
 void setLineNumber(int lineNumber)
           
 
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

SchemaTreeTraverser.SchemaTreeNode

public SchemaTreeTraverser.SchemaTreeNode(String artifactName,
                                          Locator locator)
Simple constructor.

Parameters:
artifactName - Artifact name.
locator - Artifact locator.
Method Detail

getCaption

public String getCaption()
Returns the caption for this node.

Returns:
The caption for this node.

getFileName

public String getFileName()
Returns:
Returns the file name of the corresponding schema artifact.

setFileName

public void setFileName(String fileName)
Parameters:
fileName - The file name of the corresponding schema artifact to set.

getLineNumber

public int getLineNumber()
Returns:
Returns the line number of the corresponding schema artifact.

setLineNumber

public void setLineNumber(int lineNumber)
Parameters:
lineNumber - The line number of the corresponding schema artifact to set.


Copyright © 2012 Oracle. All Rights Reserved.