|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.model.build.AbstractXPathNode
jd.xml.xpath.model.build.normal.Node
jd.xml.xpath.model.build.normal.TreeNode
jd.xml.xpath.model.build.normal.CompositeNode
jd.xml.xpath.model.build.normal.RootNode
An implementation for the XPath root node.
| Field Summary | |
protected TreeNode |
firstChild_
|
static String |
MODEL_NAME
|
protected TreeNode |
next_
|
protected CompositeNode |
parent_
|
protected TreeNode |
previous_
|
protected int |
serialNumber_
|
| Fields inherited from interface jd.xml.xpath.model.XPathNode |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT, TYPE_NAMES, TYPES, UNKNOWN |
| Constructor Summary | |
RootNode(String baseUri,
NodeNamePool nodeNamePool,
int documentId)
|
|
| Method Summary | |
void |
accept(NodeVisitor visitor)
Dispatch method for NodeVisitors. |
(package private) void |
addUnparsedEntity(String name,
String systemId)
|
void |
cleanup()
Release any resources allocated by the model. |
int |
compareToNode(XPathNode node)
Compare to another XPathNode from the same document. |
(package private) Node |
copy(CompositeNode parent)
|
(package private) Node |
createCopy()
|
boolean |
equalsNode(XPathNode node)
Test if the node equals the given node. |
XPathNode |
getCacheableNode()
Return this. |
int |
getChildCount()
Return 0. |
String |
getDocumentBaseUri()
Return the base uri of document. |
int |
getDocumentId()
Return an integer that identifies the document to which this node belongs. |
XPathNode |
getElementForId(String id)
Return the element with the given ID. |
XPathNode |
getFirstChild()
Return the first child. |
(package private) Node |
getFirstChildImpl()
Return null. |
XPathRootNode |
getFragment(String fragmentId)
Build a fragment with this node as document node. |
String |
getGlobalId()
Return an unique identifier for the node. |
String |
getGlobalId(int serialNumber)
Generate a unique id for the serialNumber |
int |
getLineNumber()
Return the line number of this node in a source document. |
(package private) int |
getLineNumber(Node node)
Return the line number of the node in a source document. |
int |
getLocalId()
Return a number for the node that is unique within the document. |
String |
getModelName()
Return the name of the XPath model implementation. |
NamespaceContext |
getNamespaceContext()
Return the namespace context of the node. |
XPathNode |
getNextSibling()
Return the next XPathNode sibling. |
NodeNamePool |
getNodeNamePool()
Return null. |
XPathNode |
getParent()
Return the parent XPathNode. |
XPathNode |
getPrevSibling()
Return the previous XPathNode sibling. |
XPathRootNode |
getRoot()
Return the root. |
String |
getTextValue()
Return the concatenation of the value of all text node descendants. |
int |
getType()
Return the type. |
String |
getUnparsedEntityUri(String entityName)
Return the unparsed-entity-uri of the unparsed entity with the specified name. |
String |
getValue()
Return the string value of this node. |
(package private) void |
increaseChildCount()
|
(package private) boolean |
isComplexElement()
|
boolean |
preserveSpace()
Return if a text child with whitespace text should be preserved. |
(package private) void |
setFirstChild(TreeNode child)
|
(package private) void |
setIdElement(String id,
ElementNode element)
Map an id to an element |
(package private) void |
setLineNumberMap(LineNumberMap map)
|
(package private) void |
setNextSibling(TreeNode node)
|
(package private) void |
setSerialNumber(int serialNumber)
|
String |
toString()
Return a string representation of the node. |
| Methods inherited from class jd.xml.xpath.model.build.AbstractXPathNode |
equals, getAttributes, getBaseUri, getFirstSibling, getInheritedAttribute, getLanguage, getLocalName, getName, getNamespaceNodes, getNamespaceUri, getNodeName, getPrefix, getTypeName, hashCode, hasName, hasNamespaceUri, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jd.xml.xpath.model.XPathNode |
compareToNode, equals, equalsNode, getAttributes, getBaseUri, getCacheableNode, getChildCount, getFirstChild, getFirstSibling, getGlobalId, getLanguage, getLineNumber, getLocalId, getLocalName, getName, getNamespaceContext, getNamespaceNodes, getNamespaceUri, getNextSibling, getNodeName, getParent, getPrefix, getPrevSibling, getTypeName, hashCode, hasName, hasNamespaceUri |
| Field Detail |
public static final String MODEL_NAME
protected TreeNode firstChild_
protected TreeNode next_
protected TreeNode previous_
protected CompositeNode parent_
protected int serialNumber_
| Constructor Detail |
public RootNode(String baseUri,
NodeNamePool nodeNamePool,
int documentId)
| Method Detail |
public int getType()
getType in interface XPathNodepublic XPathRootNode getRoot()
getRoot in interface XPathNodegetRoot in class Nodepublic String getValue()
getValue in interface XPathNodepublic XPathNode getElementForId(String id)
getElementForId in interface XPathRootNode
void setIdElement(String id,
ElementNode element)
public String getUnparsedEntityUri(String entityName)
getUnparsedEntityUri in interface XPathRootNode
void addUnparsedEntity(String name,
String systemId)
public int getDocumentId()
getDocumentId in interface XPathRootNodepublic String getGlobalId(int serialNumber)
serialNumber - the serialNumber of a node in this document.
public String getDocumentBaseUri()
getDocumentBaseUri in interface XPathRootNodepublic boolean preserveSpace()
preserveSpace in class CompositeNodepublic NodeNamePool getNodeNamePool()
getNodeNamePool in interface XPathRootNodeint getLineNumber(Node node)
void setLineNumberMap(LineNumberMap map)
public XPathRootNode getFragment(String fragmentId)
getFragment in interface XPathRootNodefragmentId - the id of the element which will be the document element
XPathException - if this node is not an element nodepublic void cleanup()
XPathRootNode
cleanup in interface XPathRootNodepublic void accept(NodeVisitor visitor)
accept in interface XPathNodepublic String getModelName()
getModelName in interface XPathRootNodepublic String toString()
toString in interface XPathNodetoString in class Nodeboolean isComplexElement()
public int getChildCount()
getChildCount in interface XPathNodegetChildCount in class AbstractXPathNodevoid increaseChildCount()
public final XPathNode getFirstChild()
getFirstChild in interface XPathNodegetFirstChild in class AbstractXPathNodeNode getFirstChildImpl()
getFirstChildImpl in class Nodevoid setFirstChild(TreeNode child)
public String getTextValue()
Node copy(CompositeNode parent)
copy in class Nodepublic final XPathNode getNextSibling()
getNextSibling in interface XPathNodegetNextSibling in class Nodepublic final XPathNode getPrevSibling()
getPrevSibling in interface XPathNodegetPrevSibling in class Nodevoid setNextSibling(TreeNode node)
public XPathNode getParent()
public XPathNode getCacheableNode()
public NamespaceContext getNamespaceContext()
public int getLocalId()
public String getGlobalId()
public boolean equalsNode(XPathNode node)
public int compareToNode(XPathNode node)
void setSerialNumber(int serialNumber)
Node createCopy()
public int getLineNumber()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||