Package org.geotools.data.complex.filter
Class XPath
Utility class to evaluate XPath expressions against an Attribute instance, which may be any Attribute, whether it is
simple, complex, a feature, etc.
At the difference of the Filter subsystem, which works against Attribute contents (for example to evaluate a comparison filter), the XPath subsystem, for which this class is the single entry point, works against Attribute instances. That is, the result of an XPath expression, if a single value, is an Attribute, not the attribute content, or a List of Attributes, for instance.
- Since:
- 2.4
- Author:
- Gabriel Roldan (Axios Engineering), Rini Angreani (CSIRO Earth Science and Resource Engineering)
-
Nested Class Summary
Nested classes/interfaces inherited from class XPathUtil
XPathUtil.Step, XPathUtil.StepList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisComplexType(XPathUtil.StepList attrXPath, AttributeDescriptor featureType) static booleanisId(XPathUtil.Step step) set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, AttributeDescriptor targetDescriptor, Expression sourceExpression) set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, Expression sourceExpression) Sets the value of the attribute ofattaddressed byxpathand of typetargetNodeTypeto bevaluewith idid.voidvoidsetFeatureFactory(FeatureFactory featureFactory) voidMethods inherited from class XPathUtil
equals, rootElementSteps, steps
-
Constructor Details
-
XPath
public XPath() -
XPath
-
-
Method Details
-
setFilterFactory
-
setCRS
-
setFeatureFactory
-
set
public Attribute set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, Expression sourceExpression) Sets the value of the attribute ofattaddressed byxpathand of typetargetNodeTypeto bevaluewith idid.- Parameters:
att- the root attribute for which to set the child attribute valuexpath- the xpath expression that addresses theattchild whose value is to be setvalue- the value of the attribute addressed byxpathid- the identifier of the attribute addressed byxpath, might benulltargetNodeType- the expected type of the attribute addressed byxpath, ornullif unknownisXlinkRef- true if the attribute would only contain xlink:href client property
-
set
public Attribute set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, AttributeDescriptor targetDescriptor, Expression sourceExpression) -
isComplexType
-
isId
- Returns:
- true if this step represents an id attribute
-