com.ashridgetech.jamda.ejb.uml
Class DataTransferObjectTypeFactory

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.AbstractElementFactory
        |
        +--com.ashridgetech.jamda.ejb.uml.DataTransferObjectTypeFactory
All Implemented Interfaces:
Model.ElementFactory

public class DataTransferObjectTypeFactory
extends AbstractElementFactory

Factory class for objects which are a UML representation of a Data Transfer Object class. Creates ValueObjectType, DescObjectType and UpdateObjectType.

Version:
1.0
Author:
paulb

Constructor Summary
DataTransferObjectTypeFactory()
          Construct a new DataTransferObjectTypeFactory.
 
Method Summary
 Model.ElementFactory createCopy(Model model)
          Create the correct ElementFactory for model.
 DescObjectType getDescObjectType(ClassType source, Actor actor)
          Find an existing DescObjectType, or create a new one if it does not already exist.
static DataTransferObjectTypeFactory getFactory(Model model)
          Get the factory of this type from a given Model.
protected  DataTransferObjectType getInstance(java.lang.Class dtoClass, ClassType source, Actor actor)
          Find or create the DataTransferObjectType for a given source class and actor.
 ModelPackage getPackage(ClassType source, Actor actor)
           
 UpdateObjectType getUpdateObjectType(ClassType source, Actor actor)
          Find an existing UpdateObjectType, or create a new one if it does not already exist.
 ValueObjectType getValueObjectType(ClassType source, Actor actor)
          Find an existing ValueObjectType, or create a new one if it does not already exist.
 
Methods inherited from class com.ashridgetech.jamda.uml.AbstractElementFactory
createCustom, createElement, getConstructor, getModel, lookupConstructor, lookupConstructor, setClass, setClass, setClass, setClassesForStereotypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransferObjectTypeFactory

public DataTransferObjectTypeFactory()
Construct a new DataTransferObjectTypeFactory.

Method Detail

getFactory

public static DataTransferObjectTypeFactory getFactory(Model model)
Get the factory of this type from a given Model.

Parameters:
model - the Model from which to get the factory
Returns:
the factory, or null if the Model has no factory of this type

createCopy

public Model.ElementFactory createCopy(Model model)
Create the correct ElementFactory for model.

Specified by:
createCopy in interface Model.ElementFactory
Specified by:
createCopy in class AbstractElementFactory
Parameters:
model - the Model being loaded
Returns:
the new ElementFactory.

getInstance

protected DataTransferObjectType getInstance(java.lang.Class dtoClass,
                                             ClassType source,
                                             Actor actor)
Find or create the DataTransferObjectType for a given source class and actor.


getPackage

public ModelPackage getPackage(ClassType source,
                               Actor actor)

getValueObjectType

public ValueObjectType getValueObjectType(ClassType source,
                                          Actor actor)
Find an existing ValueObjectType, or create a new one if it does not already exist.

Parameters:
source - the ClassType for which the new object is created
actor - the Actor for which the new object is created

getDescObjectType

public DescObjectType getDescObjectType(ClassType source,
                                        Actor actor)
Find an existing DescObjectType, or create a new one if it does not already exist.

Parameters:
source - the ClassType for which the new object is created
actor - the Actor for which the new object is created

getUpdateObjectType

public UpdateObjectType getUpdateObjectType(ClassType source,
                                            Actor actor)
Find an existing UpdateObjectType, or create a new one if it does not already exist.

Parameters:
source - the ClassType for which the new object is created
actor - the Actor for which the new object is created


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.