jd.xml.xpath.model
Interface XPathRootNode

All Superinterfaces:
XPathNode
All Known Implementing Classes:
RootNode

public interface XPathRootNode
extends XPathNode

XPathRootNode represents the root node of a XPath document.


Field Summary
 
Fields inherited from interface jd.xml.xpath.model.XPathNode
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT, TYPE_NAMES, TYPES, UNKNOWN
 
Method Summary
 void cleanup()
          Release any resources allocated by the model.
 String getDocumentBaseUri()
          Return the base uri of document.
 int getDocumentId()
          Return an integer that identifies the associated document.
 XPathNode getElementForId(String id)
          Return the element with the given ID.
 XPathRootNode getFragment(String fragmentId)
          Build a fragment tree
 String getModelName()
          Return the name of the XPath model implementation.
 NodeNamePool getNodeNamePool()
          Return the NodeNamePool used by this node tree.
 String getUnparsedEntityUri(String entityName)
          Return the unparsed-entity-uri of the unparsed entity with the specified name.
 
Methods inherited from interface jd.xml.xpath.model.XPathNode
accept, compareToNode, equals, equalsNode, getAttributes, getBaseUri, getCacheableNode, getChildCount, getFirstChild, getFirstSibling, getGlobalId, getLanguage, getLineNumber, getLocalId, getLocalName, getName, getNamespaceContext, getNamespaceNodes, getNamespaceUri, getNextSibling, getNodeName, getParent, getPrefix, getPrevSibling, getRoot, getType, getTypeName, getValue, hashCode, hasName, hasNamespaceUri, toString
 

Method Detail

getUnparsedEntityUri

public String getUnparsedEntityUri(String entityName)
Return the unparsed-entity-uri of the unparsed entity with the specified name.

Returns:
the uri or null if there is no such entity.

getElementForId

public XPathNode getElementForId(String id)
Return the element with the given ID. This is the value of its attribute that is declared in the DTD as type ID.

Returns:
the element node or null if no such element exists.

getDocumentId

public int getDocumentId()
Return an integer that identifies the associated document.


getDocumentBaseUri

public String getDocumentBaseUri()
Return the base uri of document.


getNodeNamePool

public NodeNamePool getNodeNamePool()
Return the NodeNamePool used by this node tree.

Returns:
the pool or null if no NamePool is used

getFragment

public XPathRootNode getFragment(String fragmentId)
Build a fragment tree

Parameters:
fragmentId - the id of the element which will be the document element
Returns:
the new document or null if no such element exists.

cleanup

public void cleanup()
Release any resources allocated by the model. The model should not be used after this method is called.


getModelName

public String getModelName()
Return the name of the XPath model implementation.