|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.avutils.jmapper.mapper.generation.MappingBuilder
public class MappingBuilder
MappingBuilder builds all combinations of possible mappings between classes Source and Destination.
| Constructor Summary | |
|---|---|
MappingBuilder(Class<?> aDestination,
Class<?> aSource,
ChooseConfig configChoice,
XML xml,
Set<Method> methodsToGenerate)
MappingBuilder takes in input all informations that need to write the mappings. |
|
MappingBuilder(Class<?> aDestination,
Class<?> aSource,
String aStringOfSetDestination,
String aStringOfGetDestination,
String aStringOfGetSource,
ChooseConfig cc,
XML xml,
Set<Method> methodsToGenerate)
MappingBuilder takes in input all informations that need for to write the mappings. |
|
| Method Summary | |
|---|---|
Class<?> |
getDestination()
|
String |
getMapperName()
|
Map<String,String> |
getMappings()
Returns a Map where the keys are the mappings names and relative values are the mappings. |
Class<?> |
getSource()
|
StringBuilder |
mapping(boolean makeDest,
MappingType mtd,
MappingType mts)
This method writes the mapping based on the value of the three parameters taken in input. |
Set<Method> |
methodsToGenerate()
|
MappingBuilder |
setMapperName(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingBuilder(Class<?> aDestination,
Class<?> aSource,
String aStringOfSetDestination,
String aStringOfGetDestination,
String aStringOfGetSource,
ChooseConfig cc,
XML xml,
Set<Method> methodsToGenerate)
aDestination - Type of DestinationaSource - Type of SourceaStringOfSetDestination - set destination StringaStringOfGetDestination - get destination StringaStringOfGetSource - get source Stringcc - config choosen
public MappingBuilder(Class<?> aDestination,
Class<?> aSource,
ChooseConfig configChoice,
XML xml,
Set<Method> methodsToGenerate)
aDestination - Type of DestinationaSource - Type of SourceconfigChoice - configuration chosen from userxml - xml object| Method Detail |
|---|
public StringBuilder mapping(boolean makeDest,
MappingType mtd,
MappingType mts)
makeDest - true if destination is a new instance, false otherwisemtd - mapping type of destinationmts - mapping type of source
public Map<String,String> getMappings()
public Set<Method> methodsToGenerate()
public Class<?> getSource()
public Class<?> getDestination()
public String getMapperName()
public MappingBuilder setMapperName(String name)
name - the mapper class name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||