|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.complex.config.AttributeMapping
public class AttributeMapping
Configuration object for the mapping of a community schema attribute.
Constructor Summary | |
---|---|
AttributeMapping()
|
Method Summary | |
---|---|
java.util.Map |
getClientProperties()
|
java.lang.String |
getIdentifierExpression()
|
java.lang.String |
getIdentifierPath()
|
java.lang.String |
getInputAttributePath()
Return the input XPath expression |
java.lang.String |
getInstancePath()
|
java.lang.String |
getLabel()
|
java.lang.String |
getLinkElement()
Returns the name of the linked element type of which this attribute is nesting/targeting. |
java.lang.String |
getLinkField()
Returns the XPath expression addressing the target attribute in the linked target feature type |
java.lang.String |
getParentLabel()
|
java.lang.String |
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. |
java.lang.String |
getTargetAttributePath()
Returns the XPath expression addressing the target attribute in a target FeatureType. |
java.lang.String |
getTargetAttributeSchemaElement()
Returns the name of the target element instance this attribute mapping applies to, or null if its fully addressable by the FeatureType. |
java.lang.String |
getTargetQueryString()
|
boolean |
isMultiple()
Returns wether this attribute should be treated as a single or multi valued property. |
void |
putClientProperty(java.lang.String name,
java.lang.String expression)
|
void |
setClientProperties(java.util.Map clientProperties)
|
void |
setIdentifierExpression(java.lang.String identifierExpression)
|
void |
setIdentifierPath(java.lang.String identifierPath)
|
void |
setInputAttributePath(java.lang.String inputAttributePath)
Set the input XPath expression where we are getting the features from a data access instead of a data store. |
void |
setInstancePath(java.lang.String instancePath)
|
void |
setLabel(java.lang.String label)
|
void |
setLinkElement(java.lang.String linkElement)
Sets the name of the linked element type of which this attribute is nesting/targeting. |
void |
setLinkField(java.lang.String linkField)
Sets the XPath expression addressing the target attribute in the linked target feature type |
void |
setMultiple(boolean isMultiple)
Sets wether this attribute should be treated as a single or multi valued property. |
void |
setMultiple(java.lang.String isMultiple)
Helper method to allow config digester passing a string. |
void |
setParentLabel(java.lang.String parentLabel)
|
void |
setSourceExpression(java.lang.String sourceExpression)
Sets the OGC CQL expression for the attribute value. |
void |
setTargetAttributePath(java.lang.String targetAttributePath)
Sets the XPath expression addressing the target attribute in a target FeatureType. |
void |
setTargetAttributeSchemaElement(java.lang.String targetAttributeSchemaElement)
Sets the name of the target element instance in the output schema. |
void |
setTargetQueryString(java.lang.String targetQueryString)
|
java.lang.String |
toString()
Returns a string representation of this config object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeMapping()
Method Detail |
---|
public java.lang.String getSourceExpression()
At this stage, the expression must be a valid OpenGIS Common Query Language expression.
public void setSourceExpression(java.lang.String sourceExpression)
sourceExpression
- OGC CQL expression for the attribute value.public java.lang.String getInputAttributePath()
public void setInputAttributePath(java.lang.String inputAttributePath)
inputAttributePath
- public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getParentLabel()
public void setParentLabel(java.lang.String parentLabel)
public java.lang.String getTargetQueryString()
public void setTargetQueryString(java.lang.String targetQueryString)
public java.lang.String getInstancePath()
public void setInstancePath(java.lang.String instancePath)
public java.lang.String getIdentifierPath()
public void setIdentifierPath(java.lang.String identifierPath)
public java.lang.String getLinkElement()
public void setLinkElement(java.lang.String linkElement)
linkElement
- public java.lang.String getLinkField()
public void setLinkField(java.lang.String linkField)
linkField
- public java.lang.String getTargetAttributePath()
public void setTargetAttributePath(java.lang.String targetAttributePath)
targetAttributePath
- the XPath location path for the target attribute of the mapping.public java.lang.String getTargetAttributeSchemaElement()
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 AppSchemaDataAccess knows it should create a point property an thus its subelements are to be addressable by subsequent mappings.
null
if
not set.public void setTargetAttributeSchemaElement(java.lang.String targetAttributeSchemaElement)
targetAttributeSchemaElement
- name of the target element instance in the output schema. Could be prefixed,
in which case the prefix mapping has to be available in the corresponding
AppSchemaDataAccessDTO.getNamespaces()
public boolean isMultiple()
true
if this attribute corresponds to a multivalued property,
false
otherwise.public void setMultiple(boolean isMultiple)
isMultiple
- true
if this attribute corresponds to a multivalued property,
false
otherwise.public void setMultiple(java.lang.String isMultiple)
isMultiple
- setMultiple(boolean)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map getClientProperties()
public void setClientProperties(java.util.Map clientProperties)
public void putClientProperty(java.lang.String name, java.lang.String expression)
public java.lang.String getIdentifierExpression()
public void setIdentifierExpression(java.lang.String identifierExpression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |