|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.noco.dtogen.write.ToolMethodWriter
This utility class is responsible with the generation of Tool mapping methods.
Field Summary | |
private ToolCodeWriter |
codeWriter
|
private static java.lang.String[] |
CONVERT_MODIFIERS
|
private static ILog |
L
|
private ModelRepository |
repo
|
Constructor Summary | |
ToolMethodWriter(ModelRepository repository,
java.util.Map allSkeletons)
Constructs a ToolMethodWriter which is aware of the current
ModelRespository and all registered DTO skeletons. |
Method Summary | |
CodeJavaMethod |
writeCreateDTO(com.thoughtworks.qdox.model.JavaClass clazz,
DTOClassSkel skel)
creates the creational DTO method which takes all POJOs as parameter. |
CodeJavaMethod |
writeDirectCreate(com.thoughtworks.qdox.model.JavaClass clazz,
DTOClassSkel skel,
java.lang.String originatedFqn)
creates the creational DTO method which uses only 1 POJO as parameter. |
CodeJavaMethod |
writeInverseCreate(com.thoughtworks.qdox.model.JavaClass clazz,
DTOClassSkel skel,
java.lang.String originatedFqn)
|
CodeJavaMethod[] |
writeMappingMethods(com.thoughtworks.qdox.model.JavaClass clazz,
DTOClassSkel skel)
generates mapping methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final ILog L
private static final java.lang.String[] CONVERT_MODIFIERS
private ToolCodeWriter codeWriter
private ModelRepository repo
Constructor Detail |
public ToolMethodWriter(ModelRepository repository, java.util.Map allSkeletons)
ToolMethodWriter
which is aware of the current
ModelRespository
and all registered DTO skeletons.
repository
- allSkeletons
- Method Detail |
public CodeJavaMethod[] writeMappingMethods(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel)
public CodeJavaMethod writeInverseCreate(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel, java.lang.String originatedFqn)
public CodeJavaMethod writeDirectCreate(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel, java.lang.String originatedFqn)
public CodeJavaMethod writeCreateDTO(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |