public class XPath extends XPathUtil
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.
XPathUtil.Step, XPathUtil.StepList
Constructor and Description |
---|
XPath() |
XPath(FilterFactory ff,
FeatureFactory featureFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
isComplexType(XPathUtil.StepList attrXPath,
AttributeDescriptor featureType) |
static boolean |
isId(XPathUtil.Step step) |
Attribute |
set(Attribute att,
XPathUtil.StepList xpath,
Object value,
String id,
AttributeType targetNodeType,
boolean isXlinkRef,
AttributeDescriptor targetDescriptor,
Expression sourceExpression) |
Attribute |
set(Attribute att,
XPathUtil.StepList xpath,
Object value,
String id,
AttributeType targetNodeType,
boolean isXlinkRef,
Expression sourceExpression)
Sets the value of the attribute of
att addressed by xpath and of
type targetNodeType to be value with id id . |
void |
setCRS(CoordinateReferenceSystem crs) |
void |
setFeatureFactory(FeatureFactory featureFactory) |
void |
setFilterFactory(FilterFactory ff) |
equals, rootElementSteps, steps
public XPath()
public XPath(FilterFactory ff, FeatureFactory featureFactory)
public void setFilterFactory(FilterFactory ff)
public void setCRS(CoordinateReferenceSystem crs)
public void setFeatureFactory(FeatureFactory featureFactory)
public Attribute set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, Expression sourceExpression)
att
addressed by xpath
and of
type targetNodeType
to be value
with id id
.att
- the root attribute for which to set the child attribute valuexpath
- the xpath expression that addresses the att
child whose value is to
be setvalue
- the value of the attribute addressed by xpath
id
- the identifier of the attribute addressed by xpath
, might be
null
targetNodeType
- the expected type of the attribute addressed by xpath
, or
null
if unknownisXlinkRef
- true if the attribute would only contain xlink:href client propertypublic Attribute set(Attribute att, XPathUtil.StepList xpath, Object value, String id, AttributeType targetNodeType, boolean isXlinkRef, AttributeDescriptor targetDescriptor, Expression sourceExpression)
public boolean isComplexType(XPathUtil.StepList attrXPath, AttributeDescriptor featureType)
public static boolean isId(XPathUtil.Step step)
Copyright © 1996–2019 Geotools. All rights reserved.