public abstract class Node
extends java.lang.Object
implements org.xml.sax.Locator
| Modifier and Type | Field and Description |
|---|---|
private int |
column
The column.
|
private int |
line
The line.
|
private Node |
nextSibling
The next sibling.
|
private ParentNode |
parentNode
The parent.
|
private java.lang.String |
publicId
The public id.
|
private java.lang.String |
systemId
The system id.
|
| Constructor and Description |
|---|
Node(org.xml.sax.Locator locator)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Detach this node from its parent.
|
org.xml.sax.Attributes |
getAttributes()
Returns the attributes.
|
int |
getColumnNumber() |
java.lang.String |
getData()
Returns the data.
|
Node |
getFirstChild()
Return the first child.
|
int |
getLineNumber() |
java.lang.String |
getLocalName()
Returns the localName.
|
java.lang.String |
getName()
Returns the name.
|
Node |
getNextSibling()
Returns the nextSibling.
|
abstract NodeType |
getNodeType()
Return the node type.
|
ParentNode |
getParentNode()
Returns the parentNode.
|
java.util.List<PrefixMapping> |
getPrefixMappings()
Returns the prefixMappings.
|
Node |
getPreviousSibling()
Returns the previous sibling
|
java.lang.String |
getPublicId() |
java.lang.String |
getPublicIdentifier()
Returns the publicIdentifier.
|
java.lang.String |
getQName()
Returns the qName.
|
java.lang.String |
getSystemId() |
java.lang.String |
getSystemIdentifier()
Returns the systemIdentifier.
|
java.lang.String |
getTarget()
Returns the target.
|
java.lang.String |
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.
|
private final java.lang.String systemId
private final java.lang.String publicId
private final int column
private final int line
private Node nextSibling
private ParentNode parentNode
Node(org.xml.sax.Locator locator)
locator - the locatorpublic int getColumnNumber()
getColumnNumber in interface org.xml.sax.LocatorLocator.getColumnNumber()public int getLineNumber()
getLineNumber in interface org.xml.sax.LocatorLocator.getLineNumber()public java.lang.String getPublicId()
getPublicId in interface org.xml.sax.LocatorLocator.getPublicId()public java.lang.String getSystemId()
getSystemId in interface org.xml.sax.LocatorLocator.getSystemId()abstract void visit(TreeParser treeParser) throws org.xml.sax.SAXException
treeParser - the visitororg.xml.sax.SAXException - if stuff goes wrongvoid revisit(TreeParser treeParser) throws org.xml.sax.SAXException
treeParser - the visitororg.xml.sax.SAXException - if stuff goes wrongpublic Node getFirstChild()
public final Node getNextSibling()
public final Node getPreviousSibling()
void setNextSibling(Node nextSibling)
nextSibling - the nextSibling to setpublic final ParentNode getParentNode()
void setParentNode(ParentNode parentNode)
parentNode - the parentNode to setpublic abstract NodeType getNodeType()
public void detach()
public java.lang.String getName()
public java.lang.String getPublicIdentifier()
public java.lang.String getSystemIdentifier()
public org.xml.sax.Attributes getAttributes()
public java.lang.String getLocalName()
public java.util.List<PrefixMapping> getPrefixMappings()
public java.lang.String getQName()
public java.lang.String getUri()
public java.lang.String getData()
public java.lang.String getTarget()