public class DefaultMapping extends java.lang.Object implements Mapping
| Constructor and Description |
|---|
DefaultMapping(Expression sourceExpression,
Expression targetExpression)
Creates a new mapping.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Expression |
getSourceExpression()
The source of the mapping.
|
Expression |
getTargetExpression()
The target of the mapping.
|
ConversionExecutor |
getTypeConverter()
Returns the type conversion executor to use during mapping execution.
|
int |
hashCode() |
boolean |
isRequired()
Whether this is a required mapping.
|
void |
map(DefaultMappingContext context)
Execute this mapping.
|
void |
setRequired(boolean required)
Indicates if this mapping is a required mapping.
|
void |
setTypeConverter(ConversionExecutor typeConverter)
Sets a specific type conversion executor to use during mapping execution.
|
java.lang.String |
toString() |
public DefaultMapping(Expression sourceExpression, Expression targetExpression)
sourceExpression - the source expressiontargetExpression - the target expressionpublic Expression getSourceExpression()
MappinggetSourceExpression in interface Mappingpublic Expression getTargetExpression()
MappinggetTargetExpression in interface Mappingpublic boolean isRequired()
MappingisRequired in interface Mappingpublic ConversionExecutor getTypeConverter()
public void setTypeConverter(ConversionExecutor typeConverter)
typeConverter - the type converterpublic void setRequired(boolean required)
required - required statuspublic void map(DefaultMappingContext context)
context - the mapping contextpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object