public interface DocumentClient<N>
Modifier and Type | Method and Description |
---|---|
NodeSet<N> |
attributeAxis(N node)
Returns a NodeSet with all attribute nodes.
|
NodeSet<N> |
childAxis(N node,
boolean reverse)
Returns a NodeSet with all child elements.
|
boolean |
commentTest(N node)
Returns whether a node is a comment.
|
Comparator<? super N> |
documentOrder() |
NodeSet<N> |
followingSiblingAxis(N node)
Returns a NodeSet with all following sibling elements.
|
URI |
getBaseURI(N node)
Returns the basis URI to which all relative URIs in the document shall be resolved.
|
N |
getDocument(URI uri)
Reads a document from the given address and converts it into a (Document-)node.
|
N |
getElementById(N document,
String id)
retrieves an element (or null) by the text value of the ID-type attribute.
|
String |
getLocalName(N node)
Returns null iff node is neither Element nor Attribute; otherwise the local name.
|
NamespaceName |
getNamespaceName(N node)
Returns null iff node is neither Element nor Attribute; otherwise the NamespaceName.
|
String |
getNamespaceURI(N node)
Returns null iff node is neither Element nor Attribute; otherwise the URI the
namespace prefix is bound to.
|
N |
getParent(N node)
returns the parent node; null for Document.
|
String |
getPITarget(N node)
returns the target identifier; may only be called with a PI-node!
|
N |
getRoot(N node)
returns the owning Document.
|
boolean |
nameTest(N node,
PrincipalNodeType pnt,
String uri,
String suffix)
null stands for unspecified, e.g.
|
NodeSet<N> |
parentAxis(N node)
Returns a NodeSet with the one direct parent.
|
NodeSet<N> |
precedingSiblingAxis(N node)
Returns a NodeSet with all preceding sibling elements.
|
boolean |
processingInstructionTest(N node,
String target)
Returns whether a node is PI.
|
String |
stringValue(N node)
Never returns null, but possibly empty String [XPath 1.0:5].
|
boolean |
textTest(N node)
Returns whether a node is PCDATA.
|
NamespaceName getNamespaceName(N node)
String getLocalName(N node)
String getNamespaceURI(N node)
URI getBaseURI(N node)
String stringValue(N node)
String getPITarget(N node)
N getParent(N node)
N getDocument(URI uri)
NodeSet<N> attributeAxis(N node)
NodeSet<N> childAxis(N node, boolean reverse)
NodeSet<N> followingSiblingAxis(N node)
NodeSet<N> parentAxis(N node)
NodeSet<N> precedingSiblingAxis(N node)
boolean nameTest(N node, PrincipalNodeType pnt, String uri, String suffix)
boolean commentTest(N node)
boolean textTest(N node)
boolean processingInstructionTest(N node, String target)
Comparator<? super N> documentOrder()
see also the complete user documentation .