org.argouml.model.uml.behavioralelements.commonbehavior
Class CommonBehaviorFactory

java.lang.Object
  |
  +--org.argouml.model.uml.AbstractUmlModelFactory
        |
        +--org.argouml.model.uml.behavioralelements.commonbehavior.CommonBehaviorFactory

public class CommonBehaviorFactory
extends AbstractUmlModelFactory

Factory to create UML classes for the UML BehaviorialElements::CommonBehavior package.

Since:
ARGO0.11.2

Method Summary
 java.lang.Object buildAction(java.lang.Object message)
          Builds an action (actually an uninterpretedaction) for some message
 MCallAction buildCallAction(MOperation oper, java.lang.String name)
          Builds a Callaction belonging to operation oper with a given name.
 MLink buildLink(MInstance fromInstance, MInstance toInstance)
          Builds a Link between two Instances
 MReception buildReception(MSignal signal)
          Builds a reception belonging to some signal
 MSignal buildSignal(MBehavioralFeature feature)
          Builds a signal belonging to some behavioralfeature
 java.lang.Object createAction()
          Create an empty but initialized instance of a UML Action.
 java.lang.Object createActionSequence()
          Create an empty but initialized instance of a UML ActionSequence.
 MArgument createArgument()
          Create an empty but initialized instance of a UML Argument.
 MAttributeLink createAttributeLink()
          Create an empty but initialized instance of a UML AttributeLink.
 MCallAction createCallAction()
          Create an empty but initialized instance of a UML CallAction.
 MComponentInstance createComponentInstance()
          Create an empty but initialized instance of a UML ComponentInstance.
 MCreateAction createCreateAction()
          Create an empty but initialized instance of a UML CreateAction.
 MDataValue createDataValue()
          Create an empty but initialized instance of a UML DataValue.
 MDestroyAction createDestroyAction()
          Create an empty but initialized instance of a UML DestroyAction.
 MException createException()
          Create an empty but initialized instance of a UML Exception.
 MInstance createInstance()
          Create an empty but initialized instance of a UML Instance.
 MLink createLink()
          Create an empty but initialized instance of a UML Link.
 MLinkEnd createLinkEnd()
          Create an empty but initialized instance of a UML LinkEnd.
 MLinkObject createLinkObject()
          Create an empty but initialized instance of a UML LinkObject.
 MNodeInstance createNodeInstance()
          Create an empty but initialized instance of a UML NodeInstance.
 MObject createObject()
          Create an empty but initialized instance of a UML Object.
 MReception createReception()
          Create an empty but initialized instance of a UML Reception.
 MReturnAction createReturnAction()
          Create an empty but initialized instance of a UML ReturnAction.
 MSendAction createSendAction()
          Create an empty but initialized instance of a UML SendAction.
 MSignal createSignal()
          Create an empty but initialized instance of a UML Signal.
 MStimulus createStimulus()
          Create an empty but initialized instance of a UML Stimulus.
 MTerminateAction createTerminateAction()
          Create an empty but initialized instance of a UML TerminateAction.
 MUninterpretedAction createUninterpretedAction()
          Create an empty but initialized instance of a UML UninterpretedAction.
 void deleteAction(java.lang.Object elem)
           
 void deleteActionSequence(java.lang.Object elem)
           
 void deleteArgument(MArgument elem)
           
 void deleteAttributeLink(MAttributeLink elem)
           
 void deleteCallAction(MCallAction elem)
           
 void deleteComponentInstance(MComponentInstance elem)
           
 void deleteCreateAction(MCreateAction elem)
           
 void deleteDataValue(MDataValue elem)
           
 void deleteDestroyAction(MDestroyAction elem)
           
 void deleteException(MException elem)
           
 void deleteInstance(MInstance elem)
          when an instance is deleted, delete its linkend's.
 void deleteLink(MLink elem)
           
 void deleteLinkEnd(MLinkEnd elem)
          when a linkend is deleted, delete its Links
 void deleteLinkObject(MLinkObject elem)
           
 void deleteNodeInstance(MNodeInstance elem)
           
 void deleteObject(MObject elem)
           
 void deleteReception(MReception elem)
           
 void deleteReturnAction(MReturnAction elem)
           
 void deleteSendAction(MSendAction elem)
           
 void deleteSignal(MSignal elem)
           
 void deleteStimulus(MStimulus elem)
           
 void deleteTerminateAction(MTerminateAction elem)
           
 void deleteUninterpretedAction(MUninterpretedAction elem)
           
static CommonBehaviorFactory getFactory()
          Singleton instance access method.
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
addListenersToModelElement, initialize, isGuiEnabled, setGuiEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static CommonBehaviorFactory getFactory()
Singleton instance access method.


createAction

public java.lang.Object createAction()
Create an empty but initialized instance of a UML Action.

Returns:
an initialized UML Action instance.

createActionSequence

public java.lang.Object createActionSequence()
Create an empty but initialized instance of a UML ActionSequence.

Returns:
an initialized UML ActionSequence instance.

createArgument

public MArgument createArgument()
Create an empty but initialized instance of a UML Argument.

Returns:
an initialized UML Argument instance.

createAttributeLink

public MAttributeLink createAttributeLink()
Create an empty but initialized instance of a UML AttributeLink.

Returns:
an initialized UML AttributeLink instance.

createCallAction

public MCallAction createCallAction()
Create an empty but initialized instance of a UML CallAction.

Returns:
an initialized UML CallAction instance.

createComponentInstance

public MComponentInstance createComponentInstance()
Create an empty but initialized instance of a UML ComponentInstance.

Returns:
an initialized UML ComponentInstance instance.

createCreateAction

public MCreateAction createCreateAction()
Create an empty but initialized instance of a UML CreateAction.

Returns:
an initialized UML CreateAction instance.

createDataValue

public MDataValue createDataValue()
Create an empty but initialized instance of a UML DataValue.

Returns:
an initialized UML DataValue instance.

createDestroyAction

public MDestroyAction createDestroyAction()
Create an empty but initialized instance of a UML DestroyAction.

Returns:
an initialized UML DestroyAction instance.

createException

public MException createException()
Create an empty but initialized instance of a UML Exception.

Returns:
an initialized UML Exception instance.

createInstance

public MInstance createInstance()
Create an empty but initialized instance of a UML Instance.

Returns:
an initialized UML Instance instance.

createLink

public MLink createLink()
Create an empty but initialized instance of a UML Link.

Returns:
an initialized UML Link instance.

createLinkEnd

public MLinkEnd createLinkEnd()
Create an empty but initialized instance of a UML LinkEnd.

Returns:
an initialized UML LinkEnd instance.

createLinkObject

public MLinkObject createLinkObject()
Create an empty but initialized instance of a UML LinkObject.

Returns:
an initialized UML LinkObject instance.

createNodeInstance

public MNodeInstance createNodeInstance()
Create an empty but initialized instance of a UML NodeInstance.

Returns:
an initialized UML NodeInstance instance.

createObject

public MObject createObject()
Create an empty but initialized instance of a UML Object.

Returns:
an initialized UML Object instance.

createReception

public MReception createReception()
Create an empty but initialized instance of a UML Reception.

Returns:
an initialized UML Reception instance.

createReturnAction

public MReturnAction createReturnAction()
Create an empty but initialized instance of a UML ReturnAction.

Returns:
an initialized UML ReturnAction instance.

createSendAction

public MSendAction createSendAction()
Create an empty but initialized instance of a UML SendAction.

Returns:
an initialized UML SendAction instance.

createSignal

public MSignal createSignal()
Create an empty but initialized instance of a UML Signal.

Returns:
an initialized UML Signal instance.

createStimulus

public MStimulus createStimulus()
Create an empty but initialized instance of a UML Stimulus.

Returns:
an initialized UML Stimulus instance.

createTerminateAction

public MTerminateAction createTerminateAction()
Create an empty but initialized instance of a UML TerminateAction.

Returns:
an initialized UML TerminateAction instance.

createUninterpretedAction

public MUninterpretedAction createUninterpretedAction()
Create an empty but initialized instance of a UML UninterpretedAction.

Returns:
an initialized UML UninterpretedAction instance.

buildCallAction

public MCallAction buildCallAction(MOperation oper,
                                   java.lang.String name)
Builds a Callaction belonging to operation oper with a given name. Ownership of this modelelement is not set! It is unwise to build a callaction without an operation since the multiplicity according to the UML spec 1.3 is 1..1. Therefore precondition is that there is an operation.

Parameters:
oper -
name -
Returns:
MCallAction

buildLink

public MLink buildLink(MInstance fromInstance,
                       MInstance toInstance)
Builds a Link between two Instances


buildAction

public java.lang.Object buildAction(java.lang.Object message)
Builds an action (actually an uninterpretedaction) for some message


buildSignal

public MSignal buildSignal(MBehavioralFeature feature)
Builds a signal belonging to some behavioralfeature


buildReception

public MReception buildReception(MSignal signal)
Builds a reception belonging to some signal


deleteAction

public void deleteAction(java.lang.Object elem)

deleteActionSequence

public void deleteActionSequence(java.lang.Object elem)

deleteArgument

public void deleteArgument(MArgument elem)

deleteAttributeLink

public void deleteAttributeLink(MAttributeLink elem)

deleteCallAction

public void deleteCallAction(MCallAction elem)

deleteComponentInstance

public void deleteComponentInstance(MComponentInstance elem)

deleteCreateAction

public void deleteCreateAction(MCreateAction elem)

deleteDataValue

public void deleteDataValue(MDataValue elem)

deleteDestroyAction

public void deleteDestroyAction(MDestroyAction elem)

deleteException

public void deleteException(MException elem)

deleteInstance

public void deleteInstance(MInstance elem)
when an instance is deleted, delete its linkend's. similar to deleting a classifier in the CoreFactory.


deleteLink

public void deleteLink(MLink elem)

deleteLinkEnd

public void deleteLinkEnd(MLinkEnd elem)
when a linkend is deleted, delete its Links


deleteLinkObject

public void deleteLinkObject(MLinkObject elem)

deleteNodeInstance

public void deleteNodeInstance(MNodeInstance elem)

deleteObject

public void deleteObject(MObject elem)

deleteReception

public void deleteReception(MReception elem)

deleteReturnAction

public void deleteReturnAction(MReturnAction elem)

deleteSendAction

public void deleteSendAction(MSendAction elem)

deleteSignal

public void deleteSignal(MSignal elem)

deleteStimulus

public void deleteStimulus(MStimulus elem)

deleteTerminateAction

public void deleteTerminateAction(MTerminateAction elem)

deleteUninterpretedAction

public void deleteUninterpretedAction(MUninterpretedAction elem)


ArgoUML © 1996-2003 (20040216)ArgoUML Project HomeArgoUML Cookbook