Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.poseidon.uml.model_management

Class ModelElementFactory


public final class ModelElementFactory

This class is a factory for all valid types of model elements. There is only one single instance of it available. A new element can be created either by using the create method or by the generic method createElement, which uses reflection to create a new model element.
See also:
ModelElementAccessory
ModelElementHelpers


 Attribute Summary
public static final short  ACC_FINAL
 
arrow_up
 

 Method Summary
public Dependency   createAccessorDependency( Attribute attr , Operation op )
Creates a dependency with the stereotype 'accessor' between the given attribute and operation. 
public Action   createAction(Class actionClass )
 
public ActionExpression   createActionExpression(String language , String body )
Creates a new action expression for the given language with the given body. 
public ActionState   createActionState()
 
public ActivityGraph   createActivitiyGraph()
 
public ActivityGraph   createActivityGraph( ModelElement context )
 
public Actor   createActor()
 
public Actor   createActor(String name )
 
public Actor   createActor( Namespace namespace )
 
public Actor   createActor(String name , Namespace namespace )
 
public Argument   createArgumentOfParameter( Parameter par , Action action , String value )
For a new argument of a parameter in a model a binding is created with the parameter playing thge supplier role and the argument playing the client role. 
public UmlAssociation   createAssociation( Classifier c1 , Classifier c2 )
 
public UmlAssociation   createAssociation( Classifier c1 , boolean nav1 , Classifier c2 , boolean nav2 )
 
public UmlAssociation   createAssociation()
 
public AssociationClass   createAssociationClass()
 
public AssociationClass   createAssociationClass( Classifier c1 , Classifier c2 )
 
public AssociationEnd   createAssociationEnd(boolean navigable , Classifier type )
 
public AssociationRole   createAssociationRole()
Create new association role. 
public AssociationRole   createAssociationRole( UmlAssociation base )
Create new association role with the given association as its base. 
public final AssociationRole   createAssociationRole( ClassifierRole source , ClassifierRole target )
Create new association role connecting the given classifier roles. 
public AssociationRole   createAssociationRole( UmlAssociation base , ClassifierRole source , ClassifierRole target )
Create new association role connecting the given classifier roles. 
public Attribute   createAttribute()
 
public Attribute   createAttribute( Classifier cls )
 
public Binding   createBinding( ModelElement client , ModelElement supplier )
 
public BooleanExpression   createBooleanExpression(String language , String body )
Creates a new boolean expression for the given language with the given body. 
public UmlClass   createClass(String name , Namespace namespace )
 
public UmlClass   createClass(String name )
 
public UmlClass   createClass( Namespace namespace )
 
public UmlClass   createClass()
 
public ClassifierRole   createClassifierRole( Classifier base )
Creates a new classifier role based on the given classifier. 
public Collaboration   createCollaboration()
 
public Comment   createComment()
 
public Component   createComponent()
 
public ComponentInstance   createComponentInstance()
 
public CompositeState   createCompositeState()
 
public Constraint   createConstraint()
 
public Constraint   createConstraint(String name , String expression )
 
public DataType   createDataType(String name , Namespace namespace )
 
public TagDefinition   createDefinedTag( Stereotype stereo , String tagName , String tagType )
Creates a new TagDefinition and associates it with a stereotype. 
public Dependency   createDependency()
 
public Dependency   createDependency( ModelElement client , ModelElement supplier )
 
public Object   createElement(String elementType , Class[] constructorTypes , Object[] constructorArgs )
This method creates a new model element of type elementType by using the constructor arguments given in contructorArgs. 
public Object   createElement(RefClass elementClass )
Create a new model element of the given Class using a default constsetIructor. 
public ElementResidence   createElementResidence( ModelElement resident , Component container )
Creates a new element residence between the given model element and component. 
public Event   createEvent(Class eventClass )
 
public Event   createEvent(Class eventClass , State state )
Creates a new Event for the given state. 
public Event   createEvent(Class eventClass , Transition trans )
Creates a new Event for the given transition. 
public Expression   createExpression(String language , String body )
Creates a new expression for the given language with the given body. 
public Expression   createExpression(String language , String body , Class expressionClass )
Creates a new expression object of the given type for the given language with the given body. 
public Extend   createExtend( UseCase base , UseCase extension )

Build an extend relationship. 

public ExtensionPoint   createExtensionPoint( UseCase useCase )

Build an extension point for a use case. 

public FinalState   createFinalState()
 
public Generalization   createGeneralization()
 
public Generalization   createGeneralization( GeneralizableElement child , GeneralizableElement parent )
 
public Guard   createGuard()
 
public Include   createInclude( UseCase base , UseCase addition )

Build an include relationship. 

public Interface   createInterface()
 
public Interface   createInterface(String name )
 
public Interface   createInterface( Namespace namespace )
 
public Interface   createInterface(String name , Namespace namespace )
 
public IterationExpression   createIterationExpression(String language , String body )
Creates a new iteration expression for the given language with the given body. 
public Link   createLink( Instance from , Instance to )
 
public Message   createMessage( AssociationRole ar )
 
public Message   createMessage( AssociationRole ar , String sequenceNumber )
 
public Method   createMethod( Operation op )
 
public Model   createModel()
 
public Multiplicity   createMultiplicity( MultiplicityWrapper multWrapper )
 
public Multiplicity   createMultiplicity(int low , int high )
Creates a multiplicity element of range low. 
public Multiplicity   createMultiplicity(String ranges )
Creates a multiplicity element of a given range  
public MultiplicityRange   createMultiplicityRange( Multiplicity multiplicity , int low , int high )
 
public MultiplicityRange   createMultiplicityRange(int low , int high )
 
public Node   createNode()
 
public NodeInstance   createNodeInstance()
 
public Object   createObject()
Create a new object. 
public Object   createObject( Classifier base )
Create a new object bound to the given classifier. 
public ObjectSetExpression   createObjectSetExpression(String language , String body )
Creates a new Object set expression for the given language with the given body. 
public Operation   createOperation()
Creates a new operation with nothing set to any default value at all. 
public Operation   createOperation( Classifier cls )
Creates a new operation with a default name, return type void, and a java body. 
public Operation   createOperationWithMethod( Classifier cls , String opName , String returnParameterType , Collection params , String bodyText )
Creates a new operation with the given parameter types for classifier cls. 
public UmlPackage   createPackage()
 
public UmlPackage   createPackage(String name )
 
public UmlPackage   createPackage( Namespace namespace )
 
public UmlPackage   createPackage(String name , Namespace namespace )
 
public Parameter   createParameter()
Creates a default-named parameter of type int, kind INOUT. 
public Parameter   createParameter( Event event )
Creates a default-named parameter of type int, kind INOUT, for the given event. 
public Parameter   createParameter( BehavioralFeature feature )
Creates a default-named parameter of type int, kind INOUT, for the given feature. 
public Parameter   createParameter(String type )
this method can be used to create a new Parameter for a given type. 
public Parameter   createParameter( Classifier type )
 
public Parameter   createParameter(String type , String name , short modifiers )
The modifiers may include 'final'. 
public Parameter   createParameter( Classifier type , String name , short modifiers )
 
public Parameter   createParameter(String kindStr , String nameStr , String typeStr )
kind may be "in", "out", "return", or "". 
public ProcedureExpression   createProcedureExpression(String language , String body )
Creates a new procedure expression for the given language with the given body. 
public Pseudostate   createPseudostate(String kind )
 
public Pseudostate   createPseudostate( PseudostateKind kind )
 
public Abstraction   createRawAbstraction()
 
public Attribute   createRawAttribute( Classifier cls )
 
public Parameter   createRawParameter()
 
public Usage   createRawUsage()
 
public Abstraction   createRealization()
 
public Abstraction   createRealization( ModelElement client , ModelElement supplier )
 
public Parameter   createReturnParameter( Classifier type )
 
public Signal   createSignal()
 
public SimpleState   createSimpleState()
 
public State   createState(RefClass stateClass )
Creates a new state of the desired type. 
public State   createState( StateMachine stateMachine , RefClass stateClass )
Creates a new state of the desired type as the top state of the given state machine. 
public StateMachine   createStateMachine( ModelElement context )
Creates a new state machine for the given context. 
public Stereotype   createStereotype()
Creates new stereotype without a namespace or a name (!). 
public Stereotype   createStereotype(String name )
Creates new stereotype without a namespace (!). 
public Stereotype   createStereotype( Namespace namespace )
Creates new stereotype without a namespace (!). 
public Stereotype   createStereotype(String name , Namespace namespace , String baseClass )
Creates a new stereotype with name, namespace and desired baseclass. 
public Stereotype   createStereotype(String name , Namespace namespace )
Always creates new stereotype, never does a lookup to return an existing one. 
public Stimulus   createStimulus()
 
public Stimulus   createStimulus( Link ml , Instance sender , Instance receiver , Action action )
 
public StubState   createStubState()
Creates a new stub state. 
public StubState   createStubState(String refState )
Creates a new stub state with a reference to the given state. 
public SynchState   createSynchState()
Creates a new synch state. 
public SynchState   createSynchState(int bound )
Creates a new synch state with a bound number. 
public TagDefinition   createTagDefinition(String tag )
Creates a new, free-floating TagDefinition. 
public TagDefinition   createTagDefinition(String tagName , String tagType )
Creates a new, free-floating TagDefinition. 
public TaggedValue   createTaggedValue( ModelElement owner , String tag , String value )
 
public TaggedValue   createTaggedValue(String tag , String value )
 
public TemplateArgument   createTemplateArgument( Binding bind , ModelElement modelElement )
 
public TimeExpression   createTimeExpression(String language , String body )
Creates a new boolean expression for the given language with the given body. 
public Transition   createTransition()
Create a new transition. 
public Transition   createTransition( StateVertex target , StateVertex source )
Creates a new transition connecting the given state vertexes. 
public UmlException   createUmlException()
 
public Usage   createUsage( ModelElement client , ModelElement supplier )
 
public UseCase   createUseCase()
 
public UseCase   createUseCase(String name )
 
public UseCase   createUseCase( Namespace namespace )
 
public UseCase   createUseCase(String name , Namespace namespace )
 
public ActivityGraphsPackage   getActivityGraphsPackage()
Returns the meta object for the uml activity graph package. 
public CollaborationsPackage   getCollaborationsPackage()
Returns the meta object for the uml collaboration package. 
public CommonBehaviorPackage   getCommonBehaviorPackage()
Returns the meta object for the uml common behavior package. 
public CorePackage   getCorePackage()
Returns the meta object for the uml core package. 
public Model   getCurrentModel()
Returns the model that this factory and all other helpers operate on. 
public Project   getCurrentProject()
Returns the project the factory is initialized with. 
public DataTypesPackage   getDataTypesPackage()
Returns the meta object for the uml data types package. 
public static ModelElementFactory   getInstance()
Before using the returned instance the first time, it must be initialize()d. 
public ModelManagementPackage   getModelManagementPackage()
Returns the meta object for the uml model management package. 
public StateMachinesPackage   getStateMachinesPackage()
Returns the meta object for the uml states package. 
public UseCasesPackage   getUseCasePackage()
Returns the meta object for the uml use case package. 
public boolean   hasDefaultName( ModelElement element )
 
public void   initialize( Project project )
Before using the instance the first time, it must be initialize()d. 
arrow_up
 

 

 Attribute Detail

ACC_FINAL

public static short ACC_FINAL

 
arrow_up
 

 Method Detail

createAccessorDependency

public Dependency createAccessorDependency( Attribute attr , Operation op )

Creates a dependency with the stereotype 'accessor' between the given attribute and operation. The operation is only allowed to be an accessor for one attribute. Do not use this method directly!! You should always use the AccessorMethodsHelper. 
arrow_up
 
 

createAction

public Action createAction(Class actionClass )

 
arrow_up
 
 

createActionExpression

public ActionExpression createActionExpression(String language , String body )

Creates a new action expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createActionState

public ActionState createActionState()

 
arrow_up
 
 

createActivitiyGraph

public ActivityGraph createActivitiyGraph()

 
arrow_up
 
 

createActivityGraph

public ActivityGraph createActivityGraph( ModelElement context )

 
arrow_up
 
 

createActor

public Actor createActor()

 
arrow_up
 
 

createActor

public Actor createActor(String name )

 
arrow_up
 
 

createActor

public Actor createActor( Namespace namespace )

 
arrow_up
 
 

createActor

public Actor createActor(String name , Namespace namespace )

 
arrow_up
 
 

createArgumentOfParameter

public Argument createArgumentOfParameter( Parameter par , Action action , String value )

For a new argument of a parameter in a model a binding is created with the parameter playing thge supplier role and the argument playing the client role. The argument is connected to the given action.
Parameters:
par - The parameter to create a new argument for
action - The new argument is added to the actual arguments of the action
value - The argument value
 
arrow_up
 
 

createAssociation

public UmlAssociation createAssociation( Classifier c1 , Classifier c2 )

 
arrow_up
 
 

createAssociation

public UmlAssociation createAssociation( Classifier c1 , boolean nav1 , Classifier c2 , boolean nav2 )

 
arrow_up
 
 

createAssociation

public UmlAssociation createAssociation()

 
arrow_up
 
 

createAssociationClass

public AssociationClass createAssociationClass()

 
arrow_up
 
 

createAssociationClass

public AssociationClass createAssociationClass( Classifier c1 , Classifier c2 )

 
arrow_up
 
 

createAssociationEnd

public AssociationEnd createAssociationEnd(boolean navigable , Classifier type )

 
arrow_up
 
 

createAssociationRole

public AssociationRole createAssociationRole()

Create new association role.
Returns:
New association role.
 
arrow_up
 
 

createAssociationRole

public AssociationRole createAssociationRole( UmlAssociation base )

Create new association role with the given association as its base.
Parameters:
base - The association being the base for this association role.
Returns:
New association role.
 
arrow_up
 
 

createAssociationRole

public final AssociationRole createAssociationRole( ClassifierRole source , ClassifierRole target )

Create new association role connecting the given classifier roles.
Parameters:
target - Target classifier role to be connected by this association role.
source - Source classifier role to be connected by this association role.
Returns:
New association role.
 
arrow_up
 
 

createAssociationRole

public AssociationRole createAssociationRole( UmlAssociation base , ClassifierRole source , ClassifierRole target )

Create new association role connecting the given classifier roles.
Parameters:
base - The association being hte base for this association role.
target - Target classifier role to be connected by this association role.
source - Source classifier role to be connected by this association role.
Returns:
New association role.
 
arrow_up
 
 

createAttribute

public Attribute createAttribute()

 
arrow_up
 
 

createAttribute

public Attribute createAttribute( Classifier cls )

 
arrow_up
 
 

createBinding

public Binding createBinding( ModelElement client , ModelElement supplier )

 
arrow_up
 
 

createBooleanExpression

public BooleanExpression createBooleanExpression(String language , String body )

Creates a new boolean expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createClass

public UmlClass createClass(String name , Namespace namespace )

 
arrow_up
 
 

createClass

public UmlClass createClass(String name )

 
arrow_up
 
 

createClass

public UmlClass createClass( Namespace namespace )

 
arrow_up
 
 

createClass

public UmlClass createClass()

 
arrow_up
 
 

createClassifierRole

public ClassifierRole createClassifierRole( Classifier base )

Creates a new classifier role based on the given classifier.
Parameters:
base - The classifier being the base for this role.
Returns:
New classifier role.
 
arrow_up
 
 

createCollaboration

