org.plasma.sdo.xpath
Class MetaDataNavigator
java.lang.Object
org.jaxen.DefaultNavigator
org.plasma.sdo.xpath.MetaDataNavigator
- All Implemented Interfaces:
- java.io.Serializable, org.jaxen.NamedAccessNavigator, org.jaxen.Navigator
public class MetaDataNavigator
- extends org.jaxen.DefaultNavigator
- implements org.jaxen.NamedAccessNavigator
Supports navigation of SDO Type and
Property instances by the
Jaxen XPATH engine.
This class is not intended for direct usage, but is
used by the Jaxen engine during evaluation. Use MetaDataXPath
to parse an XPath against a Type graph.
- See Also:
XPath,
Type,
Property,
Serialized Form
| Methods inherited from class org.jaxen.DefaultNavigator |
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNodeType, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jaxen.Navigator |
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNodeType, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIterator |
MetaDataNavigator
public MetaDataNavigator()
isElement
public boolean isElement(java.lang.Object obj)
- Specified by:
isElement in interface org.jaxen.Navigator
isComment
public boolean isComment(java.lang.Object obj)
- Specified by:
isComment in interface org.jaxen.Navigator
isText
public boolean isText(java.lang.Object obj)
- Specified by:
isText in interface org.jaxen.Navigator
isAttribute
public boolean isAttribute(java.lang.Object obj)
- Specified by:
isAttribute in interface org.jaxen.Navigator
isProcessingInstruction
public boolean isProcessingInstruction(java.lang.Object obj)
- Specified by:
isProcessingInstruction in interface org.jaxen.Navigator
isDocument
public boolean isDocument(java.lang.Object obj)
- Specified by:
isDocument in interface org.jaxen.Navigator
isNamespace
public boolean isNamespace(java.lang.Object obj)
- Specified by:
isNamespace in interface org.jaxen.Navigator
getElementName
public java.lang.String getElementName(java.lang.Object obj)
- Specified by:
getElementName in interface org.jaxen.Navigator
getElementNamespaceUri
public java.lang.String getElementNamespaceUri(java.lang.Object obj)
- Specified by:
getElementNamespaceUri in interface org.jaxen.Navigator
getAttributeName
public java.lang.String getAttributeName(java.lang.Object obj)
- Specified by:
getAttributeName in interface org.jaxen.Navigator
getAttributeNamespaceUri
public java.lang.String getAttributeNamespaceUri(java.lang.Object obj)
- Specified by:
getAttributeNamespaceUri in interface org.jaxen.Navigator
getChildAxisIterator
public java.util.Iterator getChildAxisIterator(java.lang.Object contextNode)
- Specified by:
getChildAxisIterator in interface org.jaxen.Navigator- Overrides:
getChildAxisIterator in class org.jaxen.DefaultNavigator
- Parameters:
contextNode - the context node- See Also:
DefaultNavigator.getChildAxisIterator(java.lang.Object)
getChildAxisIterator
public java.util.Iterator getChildAxisIterator(java.lang.Object contextNode,
java.lang.String localName,
java.lang.String namespacePrefix,
java.lang.String namespaceURI)
- Retrieves an
Iterator over the child elements that
match the supplied local name and namespace URI.
- Specified by:
getChildAxisIterator in interface org.jaxen.NamedAccessNavigator
- Parameters:
contextNode - the origin context nodelocalName - the local name of the children to return, always presentnamespacePrefix - ignored; prefixes are not used when matching in XPathnamespaceURI - the URI of the namespace of the children to return
- Returns:
- an Iterator that traverses the named children, or null if none
getNamespaceAxisIterator
public java.util.Iterator getNamespaceAxisIterator(java.lang.Object contextNode)
- Specified by:
getNamespaceAxisIterator in interface org.jaxen.Navigator- Overrides:
getNamespaceAxisIterator in class org.jaxen.DefaultNavigator
getParentAxisIterator
public java.util.Iterator getParentAxisIterator(java.lang.Object contextNode)
- Specified by:
getParentAxisIterator in interface org.jaxen.Navigator- Overrides:
getParentAxisIterator in class org.jaxen.DefaultNavigator
getAttributeAxisIterator
public java.util.Iterator getAttributeAxisIterator(java.lang.Object contextNode)
- Specified by:
getAttributeAxisIterator in interface org.jaxen.Navigator- Overrides:
getAttributeAxisIterator in class org.jaxen.DefaultNavigator
getAttributeAxisIterator
public java.util.Iterator getAttributeAxisIterator(java.lang.Object contextNode,
java.lang.String localName,
java.lang.String namespacePrefix,
java.lang.String namespaceURI)
- Retrieves an
Iterator over the attribute elements that
match the supplied name.
- Specified by:
getAttributeAxisIterator in interface org.jaxen.NamedAccessNavigator
- Parameters:
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 return
- Returns:
- an Iterator that traverses the named attributes, not null
parseXPath
public org.jaxen.XPath parseXPath(java.lang.String xpath)
throws org.jaxen.saxpath.SAXPathException
- Returns a parsed form of the given XPath string, which will be suitable
for queries on Data Graph documents.
- Specified by:
parseXPath in interface org.jaxen.Navigator
- Throws:
org.jaxen.saxpath.SAXPathException
getDocumentNode
public java.lang.Object getDocumentNode(java.lang.Object contextNode)
- Specified by:
getDocumentNode in interface org.jaxen.Navigator- Overrides:
getDocumentNode in class org.jaxen.DefaultNavigator
getElementQName
public java.lang.String getElementQName(java.lang.Object obj)
- Specified by:
getElementQName in interface org.jaxen.Navigator
getAttributeQName
public java.lang.String getAttributeQName(java.lang.Object obj)
- Specified by:
getAttributeQName in interface org.jaxen.Navigator
getNamespaceStringValue
public java.lang.String getNamespaceStringValue(java.lang.Object obj)
- Specified by:
getNamespaceStringValue in interface org.jaxen.Navigator
getNamespacePrefix
public java.lang.String getNamespacePrefix(java.lang.Object obj)
- Specified by:
getNamespacePrefix in interface org.jaxen.Navigator
getTextStringValue
public java.lang.String getTextStringValue(java.lang.Object obj)
- Specified by:
getTextStringValue in interface org.jaxen.Navigator
getAttributeStringValue
public java.lang.String getAttributeStringValue(java.lang.Object obj)
- Specified by:
getAttributeStringValue in interface org.jaxen.Navigator
getElementStringValue
public java.lang.String getElementStringValue(java.lang.Object obj)
- Specified by:
getElementStringValue in interface org.jaxen.Navigator
getProcessingInstructionTarget
public java.lang.String getProcessingInstructionTarget(java.lang.Object obj)
- Specified by:
getProcessingInstructionTarget in interface org.jaxen.Navigator- Overrides:
getProcessingInstructionTarget in class org.jaxen.DefaultNavigator
getProcessingInstructionData
public java.lang.String getProcessingInstructionData(java.lang.Object obj)
- Specified by:
getProcessingInstructionData in interface org.jaxen.Navigator- Overrides:
getProcessingInstructionData in class org.jaxen.DefaultNavigator
getCommentStringValue
public java.lang.String getCommentStringValue(java.lang.Object obj)
- Specified by:
getCommentStringValue in interface org.jaxen.Navigator
translateNamespacePrefixToUri
public java.lang.String translateNamespacePrefixToUri(java.lang.String prefix,
java.lang.Object context)
- Specified by:
translateNamespacePrefixToUri in interface org.jaxen.Navigator- Overrides:
translateNamespacePrefixToUri in class org.jaxen.DefaultNavigator
getDocument
public java.lang.Object getDocument(java.lang.String url)
throws org.jaxen.FunctionCallException
- Specified by:
getDocument in interface org.jaxen.Navigator- Overrides:
getDocument in class org.jaxen.DefaultNavigator
- Throws:
org.jaxen.FunctionCallException
Copyright © 2013. All Rights Reserved.