ma.glasnost.orika.impl.generator
Interface AggregateSpecification

All Known Implementing Classes:
MultiOccurrenceToMultiOccurrence

public interface AggregateSpecification

AggregateSpecification encapsulates the logic to generate code for mappings which are applied to collections of FieldMaps together

Author:
mattdeboer

Method Summary
 boolean appliesTo(FieldMap fieldMap)
          Tests whether this Specification applies to the specified MappedTypePair
 String generateMappingCode(List<FieldMap> fieldMappings, SourceCodeContext code)
           
 void setMapperFactory(MapperFactory mapperFactory)
           
 

Method Detail

setMapperFactory

void setMapperFactory(MapperFactory mapperFactory)

appliesTo

boolean appliesTo(FieldMap fieldMap)
Tests whether this Specification applies to the specified MappedTypePair

Parameters:
fieldMap -
typePair -
Returns:
true if this specification applies to the given MappedTypePair

generateMappingCode

String generateMappingCode(List<FieldMap> fieldMappings,
                           SourceCodeContext code)
Parameters:
fieldMappings -
code -
Returns:


Copyright © 2013 Glasnost. All Rights Reserved.