|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.binding.mapping.impl.DefaultMapping
public class DefaultMapping
A single mapping definition, encapsulating the information necessary to map the result of evaluating an expression on a source object to a property on a target object, optionally applying a type conversion during the mapping process.
Constructor Summary | |
---|---|
DefaultMapping(Expression sourceExpression,
Expression targetExpression)
Creates a new mapping. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultMapping(Expression sourceExpression, Expression targetExpression)
sourceExpression
- the source expressiontargetExpression
- the target expressionMethod Detail |
---|
public 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
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |