public interface NamedAccessNavigator extends Navigator
This interface must only be implemented by those models that can support this named access behavior.
Modifier and Type | Method and Description |
---|---|
Iterator |
getAttributeAxisIterator(Object contextNode,
String localName,
String namespacePrefix,
String namespaceURI)
Retrieve an
Iterator that returns the attribute
XPath axis where the names of the attributes match the supplied name
and optional namespace. |
Iterator |
getChildAxisIterator(Object contextNode,
String localName,
String namespacePrefix,
String namespaceURI)
Retrieve an
Iterator that returns the child
XPath axis where the names of the children match the supplied name
and optional namespace. |
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getAttributeAxisIterator, getAttributeName, getAttributeNamespaceUri, getAttributeQName, getAttributeStringValue, getChildAxisIterator, getCommentStringValue, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getDocument, getDocumentNode, getElementById, getElementName, getElementNamespaceUri, getElementQName, getElementStringValue, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNamespaceAxisIterator, getNamespacePrefix, getNamespaceStringValue, getNodeType, getParentAxisIterator, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getProcessingInstructionData, getProcessingInstructionTarget, getSelfAxisIterator, getTextStringValue, isAttribute, isComment, isDocument, isElement, isNamespace, isProcessingInstruction, isText, parseXPath, translateNamespacePrefixToUri
Iterator getChildAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) throws UnsupportedAxisException
Iterator
that returns the child
XPath axis where the names of the children match the supplied name
and optional namespace.
This method must only return element nodes with the correct name.
If the namespaceURI is null, no namespace should be used. The prefix will never be null.
contextNode
- the origin context nodelocalName
- the local name of the children to return, always presentnamespacePrefix
- the prefix of the namespace of the children to returnnamespaceURI
- the namespace URI of the children to returnUnsupportedAxisException
- if the child axis is
not supported by this object modelIterator getAttributeAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) throws UnsupportedAxisException
Iterator
that returns the attribute
XPath axis where the names of the attributes match the supplied name
and optional namespace.
This method must only return attribute nodes with the correct name.
If the namespaceURI is null, no namespace should be used. The prefix will never be null.
contextNode
- the origin context nodelocalName
- the local name of the attributes to return, always presentnamespacePrefix
- the prefix of the namespace of the attributes to returnnamespaceURI
- the URI of the namespace of the attributes to returnUnsupportedAxisException
- if the attribute axis is
not supported by this object modelCopyright 2001–2022 The Jaxen Project. All rights reserved.