|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Specification
Specification encapsulates the logic to generate code for mapping and comparing a pair of types
| Method Summary | |
|---|---|
boolean |
appliesTo(FieldMap fieldMap)
Tests whether this Specification applies to the specified MappedTypePair |
String |
generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code for a boolean equality test between the two variable types, where are potentially unrelated. |
String |
generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code to map the provided field map |
void |
setMapperFactory(MapperFactory mapperFactory)
|
| Method Detail |
|---|
void setMapperFactory(MapperFactory mapperFactory)
boolean appliesTo(FieldMap fieldMap)
fieldMap - typePair -
String generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
source - destination - inverseProperty - code -
String generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
fieldMap - the fieldMap for which source code should be generatedsource - a convenience wrapper around the source field which can be used facilitate code generationdestination - a convenience wrapper around the destination field which can be used facilitate code generationinverseProperty - code -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||