org.argouml.model.uml
Class CommonBehaviorFactoryImpl

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.argouml.model.uml.CommonBehaviorFactoryImpl
All Implemented Interfaces:
org.argouml.model.CommonBehaviorFactory

public class CommonBehaviorFactoryImpl
extends AbstractUmlModelFactory
implements org.argouml.model.CommonBehaviorFactory

Factory to create UML classes for the UML BehaviorialElements::CommonBehavior package. TODO: Change visibility to package after reflection problem solved.

Since:
ARGO0.11.2

Field Summary
private  NSUMLModelImplementation nsmodel
          The model implementation.
 
Constructor Summary
(package private) CommonBehaviorFactoryImpl(NSUMLModelImplementation implementation)
          Don't allow instantiation.
 
Method Summary
 Object buildAction(Object message)
          Builds an action (actually an CallAction) for some message.
 Object buildCallAction(Object oper, String name)
          Builds a CallAction belonging to operation oper with a given name.
 Object buildLink(Object fromInstance, Object toInstance)
          Builds a Link between two Instances.
 Object buildReception(Object aClassifier)
          Builds a reception belonging to some classifier.
 Object buildSignal(Object feature)
          Builds a signal belonging to some behavioralfeature.
 Object buildStimulus(Object link)
          Builds a stimulus based on a given link.
 Object buildUninterpretedAction(Object actionState)
          Builds a new uninterpreted action.
 Object createAction()
          Create an empty but initialized instance of a UML Action.
 Object createActionSequence()
          Create an empty but initialized instance of a UML ActionSequence.
 Object createArgument()
          Create an empty but initialized instance of a UML Argument.
 Object createAttributeLink()
          Create an empty but initialized instance of a UML AttributeLink.
 Object createCallAction()
          Create an empty but initialized instance of a UML CallAction.
 Object createComponentInstance()
          Create an empty but initialized instance of a UML ComponentInstance.
 Object createCreateAction()
          Create an empty but initialized instance of a UML CreateAction.
 ru.novosoft.uml.behavior.common_behavior.MDataValue createDataValue()
          Create an empty but initialized instance of a UML DataValue.
 Object createDestroyAction()
          Create an empty but initialized instance of a UML DestroyAction.
 Object createException()
          Create an empty but initialized instance of a UML Exception.
 Object createInstance()
          Create an empty but initialized instance of a UML Instance.
 Object createLink()
          Create an empty but initialized instance of a UML Link.
 Object createLinkEnd()
          Create an empty but initialized instance of a UML LinkEnd.
 Object createLinkObject()
          Create an empty but initialized instance of a UML LinkObject.
 Object createNodeInstance()
          Create an empty but initialized instance of a UML NodeInstance.
 Object createObject()
          Create an empty but initialized instance of a UML Object.
 Object createReception()
          Create an empty but initialized instance of a UML Reception.
 Object createReturnAction()
          Create an empty but initialized instance of a UML ReturnAction.
 Object createSendAction()
          Create an empty but initialized instance of a UML SendAction.
 Object createSignal()
          Create an empty but initialized instance of a UML Signal.
 Object createStimulus()
          Create an empty but initialized instance of a UML Stimulus.
 Object createTerminateAction()
          Create an empty but initialized instance of a UML TerminateAction.
 Object createUninterpretedAction()
          Create an empty but initialized instance of a UML UninterpretedAction.
(package private)  void deleteAction(Object elem)
           
(package private)  void deleteActionSequence(Object elem)
           
(package private)  void deleteArgument(Object elem)
           
(package private)  void deleteAttributeLink(Object elem)
           
(package private)  void deleteCallAction(Object elem)
           
(package private)  void deleteComponentInstance(Object elem)
           
(package private)  void deleteCreateAction(Object elem)
           
(package private)  void deleteDataValue(Object elem)
           
(package private)  void deleteDestroyAction(Object elem)
           
(package private)  void deleteException(Object elem)
           
(package private)  void deleteInstance(Object elem)
          when an instance is deleted, delete its linkend's.
(package private)  void deleteLink(Object elem)
           
(package private)  void deleteLinkEnd(Object elem)
          when a linkend is deleted, delete its Links.
(package private)  void deleteLinkObject(Object elem)
           
(package private)  void deleteNodeInstance(Object elem)
           
(package private)  void deleteObject(Object elem)
           
(package private)  void deleteReception(Object elem)
           
(package private)  void deleteReturnAction(Object elem)
           
(package private)  void deleteSendAction(Object elem)
           
(package private)  void deleteSignal(Object elem)
           
(package private)  void deleteStimulus(Object elem)
           
(package private)  void deleteTerminateAction(Object elem)
           
(package private)  void deleteUninterpretedAction(Object elem)
           
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
addListenersToModelElement, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nsmodel

private NSUMLModelImplementation nsmodel
The model implementation.

Constructor Detail

CommonBehaviorFactoryImpl

CommonBehaviorFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation.

Parameters:
implementation - To get other helpers and factories.
Method Detail

createAction

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

Specified by:
createAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Action instance.

createActionSequence

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

Specified by:
createActionSequence in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML ActionSequence instance.

createArgument

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

Specified by:
createArgument in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Argument instance.

createAttributeLink

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

Specified by:
createAttributeLink in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML AttributeLink instance.

createCallAction

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

Specified by:
createCallAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML CallAction instance.

createComponentInstance

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

Specified by:
createComponentInstance in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML ComponentInstance instance.

createCreateAction

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

Specified by:
createCreateAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML CreateAction instance.

createDataValue

public ru.novosoft.uml.behavior.common_behavior.MDataValue createDataValue()
Create an empty but initialized instance of a UML DataValue.