public Collaboration createCollaboration()

 
arrow_up
 
 

createComment

public Comment createComment()

 
arrow_up
 
 

createComponent

public Component createComponent()

 
arrow_up
 
 

createComponentInstance

public ComponentInstance createComponentInstance()

 
arrow_up
 
 

createCompositeState

public CompositeState createCompositeState()

 
arrow_up
 
 

createConstraint

public Constraint createConstraint()

 
arrow_up
 
 

createConstraint

public Constraint createConstraint(String name , String expression )

 
arrow_up
 
 

createDataType

public DataType createDataType(String name , Namespace namespace )

 
arrow_up
 
 

createDefinedTag

public TagDefinition createDefinedTag( Stereotype stereo , String tagName , String tagType )

Creates a new TagDefinition and associates it with a stereotype.
Parameters:
stereo - The stereotype to associate the tag definition with.
tagName - The name of the new tag definition.
tagType - The name of the type of the new tag definition.
Returns:
The new tag definition.
 
arrow_up
 
 

createDependency

public Dependency createDependency()

 
arrow_up
 
 

createDependency

public Dependency createDependency( ModelElement client , ModelElement supplier )

 
arrow_up
 
 

createElement

public Object createElement(String elementType , Class[] constructorTypes , Object[] constructorArgs )

This method creates a new model element of type elementType by using the constructor arguments given in contructorArgs. This is a reflective call and might therefore consume more time than a direct call of the appropriate create method. The call is routed to the appropriate create method. The resulting model element is not yet added to the model.
Parameters:
elementType - UML name of the type to create a new element of.
Returns:
The new model element.
 
arrow_up
 
 

createElement

public Object createElement(RefClass elementClass )

Create a new model element of the given Class using a default constsetIructor.
Parameters:
elementClass -
 
arrow_up
 
 

createElementResidence

public ElementResidence createElementResidence( ModelElement resident , Component container )

Creates a new element residence between the given model element and component. Any model element can be a resident to a component only once.
Parameters:
resident - The model element to become the resident.
container - The component to become the container.
Returns:
The new element residence or the already existing one.
 
arrow_up
 
 

createEvent

public Event createEvent(Class eventClass )

 
arrow_up
 
 

createEvent

public Event createEvent(Class eventClass , State state )

Creates a new Event for the given state. 
arrow_up
 
 

createEvent

public Event createEvent(Class eventClass , Transition trans )

Creates a new Event for the given transition. 
arrow_up
 
 

createExpression

public Expression createExpression(String language , String body )

Creates a new expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createExpression

public Expression createExpression(String language , String body , Class expressionClass )

Creates a new expression object of the given type for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
expressionClass - The type of the new expression instance.
Returns:
The new expression. todo: more types of expressions need to be created.
 
arrow_up
 
 

createExtend

public Extend createExtend( UseCase base , UseCase extension )

Build an extend relationship.

Set the namespace to the base (preferred) or else extension's namespace. We don't do any checking on base and extension. They should be different, but that is someone else's problem.

Parameters:
base - The base use case for the relationship
extension - The extension use case for the relationship
Returns:
The new extend relationship or null if it can't be created.
 
arrow_up
 
 

createExtensionPoint

public ExtensionPoint createExtensionPoint( UseCase useCase )

Build an extension point for a use case.

Set the namespace to that of the use case if possible.

Parameters:
useCase - The owning use case for the extension point. May be null.
Returns:
The new extension point or null if it can't be created.
 
arrow_up
 
 

createFinalState

public FinalState createFinalState()

 
arrow_up
 
 

createGeneralization

public Generalization createGeneralization()

 
arrow_up
 
 

createGeneralization

public Generalization createGeneralization( GeneralizableElement child , GeneralizableElement parent )

 
arrow_up
 
 

createGuard

public Guard createGuard()

 
arrow_up
 
 

createInclude

public Include createInclude( UseCase base , UseCase addition )

Build an include relationship.

Set the namespace to the base (preferred) or else extension's namespace. We don't do any checking on base and extension. They should be different, but that is someone else's problem.

Note. There is a bug in NSUML that gets the base and addition associations back to front. We reverse the use of their accessors in the code to correct this.

Parameters:
base - The base use case for the relationship
addition - The extension use case for the relationship
Returns:
The new include relationship or null if it can't be created.
 
arrow_up
 
 

createInterface

public Interface createInterface()

 
arrow_up
 
 

createInterface

public Interface createInterface(String name )

 
arrow_up
 
 

createInterface

public Interface createInterface( Namespace namespace )

 
arrow_up
 
 

createInterface

public Interface createInterface(String name , Namespace namespace )

 
arrow_up
 
 

createIterationExpression

public IterationExpression createIterationExpression(String language , String body )

Creates a new iteration expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createLink

public Link createLink( Instance from , Instance to )

 
arrow_up
 
 

createMessage

public Message createMessage( AssociationRole ar )

 
arrow_up
 
 

createMessage

public Message createMessage( AssociationRole ar , String sequenceNumber )

 
arrow_up
 
 

createMethod

public Method createMethod( Operation op )

 
arrow_up
 
 

createModel

public Model createModel()

 
arrow_up
 
 

createMultiplicity

public Multiplicity createMultiplicity( MultiplicityWrapper multWrapper )

 
arrow_up
 
 

createMultiplicity

public Multiplicity createMultiplicity(int low , int high )

Creates a multiplicity element of range low..high
Returns:
 
arrow_up
 
 

createMultiplicity

public Multiplicity createMultiplicity(String ranges )

Creates a multiplicity element of a given range
Returns:
 
arrow_up
 
 

createMultiplicityRange

public MultiplicityRange createMultiplicityRange( Multiplicity multiplicity , int low , int high )

 
arrow_up
 
 

createMultiplicityRange

public MultiplicityRange createMultiplicityRange(int low , int high )

 
arrow_up
 
 

createNode

public Node createNode()

 
arrow_up
 
 

createNodeInstance

public NodeInstance createNodeInstance()

 
arrow_up
 
 

createObject

public Object createObject()

Create a new object.
Returns:
The new object. l
 
arrow_up
 
 

createObject

public Object createObject( Classifier base )

Create a new object bound to the given classifier.
Parameters:
base - The classifier to bind the object to.
Returns:
The new object.
 
arrow_up
 
 

createObjectSetExpression

public ObjectSetExpression createObjectSetExpression(String language , String body )

Creates a new Object set expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createOperation

public Operation createOperation()

Creates a new operation with nothing set to any default value at all. 
arrow_up
 
 

createOperation

public Operation createOperation( Classifier cls )

Creates a new operation with a default name, return type void, and a java body. 
arrow_up
 
 

createOperationWithMethod

public Operation createOperationWithMethod( Classifier cls , String opName , String returnParameterType , Collection params , String bodyText )

Creates a new operation with the given parameter types for classifier cls. 
arrow_up
 
 

createPackage

public UmlPackage createPackage()

 
arrow_up
 
 

createPackage

public UmlPackage createPackage(String name )

 
arrow_up
 
 

createPackage

public UmlPackage createPackage( Namespace namespace )

 
arrow_up
 
 

createPackage

public UmlPackage createPackage(String name , Namespace namespace )

 
arrow_up
 
 

createParameter

public Parameter createParameter()

Creates a default-named parameter of type int, kind INOUT. 
arrow_up
 
 

createParameter

public Parameter createParameter( Event event )

Creates a default-named parameter of type int, kind INOUT, for the given event. 
arrow_up
 
 

createParameter

public Parameter createParameter( BehavioralFeature feature )

Creates a default-named parameter of type int, kind INOUT, for the given feature. 
arrow_up
 
 

createParameter

public Parameter createParameter(String type )

this method can be used to create a new Parameter for a given type. It uses UMLProject.findType(), so if there is no Classifier with this name yet, one is created 
arrow_up
 
 

createParameter

public Parameter createParameter( Classifier type )

 
arrow_up
 
 

createParameter

public Parameter createParameter(String type , String name , short modifiers )

The modifiers may include 'final'. 
arrow_up
 
 

createParameter

public Parameter createParameter( Classifier type , String name , short modifiers )

 
arrow_up
 
 

createParameter

public Parameter createParameter(String kindStr , String nameStr , String typeStr )

kind may be "in", "out", "return", or "". 
arrow_up
 
 

createProcedureExpression

public ProcedureExpression createProcedureExpression(String language , String body )

Creates a new procedure expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createPseudostate

public Pseudostate createPseudostate(String kind )

 
arrow_up
 
 

createPseudostate

public Pseudostate createPseudostate( PseudostateKind kind )

 
arrow_up
 
 

createRawAbstraction

public Abstraction createRawAbstraction()

 
arrow_up
 
 

createRawAttribute

public Attribute createRawAttribute( Classifier cls )

 
arrow_up
 
 

createRawParameter

public Parameter createRawParameter()

 
arrow_up
 
 

createRawUsage

public Usage createRawUsage()

 
arrow_up
 
 

createRealization

public Abstraction createRealization()

 
arrow_up
 
 

createRealization

public Abstraction createRealization( ModelElement client , ModelElement supplier )

 
arrow_up
 
 

createReturnParameter

public Parameter createReturnParameter( Classifier type )

 
arrow_up
 
 

createSignal

public Signal createSignal()

 
arrow_up
 
 

createSimpleState

public SimpleState createSimpleState()

 
arrow_up
 
 

createState

public State createState(RefClass stateClass )

Creates a new state of the desired type. 
arrow_up
 
 

createState

public State createState( StateMachine stateMachine , RefClass stateClass )

Creates a new state of the desired type as the top state of the given state machine. 
arrow_up
 
 

createStateMachine

public StateMachine createStateMachine( ModelElement context )

Creates a new state machine for the given context. 
arrow_up
 
 

createStereotype

public Stereotype createStereotype()

Creates new stereotype without a namespace or a name (!). 
arrow_up
 
 

createStereotype

public Stereotype createStereotype(String name )

Creates new stereotype without a namespace (!). 
arrow_up
 
 

createStereotype

public Stereotype createStereotype( Namespace namespace )

Creates new stereotype without a namespace (!). 
arrow_up
 
 

createStereotype

public Stereotype createStereotype(String name , Namespace namespace , String baseClass )

Creates a new stereotype with name, namespace and desired baseclass. 
arrow_up
 
 

createStereotype

public Stereotype createStereotype(String name , Namespace namespace )

Always creates new stereotype, never does a lookup to return an existing one. 
arrow_up
 
 

createStimulus

public Stimulus createStimulus()

 
arrow_up
 
 

createStimulus

public Stimulus createStimulus( Link ml , Instance sender , Instance receiver , Action action )

 
arrow_up
 
 

createStubState

public StubState createStubState()

Creates a new stub state.
Returns:
The new stub state.
 
arrow_up
 
 

createStubState

public StubState createStubState(String refState )

Creates a new stub state with a reference to the given state.
Parameters:
refState - Name of the referenced state.
Returns:
The new stub state.
 
arrow_up
 
 

createSynchState

public SynchState createSynchState()

Creates a new synch state.
Returns:
The new synch state.
 
arrow_up
 
 

createSynchState

public SynchState createSynchState(int bound )

Creates a new synch state with a bound number.
Parameters:
bound - Number of bounds for this synch state.
Returns:
The new synch state.
 
arrow_up
 
 

createTagDefinition

public TagDefinition createTagDefinition(String tag )

Creates a new, free-floating TagDefinition. The new TagDefinition is not assigned to a stereotype.
Parameters:
tag - The name of the new tag definition.
Returns:
The new TagDefinition.
 
arrow_up
 
 

createTagDefinition

public TagDefinition createTagDefinition(String tagName , String tagType )

Creates a new, free-floating TagDefinition. The new TagDefinition is not assigned to a stereotype.
Parameters:
tagName - The name of the new tag definition.
tagType - name of the type of this tag definition.
Returns:
The new TagDefinition.
 
arrow_up
 
 

createTaggedValue

public TaggedValue createTaggedValue( ModelElement owner , String tag , String value )

 
arrow_up
 
 

createTaggedValue

public TaggedValue createTaggedValue(String tag , String value )

 
arrow_up
 
 

createTemplateArgument

public TemplateArgument createTemplateArgument( Binding bind , ModelElement modelElement )

 
arrow_up
 
 

createTimeExpression

public TimeExpression createTimeExpression(String language , String body )

Creates a new boolean expression for the given language with the given body.
Parameters:
language - The language of the new expression.
body - The body of the new expression.
Returns:
The new expression.
 
arrow_up
 
 

createTransition

public Transition createTransition()

Create a new transition.
Returns:
The new transition.
 
arrow_up
 
 

createTransition

public Transition createTransition( StateVertex target , StateVertex source )

Creates a new transition connecting the given state vertexes.
Parameters:
target - The target of this transition.
source - The source of this transition.
Returns:
The new transition or null if the state machines of the state vertexes won't match.
 
arrow_up
 
 

createUmlException

public UmlException createUmlException()

 
arrow_up
 
 

createUsage

public Usage createUsage( ModelElement client , ModelElement supplier )

 
arrow_up
 
 

createUseCase

public UseCase createUseCase()

 
arrow_up
 
 

createUseCase

public UseCase createUseCase(String name )

 
arrow_up
 
 

createUseCase

public UseCase createUseCase( Namespace namespace )

 
arrow_up
 
 

createUseCase

public UseCase createUseCase(String name , Namespace namespace )

 
arrow_up
 
 

getActivityGraphsPackage

public ActivityGraphsPackage getActivityGraphsPackage()

Returns the meta object for the uml activity graph package.
Returns:
 
arrow_up
 
 

getCollaborationsPackage

public CollaborationsPackage getCollaborationsPackage()

Returns the meta object for the uml collaboration package.
Returns:
 
arrow_up
 
 

getCommonBehaviorPackage

public CommonBehaviorPackage getCommonBehaviorPackage()

Returns the meta object for the uml common behavior package.
Returns:
 
arrow_up
 
 

getCorePackage

public CorePackage getCorePackage()

Returns the meta object for the uml core package.
Returns:
 
arrow_up
 
 

getCurrentModel

public Model getCurrentModel()

Returns the model that this factory and all other helpers operate on. 
arrow_up
 
 

getCurrentProject

public Project getCurrentProject()

Returns the project the factory is initialized with. Instead of ArgoRegistry.getInstance().getProject() this operation should always return the correct project.
Returns:
The project this factory is initialized with.
See also:
org.argouml.kernel.ArgoRegistry
 
arrow_up
 
 

getDataTypesPackage

public DataTypesPackage getDataTypesPackage()

Returns the meta object for the uml data types package.
Returns:
 
arrow_up
 
 

getInstance

public static ModelElementFactory getInstance()

Before using the returned instance the first time, it must be initialize()d. 
arrow_up
 
 

getModelManagementPackage

public ModelManagementPackage getModelManagementPackage()

Returns the meta object for the uml model management package.
Returns:
 
arrow_up
 
 

getStateMachinesPackage

public StateMachinesPackage getStateMachinesPackage()

Returns the meta object for the uml states package.
Returns:
 
arrow_up
 
 

getUseCasePackage

public UseCasesPackage getUseCasePackage()

Returns the meta object for the uml use case package.
Returns:
 
arrow_up
 
 

hasDefaultName

public boolean hasDefaultName( ModelElement element )

 
arrow_up
 
 

initialize

public void initialize( Project project )

Before using the instance the first time, it must be initialize()d. 
arrow_up
 

Created  2003 - 3 - 4

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.