Package nu.validator.saxtree
Class Node
java.lang.Object
nu.validator.saxtree.Node
- All Implemented Interfaces:
Locator
- Direct Known Subclasses:
CharBufferNode,ParentNode,ProcessingInstruction,SkippedEntity
The common node superclass.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe column.private final intThe line.private NodeThe next sibling.private ParentNodeThe parent.private final StringThe public id.private final StringThe system id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetach()Detach this node from its parent.Returns the attributes.intgetData()Returns the data.Return the first child.intReturns the localName.getName()Returns the name.final NodeReturns the nextSibling.abstract NodeTypeReturn the node type.final ParentNodeReturns the parentNode.Returns the prefixMappings.final NodeReturns the previous siblingReturns the publicIdentifier.getQName()Returns the qName.Returns the systemIdentifier.Returns the target.getUri()Returns the uri.(package private) voidrevisit(TreeParser treeParser) Revisit the node.(package private) voidsetNextSibling(Node nextSibling) Sets the nextSibling.(package private) voidsetParentNode(ParentNode parentNode) Sets the parentNode.(package private) abstract voidvisit(TreeParser treeParser) Visit the node.
-
Field Details
-
systemId
The system id. -
publicId
The public id. -
column
private final int columnThe column. -
line
private final int lineThe line. -
nextSibling
The next sibling. -
parentNode
The parent.
-
-
Constructor Details
-
Node
Node(Locator locator) The constructor.- Parameters:
locator- the locator
-
-
Method Details
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocator- See Also:
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocator- See Also:
-
getPublicId
- Specified by:
getPublicIdin interfaceLocator- See Also:
-
getSystemId
- Specified by:
getSystemIdin interfaceLocator- See Also:
-
visit
Visit the node.- Parameters:
treeParser- the visitor- Throws:
SAXException- if stuff goes wrong
-
revisit
Revisit the node.- Parameters:
treeParser- the visitor- Throws:
SAXException- if stuff goes wrong
-
getFirstChild
Return the first child.- Returns:
- the first child
-
getNextSibling
Returns the nextSibling.- Returns:
- the nextSibling
-
getPreviousSibling
Returns the previous sibling- Returns:
- the previous sibling
-
setNextSibling
Sets the nextSibling.- Parameters:
nextSibling- the nextSibling to set
-
getParentNode
Returns the parentNode.- Returns:
- the parentNode
-
setParentNode
Sets the parentNode.- Parameters:
parentNode- the parentNode to set
-
getNodeType
Return the node type.- Returns:
- the node type
-
detach
public void detach()Detach this node from its parent. -
getName
Returns the name.- Returns:
- the name
-
getPublicIdentifier
Returns the publicIdentifier.- Returns:
- the publicIdentifier
-
getSystemIdentifier
Returns the systemIdentifier.- Returns:
- the systemIdentifier
-
getAttributes
Returns the attributes.- Returns:
- the attributes
-
getLocalName
Returns the localName.- Returns:
- the localName
-
getPrefixMappings
Returns the prefixMappings.- Returns:
- the prefixMappings
-
getQName
Returns the qName.- Returns:
- the qName
-
getUri
Returns the uri.- Returns:
- the uri
-
getData
Returns the data.- Returns:
- the data
-
getTarget
Returns the target.- Returns:
- the target
-