|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaxen.DefaultNavigator org.deegree.feature.xpath.FeatureNavigator
class FeatureNavigator
TODO add documentation here
Constructor Summary | |
---|---|
FeatureNavigator(Feature rootFeature,
GMLVersion version)
Creates a new FeatureNavigator instance with a Feature that is the root of the navigation
hierarchy. |
Method Summary | |
---|---|
Iterator<AttributeNode> |
getAttributeAxisIterator(Object node)
Returns an iterator over all attributes of an element node. |
String |
getAttributeName(Object node)
Returns the local name of an attribute node. |
String |
getAttributeNamespaceUri(Object node)
Returns the namespace URI of an attribute node. |
String |
getAttributeQName(Object node)
Returns the qualified (=prefixed) name of an attribute node. |
String |
getAttributeStringValue(Object node)
Returns the string value of an attribute node. |
Iterator<?> |
getChildAxisIterator(Object node)
Returns an iterator over all children of the given node. |
String |
getCommentStringValue(Object contextNode)
|
Object |
getDocumentNode(Object contextNode)
Returns the top-level document node. |
String |
getElementName(Object node)
Returns the local name of an element node. |
String |
getElementNamespaceUri(Object node)
Returns the namespace URI of an element node. |
String |
getElementQName(Object node)
Returns the qualified (=prefixed) name of an element node. |
String |
getElementStringValue(Object node)
Returns the string value of an element node. |
String |
getNamespacePrefix(Object contextNode)
|
String |
getNamespaceStringValue(Object contextNode)
|
Iterator<Node> |
getParentAxisIterator(Object contextNode)
Returns a (single-member) iterator over this node's parent. |
String |
getTextStringValue(Object obj)
|
boolean |
isAttribute(Object obj)
|
boolean |
isComment(Object obj)
|
boolean |
isDocument(Object obj)
|
boolean |
isElement(Object obj)
|
boolean |
isNamespace(Object obj)
|
boolean |
isProcessingInstruction(Object obj)
|
boolean |
isText(Object obj)
|
org.jaxen.XPath |
parseXPath(String xpath)
Returns a parsed form of the given XPath string, which will be suitable for queries on Feature
objects. |
String |
translateNamespacePrefixToUri(String prefix,
Object element)
Translates a namespace prefix to a URI. |
Methods inherited from class org.jaxen.DefaultNavigator |
---|
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getDocument, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNamespaceAxisIterator, getNodeType, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getProcessingInstructionData, getProcessingInstructionTarget, getSelfAxisIterator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
FeatureNavigator(Feature rootFeature, GMLVersion version)
FeatureNavigator
instance with a Feature
that is the root of the navigation
hierarchy.
rootFeature
- root of the navigation hierarchy (document node), can be nullversion
- determines the names and types of the standard GML properties, can be null
(if no
properties such as "gml:name" are used)Method Detail |
---|
public Iterator<AttributeNode> getAttributeAxisIterator(Object node)
getAttributeAxisIterator
in interface org.jaxen.Navigator
getAttributeAxisIterator
in class org.jaxen.DefaultNavigator
node
- the context node for the attribute axis
public String getAttributeName(Object node)
node
- the attribute node
public String getAttributeNamespaceUri(Object node)
node
- the attribute node
public String getAttributeQName(Object node)
node
- the attribute node
public String getAttributeStringValue(Object node)
node
- the attribute node
public Iterator<?> getChildAxisIterator(Object node)
getChildAxisIterator
in interface org.jaxen.Navigator
getChildAxisIterator
in class org.jaxen.DefaultNavigator
node
- the context node for the child axis
public String getCommentStringValue(Object contextNode)
public Object getDocumentNode(Object contextNode)
getDocumentNode
in interface org.jaxen.Navigator
getDocumentNode
in class org.jaxen.DefaultNavigator
contextNode
- any node in the document
public String getElementName(Object node)
node
- the element node
public String getElementNamespaceUri(Object node)
node
- the element node
public String getElementQName(Object node)
node
- the element node
public String getElementStringValue(Object node)
node
- the target node
public String getNamespacePrefix(Object contextNode)
public String getNamespaceStringValue(Object contextNode)
public Iterator<Node> getParentAxisIterator(Object contextNode)
getParentAxisIterator
in interface org.jaxen.Navigator
getParentAxisIterator
in class org.jaxen.DefaultNavigator
contextNode
- the context node for the parent axis
public String getTextStringValue(Object obj)
public boolean isAttribute(Object obj)
public boolean isComment(Object obj)
public boolean isDocument(Object obj)
public boolean isElement(Object obj)
public boolean isNamespace(Object obj)
public boolean isProcessingInstruction(Object obj)
public boolean isText(Object obj)
public org.jaxen.XPath parseXPath(String xpath) throws org.jaxen.saxpath.SAXPathException
Feature
objects.
xpath
- the XPath expression
org.jaxen.saxpath.SAXPathException
- if the string is syntactically incorrectpublic String translateNamespacePrefixToUri(String prefix, Object element)
translateNamespacePrefixToUri
in interface org.jaxen.Navigator
translateNamespacePrefixToUri
in class org.jaxen.DefaultNavigator
prefix
- the namespace prefixelement
- the namespace context
element
; null if the prefix is not
bound
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |