public class XmlFeatureTypeMapping extends FeatureTypeMapping
| Constructor and Description |
|---|
XmlFeatureTypeMapping()
No parameters constructor for use by the digester configuration engine as a JavaBean
|
XmlFeatureTypeMapping(FeatureSource<? extends FeatureType,? extends Feature> source,
AttributeDescriptor target,
List<AttributeMapping> mappings,
NamespaceSupport namespaces,
String itemXpath) |
| Modifier and Type | Method and Description |
|---|---|
List<Expression> |
findMappingsFor(XPathUtil.StepList propertyName,
boolean includeNestedMappings)
Looks up for attribute mappings matching the xpath expression
propertyName. |
AttributeMapping |
getAttributeMappingByLabel(String label)
Finds an attribute mapping by label.
|
List<AttributeMapping> |
getAttributeMappingsByExpression(Expression sourceExpression)
Finds the attribute mappings for the given source expression.
|
List<Expression> |
getExpressionsIgnoreIndex(XPathUtil.StepList targetPath) |
AttributeMapping |
getStringMapping(XPathUtil.StepList exactPath)
Finds the attribute mapping for the target expression
exactPath |
protected Expression |
getValue(String xpathPrefix,
Expression node,
AttributeMapping mapping) |
void |
populateFeatureData() |
getAttributeMapping, getAttributeMapping, getAttributeMappings, getAttributeMappingsIgnoreIndex, getDefaultGeometryXPath, getFeatureIdExpression, getIndexAttributeName, getIndexSource, getIsListMappings, getMappingName, getNamespaces, getNestedMappings, getSource, getSourceDatastoreId, getTargetFeature, getUnderlyingComplexMapping, isDenormalised, setDefaultGeometryXPath, setDenormalised, setIndexSource, setName, setSource, setSourceDatastoreId, setTargetFeatureprotected String itemXpath
public XmlFeatureTypeMapping()
public XmlFeatureTypeMapping(FeatureSource<? extends FeatureType,? extends Feature> source, AttributeDescriptor target, List<AttributeMapping> mappings, NamespaceSupport namespaces, String itemXpath)
public List<Expression> getExpressionsIgnoreIndex(XPathUtil.StepList targetPath)
public List<AttributeMapping> getAttributeMappingsByExpression(Expression sourceExpression)
getAttributeMappingsByExpression in class FeatureTypeMappingpublic AttributeMapping getAttributeMappingByLabel(String label)
label - The attribute mapping label.public AttributeMapping getStringMapping(XPathUtil.StepList exactPath)
exactPathexactPath - the xpath expression on the target schema to find the mapping forexactPath or null
ifpublic void populateFeatureData()
throws IOException
IOExceptionprotected Expression getValue(String xpathPrefix, Expression node, AttributeMapping mapping)
public List<Expression> findMappingsFor(XPathUtil.StepList propertyName, boolean includeNestedMappings)
propertyName.
If any step in propertyName has index greater than 1, any mapping for the
same property applies, regardless of the mapping. For example, if there are mappings for
gml:name[1], gml:name[2] and gml:name[3], but
propertyName is just gml:name, all three mappings apply.
findMappingsFor in class FeatureTypeMappingCopyright © 1996–2021 Geotools. All rights reserved.