|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jaxen.DefaultNavigator | +--org.joda.property.path.DocumentNavigator
Jaxen Navigator implementation. Namespaces are not supported
Nested Class Summary | |
static class |
DocumentNavigator.NavAttribute
Wrapper for attribute handling |
static class |
DocumentNavigator.NavElement
Wrapper for element handling |
static class |
DocumentNavigator.NavText
Wrapper for text handling |
Constructor Summary | |
DocumentNavigator(XMLMetaData metaData)
Get the singleton instance of the navifator |
Method Summary | |
DocumentNavigator.NavElement |
createDocument(Bean bean,
java.lang.String beanName)
Get the singleton instance of the navifator |
static java.lang.Object |
decodeResult(java.lang.Object object)
Convert an internal wrapper back into a 'real' object |
java.util.Iterator |
getAttributeAxisIterator(java.lang.Object contextNode)
Get an iterator through the list of attributes |
java.lang.String |
getAttributeName(java.lang.Object obj)
Get the name of an attribute |
java.lang.String |
getAttributeNamespaceUri(java.lang.Object obj)
Get the attribute namespace, null as namespaces not supported |
java.lang.String |
getAttributeQName(java.lang.Object obj)
|
java.lang.String |
getAttributeStringValue(java.lang.Object obj)
Get the attribute string content |
java.util.Iterator |
getChildAxisIterator(java.lang.Object contextNode)
Get an iterator through the children of a property |
java.lang.String |
getCommentStringValue(java.lang.Object obj)
|
java.lang.Object |
getDocument(java.lang.String url)
Read a new xml document from the specified url |
java.lang.Object |
getDocumentNode(java.lang.Object contextNode)
Get the root of the object graph |
java.lang.String |
getElementName(java.lang.Object obj)
Get the name of an element |
java.lang.String |
getElementNamespaceUri(java.lang.Object obj)
Get the element namespace, null as namespaces not supported |
java.lang.String |
getElementQName(java.lang.Object obj)
|
java.lang.String |
getElementStringValue(java.lang.Object obj)
Get the element string content |
java.util.Iterator |
getNamespaceAxisIterator(java.lang.Object contextNode)
Get an iterator through the namespaces on a node, none as we don't support namespaces |
java.lang.String |
getNamespacePrefix(java.lang.Object obj)
|
java.lang.String |
getNamespaceStringValue(java.lang.Object obj)
|
java.util.Iterator |
getParentAxisIterator(java.lang.Object contextNode)
Get an iterator representing the parent of the passed in node |
java.lang.String |
getProcessingInstructionData(java.lang.Object obj)
|
java.lang.String |
getProcessingInstructionTarget(java.lang.Object obj)
|
java.lang.String |
getTextStringValue(java.lang.Object obj)
Get the text string content |
boolean |
isAttribute(java.lang.Object obj)
Is the object an attribute |
boolean |
isComment(java.lang.Object obj)
Is the object a comment, false as comments are not supported |
boolean |
isDocument(java.lang.Object obj)
Is the object the document root |
boolean |
isElement(java.lang.Object obj)
Is the object an element |
boolean |
isNamespace(java.lang.Object obj)
Is the object a namespace, false as ns not supported |
boolean |
isProcessingInstruction(java.lang.Object obj)
Is the object an PI, false as PIs are not supported |
boolean |
isText(java.lang.Object obj)
Is the object text |
org.jaxen.XPath |
parseXPath(java.lang.String xpath)
Returns a parsed form of the given xpath string, which will be suitable for queries on properties. |
java.lang.String |
translateNamespacePrefixToUri(java.lang.String prefix,
java.lang.Object context)
|
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 |
Constructor Detail |
public DocumentNavigator(XMLMetaData metaData)
Method Detail |
public DocumentNavigator.NavElement createDocument(Bean bean, java.lang.String beanName)
public static java.lang.Object decodeResult(java.lang.Object object)
public boolean isElement(java.lang.Object obj)
isElement
in interface org.jaxen.Navigator
isElement
in class org.jaxen.DefaultNavigator
public boolean isComment(java.lang.Object obj)
isComment
in interface org.jaxen.Navigator
isComment
in class org.jaxen.DefaultNavigator
public boolean isText(java.lang.Object obj)
isText
in interface org.jaxen.Navigator
isText
in class org.jaxen.DefaultNavigator
public boolean isAttribute(java.lang.Object obj)
isAttribute
in interface org.jaxen.Navigator
isAttribute
in class org.jaxen.DefaultNavigator
public boolean isProcessingInstruction(java.lang.Object obj)
isProcessingInstruction
in interface org.jaxen.Navigator
isProcessingInstruction
in class org.jaxen.DefaultNavigator
public boolean isDocument(java.lang.Object obj)
isDocument
in interface org.jaxen.Navigator
isDocument
in class org.jaxen.DefaultNavigator
public boolean isNamespace(java.lang.Object obj)
isNamespace
in interface org.jaxen.Navigator
isNamespace
in class org.jaxen.DefaultNavigator
public java.lang.String getElementName(java.lang.Object obj)
getElementName
in interface org.jaxen.Navigator
getElementName
in class org.jaxen.DefaultNavigator
public java.lang.String getElementNamespaceUri(java.lang.Object obj)
getElementNamespaceUri
in interface org.jaxen.Navigator
getElementNamespaceUri
in class org.jaxen.DefaultNavigator
public java.lang.String getAttributeName(java.lang.Object obj)
getAttributeName
in interface org.jaxen.Navigator
getAttributeName
in class org.jaxen.DefaultNavigator
public java.lang.String getAttributeNamespaceUri(java.lang.Object obj)
getAttributeNamespaceUri
in interface org.jaxen.Navigator
getAttributeNamespaceUri
in class org.jaxen.DefaultNavigator
public java.util.Iterator getChildAxisIterator(java.lang.Object contextNode)
getChildAxisIterator
in interface org.jaxen.Navigator
getChildAxisIterator
in class org.jaxen.DefaultNavigator
public java.util.Iterator getNamespaceAxisIterator(java.lang.Object contextNode)
getNamespaceAxisIterator
in interface org.jaxen.Navigator
getNamespaceAxisIterator
in class org.jaxen.DefaultNavigator
public java.util.Iterator getParentAxisIterator(java.lang.Object contextNode)
getParentAxisIterator
in interface org.jaxen.Navigator
getParentAxisIterator
in class org.jaxen.DefaultNavigator
public java.util.Iterator getAttributeAxisIterator(java.lang.Object contextNode)
getAttributeAxisIterator
in interface org.jaxen.Navigator
getAttributeAxisIterator
in class org.jaxen.DefaultNavigator
public org.jaxen.XPath parseXPath(java.lang.String xpath) throws org.saxpath.SAXPathException
parseXPath
in interface org.jaxen.Navigator
parseXPath
in class org.jaxen.DefaultNavigator
org.saxpath.SAXPathException
public java.lang.Object getDocumentNode(java.lang.Object contextNode)
getDocumentNode
in interface org.jaxen.Navigator
getDocumentNode
in class org.jaxen.DefaultNavigator
public java.lang.String getElementQName(java.lang.Object obj)
getElementQName
in interface org.jaxen.Navigator
getElementQName
in class org.jaxen.DefaultNavigator
public java.lang.String getAttributeQName(java.lang.Object obj)
getAttributeQName
in interface org.jaxen.Navigator
getAttributeQName
in class org.jaxen.DefaultNavigator
public java.lang.String getNamespaceStringValue(java.lang.Object obj)
getNamespaceStringValue
in interface org.jaxen.Navigator
getNamespaceStringValue
in class org.jaxen.DefaultNavigator
public java.lang.String getNamespacePrefix(java.lang.Object obj)
getNamespacePrefix
in interface org.jaxen.Navigator
getNamespacePrefix
in class org.jaxen.DefaultNavigator
public java.lang.String getTextStringValue(java.lang.Object obj)
getTextStringValue
in interface org.jaxen.Navigator
getTextStringValue
in class org.jaxen.DefaultNavigator
public java.lang.String getAttributeStringValue(java.lang.Object obj)
getAttributeStringValue
in interface org.jaxen.Navigator
getAttributeStringValue
in class org.jaxen.DefaultNavigator
public java.lang.String getElementStringValue(java.lang.Object obj)
getElementStringValue
in interface org.jaxen.Navigator
getElementStringValue
in class org.jaxen.DefaultNavigator
public java.lang.String getProcessingInstructionTarget(java.lang.Object obj)
getProcessingInstructionTarget
in interface org.jaxen.Navigator
getProcessingInstructionTarget
in class org.jaxen.DefaultNavigator
public java.lang.String getProcessingInstructionData(java.lang.Object obj)
getProcessingInstructionData
in interface org.jaxen.Navigator
getProcessingInstructionData
in class org.jaxen.DefaultNavigator
public java.lang.String getCommentStringValue(java.lang.Object obj)
getCommentStringValue
in interface org.jaxen.Navigator
getCommentStringValue
in class org.jaxen.DefaultNavigator
public java.lang.String translateNamespacePrefixToUri(java.lang.String prefix, java.lang.Object context)
translateNamespacePrefixToUri
in interface org.jaxen.Navigator
translateNamespacePrefixToUri
in class org.jaxen.DefaultNavigator
public java.lang.Object getDocument(java.lang.String url) throws org.jaxen.FunctionCallException
getDocument
in interface org.jaxen.Navigator
getDocument
in class org.jaxen.DefaultNavigator
org.jaxen.FunctionCallException
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |