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()
Mapping
getSourceExpression
in interface Mapping
public Expression getTargetExpression()
Mapping
getTargetExpression
in interface Mapping
public boolean isRequired()
Mapping
isRequired
in interface Mapping
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object