net.noco.dtogen.model
Class ModelFactory

java.lang.Object
  extended bynet.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
           
 
Constructor Summary
ModelFactory()
           
 
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
 

Field Detail

L

private static final ILog L
Constructor Detail

ModelFactory

public ModelFactory()
Method Detail

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 property
name - new bean property name
tagName - javadoc tag used inside the BeanPropert
isPK - 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 name
bp - QDox bean property from the original domain model object
tagName - javadoc tagname used for working with the QDox bean property
mode - the mode of corresponding BeanPropertySkel
isPK - 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.