|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.noco.dtogen.Scanner
This class is responsible with the extraction of interesting info out of the sources.
Field Summary | |
private static ILog |
L
|
Constructor Summary | |
Scanner()
|
Method Summary | |
private java.util.List |
extractBeanProperties(com.thoughtworks.qdox.model.JavaClass clazz)
Returns an array of BeanProperties which use in their accessor dto.gen.property. |
private java.util.List |
extractClassTags(com.thoughtworks.qdox.model.JavaClass clazz)
Extract class level tags dto.gen.class and validate if parameter class is used. |
private java.util.List |
extractPKBeanProperties(com.thoughtworks.qdox.model.JavaClass clazz)
Extract BeanProperties that are declared as PK using tag dto.gen.pk. |
void |
scan(ModelRepository repository,
com.thoughtworks.qdox.model.JavaClass sourceClass)
Extract all necessary information from the given java class and registers it in the ModelRepository. |
private boolean |
validateBeanTag(com.thoughtworks.qdox.model.BeanProperty bp,
java.lang.String tagName,
java.lang.String[] required)
|
private boolean |
validateParameters(java.util.List classTags,
java.util.List pks,
java.util.List bps)
|
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
Constructor Detail |
public Scanner()
Method Detail |
public void scan(ModelRepository repository, com.thoughtworks.qdox.model.JavaClass sourceClass)
repository
- repository to be used for registering infosourceClass
- java source classprivate boolean validateParameters(java.util.List classTags, java.util.List pks, java.util.List bps)
private java.util.List extractPKBeanProperties(com.thoughtworks.qdox.model.JavaClass clazz)
private boolean validateBeanTag(com.thoughtworks.qdox.model.BeanProperty bp, java.lang.String tagName, java.lang.String[] required)
private java.util.List extractBeanProperties(com.thoughtworks.qdox.model.JavaClass clazz)
private java.util.List extractClassTags(com.thoughtworks.qdox.model.JavaClass clazz)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |