public class ArrayOrCollectionToMap extends AbstractSpecification
mapperFactory| Constructor and Description |
|---|
ArrayOrCollectionToMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(FieldMap fieldMap)
Tests whether this Specification applies to the specified MappedTypePair
|
String |
generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code to map the provided field map
|
generateEqualityTestCode, setMapperFactory, shouldMapNullspublic boolean appliesTo(FieldMap fieldMap)
BaseSpecificationappliesTo in interface BaseSpecificationappliesTo 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 © 2017 Glasnost. All Rights Reserved.