com.ashridgetech.jamda.uml
Class StdElementFactory

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

public class StdElementFactory
extends AbstractElementFactory

A factory for the standard ModelElements in the com.ashridgetech.jamda.uml package.

Version:
1.0
Author:
paulb

Constructor Summary
StdElementFactory()
           
 
Method Summary
 Model.ElementFactory createCopy(Model model)
          Create the correct ElementFactory for model.
protected  ModelElement createCustom(ru.novosoft.uml.foundation.core.MModelElement me, ModelElement parent)
          Overridden create ModelPackage, which has two possible constructors, and Constructor.
 
Methods inherited from class com.ashridgetech.jamda.uml.AbstractElementFactory
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

StdElementFactory

public StdElementFactory()
Method Detail

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.

createCustom

protected ModelElement createCustom(ru.novosoft.uml.foundation.core.MModelElement me,
                                    ModelElement parent)
Overridden create ModelPackage, which has two possible constructors, and Constructor. This implementation returns null.

Overrides:
createCustom in class AbstractElementFactory
Parameters:
me - the MModelElement for which a ModelElement is required
parent - the ModelElement which is to be the parent of the one created
Returns:
the new object, or null if the class does not wish to create an object in a customised way for this MModelElement
See Also:
AbstractElementFactory.lookupConstructor(java.lang.Class)


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.