|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAttributeMapping
public class AttributeMapping
Configuration object for the mapping of a community schema attribute.
Constructor Summary | |
---|---|
AttributeMapping()
|
Method Summary | |
---|---|
boolean |
encodeIfEmpty()
Returns whether this attribute should encode when empty; |
Map |
getClientProperties()
|
String |
getIdentifierExpression()
|
String |
getIdentifierPath()
|
String |
getInputAttributePath()
Return the input XPath expression |
String |
getInstancePath()
|
String |
getLabel()
|
String |
getLinkElement()
Returns the name of the linked element type of which this attribute is nesting/targeting. |
String |
getLinkField()
Returns the XPath expression addressing the target attribute in the linked target feature type |
String |
getParentLabel()
|
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. |
String |
getSourceIndex()
Returns the expression whose evaluation result in numeric value to indicate row number to extract this#sourceExpression from denormalised database rows. |
String |
getTargetAttributePath()
Returns the XPath expression addressing the target attribute in a target FeatureType. |
String |
getTargetAttributeSchemaElement()
Returns the name of the target element instance this attribute mapping applies to, or null if its fully addressable by the FeatureType. |
String |
getTargetQueryString()
|
boolean |
isList()
Returns whether this attribute should be treated as a list valued property. |
boolean |
isMultiple()
Returns whether this attribute should be treated as a single or multi valued property. |
void |
putClientProperty(String name,
String expression)
|
void |
setClientProperties(Map clientProperties)
|
void |
setEncodeIfEmpty(boolean encodeIfEmpty)
Returns whether this attribute should encode when empty; |
void |
setEncodeIfEmpty(String encodeIfEmpty)
Returns whether this attribute should encode when empty; |
void |
setIdentifierExpression(String identifierExpression)
|
void |
setIdentifierPath(String identifierPath)
|
void |
setInputAttributePath(String inputAttributePath)
Set the input XPath expression where we are getting the features from a data access instead of a data store. |
void |
setInstancePath(String instancePath)
|
void |
setLabel(String label)
|
void |
setLinkElement(String linkElement)
Sets the name of the linked element type of which this attribute is nesting/targeting. |
void |
setLinkField(String linkField)
Sets the XPath expression addressing the target attribute in the linked target feature type |
void |
setList(boolean isList)
Sets whether this attribute should be treated as a list valued property. |
void |
setList(String list)
Helper method to allow config digester passing a string. |
void |
setMultiple(boolean isMultiple)
Sets whether this attribute should be treated as a single or multi valued property. |
void |
setMultiple(String isMultiple)
Helper method to allow config digester passing a string. |
void |
setParentLabel(String parentLabel)
|
void |
setSourceExpression(String sourceExpression)
Sets the OGC CQL expression for the attribute value. |
void |
setSourceIndex(String sourceIndex)
Sets the OGC CQL expression index for the attribute value. |
void |
setTargetAttributePath(String targetAttributePath)
Sets the XPath expression addressing the target attribute in a target FeatureType. |
void |
setTargetAttributeSchemaElement(String targetAttributeSchemaElement)
Sets the name of the target element instance in the output schema. |
void |
setTargetQueryString(String targetQueryString)
|
String |
toString()
Returns a string representation of this config object. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeMapping()
Method Detail |
---|
public String getSourceExpression()
At this stage, the expression must be a valid OpenGIS Common Query Language expression.
public void setSourceExpression(String sourceExpression)
sourceExpression
- OGC CQL expression for the attribute value.public String getSourceIndex()
this#sourceExpression
from denormalised database rows.
At this stage, the expression must be a valid integer, or LAST would work to get the last dynamic result.
public void setSourceIndex(String sourceIndex)
sourceIndex
- OGC CQL expression index for the attribute value.public String getInputAttributePath()
public void setInputAttributePath(String inputAttributePath)
inputAttributePath
- public String getLabel()
public void setLabel(String label)
public String getParentLabel()
public void setParentLabel(String parentLabel)
public String getTargetQueryString()
public void setTargetQueryString(String targetQueryString)
public String getInstancePath()
public void setInstancePath(String instancePath)
public String getIdentifierPath()
public void setIdentifierPath(String identifierPath)
public String getLinkElement()
public void setLinkElement(String linkElement)
linkElement
- public String getLinkField()
public void setLinkField(String linkField)
linkField
- public String getTargetAttributePath()
public void setTargetAttributePath(String targetAttributePath)
targetAttributePath
- the XPath location path for the target attribute of the mapping.public 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(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 boolean encodeIfEmpty()
true
encode when the value is empty, false
otherwise.public void setEncodeIfEmpty(boolean encodeIfEmpty)
encodeIfEmpty
- true
encode when the value is empty, false
otherwise.public void setEncodeIfEmpty(String encodeIfEmpty)
encodeIfEmpty
- true
encode when the value is empty, false
otherwise.public void setList(boolean isList)
isList
- true
if this attribute corresponds to a list valued property,
false
otherwise.public void setList(String list)
isList
- setList(boolean)
public boolean isList()
true
if this attribute corresponds to a list valued property,
false
otherwise.public void setMultiple(String isMultiple)
isMultiple
- setMultiple(boolean)
public String toString()
toString
in class Object
public Map getClientProperties()
public void setClientProperties(Map clientProperties)
public void putClientProperty(String name, String expression)
public String getIdentifierExpression()
public void setIdentifierExpression(String identifierExpression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |