public interface Specification extends BaseSpecification
| Modifier and Type | Method and Description |
|---|---|
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) |
appliesTovoid setMapperFactory(MapperFactory mapperFactory)
String generateEqualityTestCode(FieldMap fieldMap, VariableRef source, VariableRef destination, SourceCodeContext code)
source - destination - 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 generationcode - Copyright © 2017 Glasnost. All Rights Reserved.