|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.binding.mapping.Mapping
public class Mapping
A single mapping definition, encapulating the information neccessary 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 | |
---|---|
|
Mapping(Expression sourceExpression,
SettableExpression targetExpression,
ConversionExecutor typeConverter)
Creates a new mapping. |
protected |
Mapping(Expression sourceExpression,
SettableExpression targetExpression,
ConversionExecutor typeConverter,
boolean required)
Creates a new mapping. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
void |
map(java.lang.Object source,
java.lang.Object target,
MappingContext context)
Map the sourceAttribute in to the targetAttribute target map, performing type
conversion if necessary. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mapping(Expression sourceExpression, SettableExpression targetExpression, ConversionExecutor typeConverter)
sourceExpression
- the source expressiontargetExpression
- the target expressiontypeConverter
- a type converterprotected Mapping(Expression sourceExpression, SettableExpression targetExpression, ConversionExecutor typeConverter, boolean required)
sourceExpression
- the source expressiontargetExpression
- the target expressiontypeConverter
- a type converterrequired
- whether or not this mapping is requiredMethod Detail |
---|
public void map(java.lang.Object source, java.lang.Object target, MappingContext context)
sourceAttribute
in to the targetAttribute
target map, performing type
conversion if necessary.
map
in interface AttributeMapper
source
- The source data structuretarget
- The target data structurecontext
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |