net.noco.dtogen.model
Class ModelFactory
java.lang.Object
net.noco.dtogen.model.ModelFactory
- public class ModelFactory
- extends java.lang.Object
Class usage XXX
- Version:
- $Revision: 1.59 $
- Author:
- the_mindstorm(at)evolva(dot)ro
Field Summary |
private static ILog |
L
|
Method Summary |
static BeanPropertyInfo |
createBeanInfo(java.lang.String fqn,
java.lang.String name,
com.thoughtworks.qdox.model.BeanProperty bp,
java.lang.String tagName,
int mode,
boolean isPK)
Creates a BeanPropertyInfo . |
static BeanPropertySkel |
createBeanProperty(com.thoughtworks.qdox.model.BeanProperty bp,
java.lang.String name,
java.lang.String tagName,
boolean isPK)
Creates a BeanPropertySkel . |
private static int |
getBeanPropertyType(java.lang.String type)
converts the javadoc tag parameter type=simple|collection|array|map to an int. |
private static java.lang.String |
getScope(java.lang.String docletValue,
java.lang.String defaultScope)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
L
private static final ILog L
ModelFactory
public ModelFactory()
createBeanProperty
public static BeanPropertySkel createBeanProperty(com.thoughtworks.qdox.model.BeanProperty bp,
java.lang.String name,
java.lang.String tagName,
boolean isPK)
- Creates a
BeanPropertySkel
.
- Parameters:
bp
- QDox bean propertyname
- new bean property nametagName
- javadoc tag used inside the BeanPropertisPK
- marks if the new bean property is originating in a PK
getBeanPropertyType
private static int getBeanPropertyType(java.lang.String type)
- converts the javadoc tag parameter type=simple|collection|array|map to an int.
createBeanInfo
public static BeanPropertyInfo createBeanInfo(java.lang.String fqn,
java.lang.String name,
com.thoughtworks.qdox.model.BeanProperty bp,
java.lang.String tagName,
int mode,
boolean isPK)
- Creates a
BeanPropertyInfo
.
- Parameters:
fqn
- domain model object class name (fully qualified)name
- the bean property namebp
- QDox bean property from the original domain model objecttagName
- javadoc tagname used for working with the QDox bean propertymode
- the mode of corresponding BeanPropertySkelisPK
- flag if the originator bean property is a PK
getScope
private static java.lang.String getScope(java.lang.String docletValue,
java.lang.String defaultScope)
Copyright © 2004 Alexandru Popescu (a.k.a. the_mindstorm). All Rights Reserved.