org.geotools.data.complex
Class AttributeMapping

Object
  extended by AttributeMapping
Direct Known Subclasses:
NestedAttributeMapping

public class AttributeMapping
extends Object

Since:
2.4
Author:
Gabriel Roldan (Axios Engineering), Rini Angreani (CSIRO Earth Science and Resource Engineering)

Field Summary
protected  Expression sourceExpression
           
protected  XPathUtil.StepList targetXPath
           
 
Constructor Summary
AttributeMapping(Expression idExpression, Expression sourceExpression, String sourceIndex, XPathUtil.StepList targetXPath, AttributeType targetNodeInstance, boolean isMultiValued, Map<Name,Expression> clientProperties)
           
AttributeMapping(Expression idExpression, Expression sourceExpression, XPathUtil.StepList targetXPath)
          Creates a new AttributeMapping object.
 
Method Summary
 boolean encodeIfEmpty()
           
 boolean equals(Object o)
          END specific web service methods
 Map<Name,Expression> getClientProperties()
           
 Expression getIdentifierExpression()
           
 String getInstanceXpath()
           
 String getLabel()
          Label, parentLabel and instancePath are for web service backend only
 String getParentLabel()
           
 Expression getSourceExpression()
           
 String getSourceIndex()
           
 AttributeType getTargetNodeInstance()
           
 XPathUtil.StepList getTargetXPath()
           
 int hashCode()
           
 boolean isList()
           
 boolean isMultiValued()
           
 boolean isNestedAttribute()
          This is overridden by NestedAttributeMapping
 void setEncodeIfEmpty(boolean encodeIfEmpty)
           
 void setIdentifierExpression(Expression identifierExpression)
           
 void setInstanceXpath(String instancePath)
           
 void setLabel(String label)
           
 void setList(boolean isList)
           
 void setParentLabel(String label)
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceExpression

protected Expression sourceExpression

targetXPath

protected XPathUtil.StepList targetXPath
Constructor Detail

AttributeMapping

public AttributeMapping(Expression idExpression,
                        Expression sourceExpression,
                        XPathUtil.StepList targetXPath)
Creates a new AttributeMapping object.

Parameters:
sourceExpression - DOCUMENT ME!
targetXPath - DOCUMENT ME!

AttributeMapping

public AttributeMapping(Expression idExpression,
                        Expression sourceExpression,
                        String sourceIndex,
                        XPathUtil.StepList targetXPath,
                        AttributeType targetNodeInstance,
                        boolean isMultiValued,
                        Map<Name,Expression> clientProperties)
Method Detail

isMultiValued

public boolean isMultiValued()

encodeIfEmpty

public boolean encodeIfEmpty()

isList

public boolean isList()

getSourceExpression

public Expression getSourceExpression()

getSourceIndex

public String getSourceIndex()

getTargetXPath

public XPathUtil.StepList getTargetXPath()

getTargetNodeInstance

public AttributeType getTargetNodeInstance()

isNestedAttribute

public boolean isNestedAttribute()
This is overridden by NestedAttributeMapping

Returns:
always return false

getLabel

public String getLabel()
Label, parentLabel and instancePath are for web service backend only


getParentLabel

public String getParentLabel()

getInstanceXpath

public String getInstanceXpath()

setLabel

public void setLabel(String label)

setParentLabel

public void setParentLabel(String label)

setInstanceXpath

public void setInstanceXpath(String instancePath)

setEncodeIfEmpty

public void setEncodeIfEmpty(boolean encodeIfEmpty)

setList

public void setList(boolean isList)

equals

public boolean equals(Object o)
END specific web service methods

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getClientProperties

public Map<Name,Expression> getClientProperties()

getIdentifierExpression

public Expression getIdentifierExpression()

setIdentifierExpression

public void setIdentifierExpression(Expression identifierExpression)


Copyright © 1996-2014 Geotools. All Rights Reserved.