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 int
The column.private final int
The line.private Node
The next sibling.private ParentNode
The parent.private final String
The public id.private final String
The system id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
Detach this node from its parent.Returns the attributes.int
getData()
Returns the data.Return the first child.int
Returns the localName.getName()
Returns the name.final Node
Returns the nextSibling.abstract NodeType
Return the node type.final ParentNode
Returns the parentNode.Returns the prefixMappings.final Node
Returns the previous siblingReturns the publicIdentifier.getQName()
Returns the qName.Returns the systemIdentifier.Returns the target.getUri()
Returns the uri.(package private) void
revisit
(TreeParser treeParser) Revisit the node.(package private) void
setNextSibling
(Node nextSibling) Sets the nextSibling.(package private) void
setParentNode
(ParentNode parentNode) Sets the parentNode.(package private) abstract void
visit
(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:
getColumnNumber
in interfaceLocator
- See Also:
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocator
- See Also:
-
getPublicId
- Specified by:
getPublicId
in interfaceLocator
- See Also:
-
getSystemId
- Specified by:
getSystemId
in 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
-