Returns:
an initialized UML DataValue instance.

createDestroyAction

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

Specified by:
createDestroyAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML DestroyAction instance.

createException

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

Specified by:
createException in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Exception instance.

createInstance

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

Specified by:
createInstance in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Instance instance.

createLink

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

Specified by:
createLink in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Link instance.

createLinkEnd

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

Specified by:
createLinkEnd in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML LinkEnd instance.

createLinkObject

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

Specified by:
createLinkObject in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML LinkObject instance.

createNodeInstance

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

Specified by:
createNodeInstance in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML NodeInstance instance.

createObject

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

Specified by:
createObject in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Object instance.

createReception

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

Specified by:
createReception in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Reception instance.

createReturnAction

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

Specified by:
createReturnAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML ReturnAction instance.

createSendAction

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

Specified by:
createSendAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML SendAction instance.

createSignal

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

Specified by:
createSignal in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Signal instance.

createStimulus

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

Specified by:
createStimulus in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML Stimulus instance.

createTerminateAction

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

Specified by:
createTerminateAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML TerminateAction instance.

createUninterpretedAction

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

Specified by:
createUninterpretedAction in interface org.argouml.model.CommonBehaviorFactory
Returns:
an initialized UML UninterpretedAction instance.

buildCallAction

public Object buildCallAction(Object oper,
                              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.

Specified by:
buildCallAction in interface org.argouml.model.CommonBehaviorFactory
Parameters:
oper - the given operation
name - the name for the CallAction
Returns:
MCallAction

buildUninterpretedAction

public Object buildUninterpretedAction(Object actionState)
Builds a new uninterpreted action. If the argument is an action state, the new action is set as the entry action.

Specified by:
buildUninterpretedAction in interface org.argouml.model.CommonBehaviorFactory
Parameters:
actionState - the given action state or null
Returns:
the newly build UninterpretedAction

buildLink

public Object buildLink(Object fromInstance,
                        Object toInstance)
Builds a Link between two Instances.

Specified by:
buildLink in interface org.argouml.model.CommonBehaviorFactory
Parameters:
fromInstance - the first given instance
toInstance - the second given instance
Returns:
the newly build link

buildAction

public Object buildAction(Object message)
Builds an action (actually an CallAction) for some message.

Specified by:
buildAction in interface org.argouml.model.CommonBehaviorFactory
Parameters:
message - the given message
Returns:
the newly build callAction

buildSignal

public Object buildSignal(Object feature)
Builds a signal belonging to some behavioralfeature.

Specified by:
buildSignal in interface org.argouml.model.CommonBehaviorFactory
Parameters:
feature - the given behaviouralfeature
Returns:
the newly build Signal

buildStimulus

public Object buildStimulus(Object link)
Builds a stimulus based on a given link. The link must have two linkends that are connected to an instance. These instances are used as sender and receiver of the stimulus. The source will become the sender, the destination the receiver.

Specified by:
buildStimulus in interface org.argouml.model.CommonBehaviorFactory
Parameters:
link - the link
Returns:
the stimulus

buildReception

public Object buildReception(Object aClassifier)
Builds a reception belonging to some classifier.

Specified by:
buildReception in interface org.argouml.model.CommonBehaviorFactory
Parameters:
aClassifier - the given classifier (or null)
Returns:
the newly created reception

deleteAction

void deleteAction(Object elem)
Parameters:
elem - the Action to be deleted

deleteActionSequence

void deleteActionSequence(Object elem)
Parameters:
elem - the ActionSequence to be deleted

deleteArgument

void deleteArgument(Object elem)
Parameters:
elem - the element to be deleted

deleteAttributeLink

void deleteAttributeLink(Object elem)
Parameters:
elem - the element to be deleted

deleteCallAction

void deleteCallAction(Object elem)
Parameters:
elem - the element to be deleted

deleteComponentInstance

void deleteComponentInstance(Object elem)
Parameters:
elem - the element to be deleted

deleteCreateAction

void deleteCreateAction(Object elem)
Parameters:
elem - the element to be deleted

deleteDataValue

void deleteDataValue(Object elem)
Parameters:
elem - the element to be deleted

deleteDestroyAction

void deleteDestroyAction(Object elem)
Parameters:
elem - the element to be deleted

deleteException

void deleteException(Object elem)
Parameters:
elem - the element to be deleted

deleteInstance

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

Parameters:
elem - the element to be deleted

deleteLink

void deleteLink(Object elem)
Parameters:
elem - the element to be deleted

deleteLinkEnd

void deleteLinkEnd(Object elem)
when a linkend is deleted, delete its Links.

Parameters:
elem - the element to be deleted

deleteLinkObject

void deleteLinkObject(Object elem)
Parameters:
elem - the element to be deleted

deleteNodeInstance

void deleteNodeInstance(Object elem)
Parameters:
elem - the element to be deleted

deleteObject

void deleteObject(Object elem)
Parameters:
elem - the element to be deleted

deleteReception

void deleteReception(Object elem)
Parameters:
elem - the element to be deleted

deleteReturnAction

void deleteReturnAction(Object elem)
Parameters:
elem - the element to be deleted

deleteSendAction

void deleteSendAction(Object elem)
Parameters:
elem - the element to be deleted

deleteSignal

void deleteSignal(Object elem)
Parameters:
elem - the element to be deleted

deleteStimulus

void deleteStimulus(Object elem)
Parameters:
elem - the element to be deleted

deleteTerminateAction

void deleteTerminateAction(Object elem)
Parameters:
elem - the element to be deleted

deleteUninterpretedAction

void deleteUninterpretedAction(Object elem)
Parameters:
elem - the element to be deleted


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook