Configuration object for the mapping of a community schema attribute.
author: Gabriel Roldan, Axios Engineering version: $Id: AttributeMapping.java 25814 2007-06-12 12:03:41Z groldan $ since: 2.4
getSourceExpression() Returns the expression whose evaluation result against a Feature of the
source FeatureType is going to be the value of the target attribute in
output FeatureType.
getTargetAttributeSchemaElement() Returns the name of the target element instance this attribute mapping
applies to, or null if its fully addressable by the
FeatureType.
For example, the target FeatureType may define a property as
GeometryAttributeType, but the actual instance should be
PointPropertyType.
public boolean
isMultiple() Returns wether this attribute should be treated as a single or multi
valued property.
Returns the expression whose evaluation result against a Feature of the
source FeatureType is going to be the value of the target attribute in
output FeatureType.
At this stage, the expression must be a valid OpenGIS Common Query
Language expression.
Returns the name of the target element instance this attribute mapping
applies to, or null if its fully addressable by the
FeatureType.
For example, the target FeatureType may define a property as
GeometryAttributeType, but the actual instance should be
PointPropertyType. In which case, it should be set to
"gml:PointPropertyType" so ComplexDataStore knows it should create a
point property an thus its subelements are to be addressable by
subsequent mappings.
name of the target element instance in the output schema ornull if not set.
Returns wether this attribute should be treated as a single or multi
valued property.
true if this attribute corresponds to amultivalued property, false otherwise.
Sets wether this attribute should be treated as a single or multi valued
property.
Parameters: isMultiple - true if this attribute corresponds to amultivalued property, false otherwise.
public void setSourceExpression(String sourceExpression)(Code)
Sets the OGC CQL expression for the attribute value.
Parameters: sourceExpression - OGC CQL expression for the attribute value.
setTargetAttributePath
public void setTargetAttributePath(String targetAttributePath)(Code)
Sets the XPath expression addressing the target attribute in a target
FeatureType.
Parameters: targetAttributePath - the XPath location path for the target attribute of themapping.
setTargetAttributeSchemaElement
public void setTargetAttributeSchemaElement(String targetAttributeSchemaElement)(Code)
Sets the name of the target element instance in the output schema.
Parameters: targetAttributeSchemaElement - name of the target element instance in the output schema.Could be prefixed, in which case the prefix mapping has to beavailable in the corresponding ComplexDataStoreDTO.getNamespaces