ma.glasnost.orika.impl
Class DefaultCodeGenerationStrategy

java.lang.Object
  extended by ma.glasnost.orika.impl.DefaultCodeGenerationStrategy
All Implemented Interfaces:
CodeGenerationStrategy

public class DefaultCodeGenerationStrategy
extends Object
implements CodeGenerationStrategy

Author:
matt.deboer@gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface ma.glasnost.orika.impl.generator.CodeGenerationStrategy
CodeGenerationStrategy.Position
 
Method Summary
 void addAggregateSpecification(AggregateSpecification spec, CodeGenerationStrategy.Position relativePosition, Class<AggregateSpecification> relativeSpec)
          Convenience method to add an AggregateSpecification at a relative position with respect to another AggregateSpecification, or the list in general
 void addSpecification(Specification spec, CodeGenerationStrategy.Position relativePosition, Class<Specification> relativeSpec)
          Convenience method to add a specification at a relative position with respect to another Specification, or the list in general
 List<AggregateSpecification> getAggregateSpecifications()
           
 List<Specification> getSpecifications()
           
 void setMapperFactory(MapperFactory mapperFactory)
          Set the MapperFactory on this CodeGenerationStrategy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setMapperFactory

public void setMapperFactory(MapperFactory mapperFactory)
Description copied from interface: CodeGenerationStrategy
Set the MapperFactory on this CodeGenerationStrategy

Specified by:
setMapperFactory in interface CodeGenerationStrategy
Parameters:
mapperFactory - the MapperFactory to apply

addSpecification

public void addSpecification(Specification spec,
                             CodeGenerationStrategy.Position relativePosition,
                             Class<Specification> relativeSpec)
Description copied from interface: CodeGenerationStrategy
Convenience method to add a specification at a relative position with respect to another Specification, or the list in general

Specified by:
addSpecification in interface CodeGenerationStrategy
Parameters:
spec - the specification to add
relativePosition - the relative position
relativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)

getSpecifications

public List<Specification> getSpecifications()
Specified by:
getSpecifications in interface CodeGenerationStrategy
Returns:
the defined specifications

addAggregateSpecification

public void addAggregateSpecification(AggregateSpecification spec,
                                      CodeGenerationStrategy.Position relativePosition,
                                      Class<AggregateSpecification> relativeSpec)
Description copied from interface: CodeGenerationStrategy
Convenience method to add an AggregateSpecification at a relative position with respect to another AggregateSpecification, or the list in general

Specified by:
addAggregateSpecification in interface CodeGenerationStrategy
Parameters:
spec - the specification to add
relativePosition - the relative position
relativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)

getAggregateSpecifications

public List<AggregateSpecification> getAggregateSpecifications()
Specified by:
getAggregateSpecifications in interface CodeGenerationStrategy
Returns:
the defined aggregate specifications


Copyright © 2013 Glasnost. All Rights Reserved.