public class Convert extends AbstractSpecification
mapperFactory| Constructor and Description |
|---|
Convert() |
| Modifier and Type | Method and Description |
|---|---|
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
|
setMapperFactory, shouldMapNullspublic boolean appliesTo(FieldMap fieldMap)
BaseSpecificationappliesTo in interface BaseSpecificationappliesTo in class AbstractSpecificationpublic String generateEqualityTestCode(FieldMap fieldMap, VariableRef source, VariableRef destination, SourceCodeContext code)
SpecificationgenerateEqualityTestCode in interface SpecificationgenerateEqualityTestCode in class AbstractSpecificationpublic String generateMappingCode(FieldMap fieldMap, VariableRef source, VariableRef destination, SourceCodeContext code)
SpecificationgenerateMappingCode in interface SpecificationgenerateMappingCode in class AbstractSpecificationfieldMap - 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 generationCopyright © 2016 Glasnost. All rights reserved.