Class Node
java.lang.Object
nu.validator.saxtree.Node
- All Implemented Interfaces:
Locator
- Direct Known Subclasses:
CharBufferNode, ParentNode, ProcessingInstruction, SkippedEntity
-
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
-
-
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
-
getNextSibling
-
getPreviousSibling
-
setNextSibling
Sets the nextSibling.- Parameters:
nextSibling- the nextSibling to set
-
getParentNode
-
setParentNode
Sets the parentNode.- Parameters:
parentNode- the parentNode to set
-
getNodeType
-
detach
public void detach()Detach this node from its parent. -
getName
-
getPublicIdentifier
-
getSystemIdentifier
-
getAttributes
-
getLocalName
-
getPrefixMappings
Returns the prefixMappings.- Returns:
- the prefixMappings
-
getQName
-
getUri
-
getData
-
getTarget
-