|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jaxen.BaseXPath org.deegree.feature.xpath.FeatureXPath
public class FeatureXPath
Jaxen XPath implementation for Feature
objects.
This is the entry point for matching an XPath expression against a Feature
. Let fc
be a
FeatureCollection
that you want to match against. Create a compiled XPath object, then match it against one
or more context nodes using the BaseXPath.selectNodes(Object)
method, as in the following example (which features the
infamous Philosoper feature type):
XPath xpath = new FeatureXPath( "gml:featureMember/app:Philosopher/app:friend/app:Philosopher//app:name" ); xpath.setNamespaceContext( nsContext ); List<?> selectedNodes = xpath.selectNodes( new FeatureNode( null, fc ) );
GMLObjectNode
,
Serialized FormConstructor Summary | |
---|---|
FeatureXPath(String xpathExpr,
Feature rootFeature,
GMLVersion version)
Create a new FeatureXPath from an XPath expression string. |
Method Summary |
---|
Methods inherited from class org.jaxen.BaseXPath |
---|
addNamespace, booleanValueOf, createFunctionContext, createNamespaceContext, createVariableContext, debug, evaluate, getContext, getContextSupport, getFunctionContext, getNamespaceContext, getNavigator, getRootExpr, getVariableContext, numberValueOf, selectNodes, selectNodesForContext, selectSingleNode, selectSingleNodeForContext, setFunctionContext, setNamespaceContext, setVariableContext, stringValueOf, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeatureXPath(String xpathExpr, Feature rootFeature, GMLVersion version) throws org.jaxen.JaxenException
FeatureXPath
from an XPath expression string.
xpathExpr
- the XPath expressionrootFeature
- root of the navigation hierarchy (document node)version
- determines the names and types of the standard GML properties, can be null
(if no
properties such as "gml:name" are used)
org.jaxen.JaxenException
- if there is a syntax error in the expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |