org.argouml.model
Class ModelFacade

java.lang.Object
  |
  +--org.argouml.model.ModelFacade

public class ModelFacade
extends java.lang.Object

Facade object for the Model component in ArgoUML.

The purpose of this Facade object is to allow for decoupling other modules from the insides of the model. For this purpose all of the methods in this class give away and accept handles (of type java.lang.Object) to the objects within the model.

This is just getters and recognizers. This is because the Model component has an extremely complicated internal data structure with lots of internal dependencies. To manipulate these there is a whole set of factories and helpers within the Model that is to be used but to use them you need knowledge of the internals of the Model, specifically the NS-UML objects.

All methods in this facade are static.

Signature for all recognizers in this Facade:

Signature for all getters in this Facade:


Field Summary
static java.lang.Object ABSTRACTION
           
static short ACC_PRIVATE
           
static short ACC_PROTECTED
           
static short ACC_PUBLIC
           
static java.lang.Object ACTION
           
static java.lang.Object ACTION_EXPRESSION
           
static java.lang.Object ACTION_STATE
           
static java.lang.Object ACTOR
           
static java.lang.Object ASSOCIATION
           
static java.lang.Object ASSOCIATION_CLASS
           
static java.lang.Object ASSOCIATION_END
           
static java.lang.Object ASSOCIATION_ROLE
           
static java.lang.Object ATTRIBUTE
           
static java.lang.Object BRANCH_PSEUDOSTATEKIND
           
static java.lang.Object CALL_ACTION
           
static java.lang.Object CLASS
           
static java.lang.Object CLASSIFIER
           
static java.lang.Object CLASSIFIER_ROLE
           
static short CLASSIFIER_SCOPE
           
static java.lang.Object COLLABORATION
           
static java.lang.Object COMPONENT
           
static java.lang.Object COMPONENT_INSTANCE
           
static java.lang.Object COMPOSITESTATE
           
static java.lang.Object DEEPHISTORY_PSEUDOSTATEKIND
           
static java.lang.Object DEPENDENCY
           
static java.lang.Object EXTEND
           
static java.lang.Object FORK_PSEUDOSTATEKIND
           
static java.lang.Object GENERALIZATION
           
static short GUARDED
           
static java.lang.Object INCLUDE
           
static java.lang.Object INITIAL_PSEUDOSTATEKIND
           
static java.lang.Object INSTANCE
           
static short INSTANCE_SCOPE
           
static java.lang.Object INTERFACE
           
static java.lang.Object JOIN_PSEUDOSTATEKIND
           
static java.lang.Object LINK
           
static java.lang.Object MODEL
           
static java.lang.Object MODELELEMENT
           
static java.lang.Object NAMESPACE
           
static java.lang.Object NODE
           
static java.lang.Object NODE_INSTANCE
           
static java.lang.Object OBJECT
           
static java.lang.Object OPERATION
           
static java.lang.Object PACKAGE
           
static java.lang.Object PERMISSION
           
static java.lang.Object PRIVATE_VISIBILITYKIND
           
static java.lang.Object PROTECTED_VISIBILITYKIND
           
static java.lang.Object PSEUDOSTATE
           
static java.lang.Object PUBLIC_VISIBILITYKIND
           
static java.lang.Object RECEPTION
           
static short SEQUENTIAL
           
static java.lang.Object SHALLOWHISTORY_PSEUDOSTATEKIND
           
static java.lang.Object STATE
           
static java.lang.Object STATEVERTEX
           
static java.lang.Object STEREOTYPE
           
static java.lang.Object SUBSYSTEM
           
static java.lang.Object TRANSITION
           
static java.lang.Object USAGE
           
static java.lang.Object USE_CASE
           
static java.lang.Object VISIBILITYKIND
           
 
Method Summary
static void addClient(java.lang.Object a, java.lang.Object cls)
          Adds a client classifier to some abstraction.
static void addClientDependency(java.lang.Object handle, java.lang.Object dependency)
          Adds a client dependency to some modelelement
static void addConstraint(java.lang.Object me, java.lang.Object mc)
          Adds a constraint to some model element.
static void addFeature(java.lang.Object cls, java.lang.Object f)
          Adds a feature to some classifier.
static void addMethod(java.lang.Object o, java.lang.Object m)
          Adds a method to some operation and copies the op's attributes to the method.
static void addOwnedElement(java.lang.Object ns, java.lang.Object me)
          Adds a model element to some namespace.
static void addSupplier(java.lang.Object a, java.lang.Object cls)
          Adds a supplier classifier to some abstraction.
static void addSupplierDependency(java.lang.Object supplier, java.lang.Object dependency)
          Adds a supplier dependency to some modelelement
static boolean equalsPseudostateKind(java.lang.Object ps1, java.lang.Object ps2)
          check whether two pseudostatekinds are equal/of the same type.
static java.lang.Object getAction(java.lang.Object handle)
          Returns the action belonging to some message
static java.util.Collection getActualArguments(java.lang.Object handle)
          Returns the actual arguments for a given action.
static java.util.Collection getAssociatedClasses(java.lang.Object o)
          Returns all associated classes for some given classifier.
static java.lang.Object getAssociationEnd(java.lang.Object type, java.lang.Object assoc)
          Returns the association end between some classifier and some associaton.
static java.util.Collection getAssociationEnds(java.lang.Object handle)
          The list of Association Ends
static java.util.Collection getAttributes(java.lang.Object handle)
          The list of Attributes.
static java.lang.Object getBaseClass(java.lang.Object handle)
          The baseclass of some stereotype
static java.util.Collection getBehaviors(java.lang.Object handle)
          Get the behaviors of a Modelelement.
static java.lang.Object getBody(java.lang.Object handle)
          Get the body of an Expression.
static java.lang.Object getChild(java.lang.Object handle)
          Get the child of a generalization.
static java.util.Collection getChildren(java.lang.Object handle)
          Get the children of some generalizable element
static java.util.Collection getClientDependencies(java.lang.Object handle)
          Get the client dependencies of some classifier
static java.util.Collection getClients(java.lang.Object handle)
          Gets the clients of some dependency
static short getConcurrency(java.lang.Object o)
          Get the concurrency of an operation.
static java.util.Iterator getConnections(java.lang.Object handle)
          The list of Connections or AssociationEnds to an Association.
static java.lang.Object getContainer(java.lang.Object handle)
          Returns the container for the given modelelement.
static java.lang.Object getContext(java.lang.Object handle)
          Returns the context of some given statemachine or the context of some given interaction
static java.lang.Object getDispatchAction(java.lang.Object handle)
          Get the dispatchaction of a stimulus.
static java.lang.Object getDoActivity(java.lang.Object handle)
          Returns the do activity action of a state
static java.lang.Object getEffect(java.lang.Object handle)
          Returns the effect of some transition
static java.lang.Object getEntry(java.lang.Object handle)
          Returns the entry action to a state
static java.lang.Object getExit(java.lang.Object handle)
          Returns the exit action to a state
static java.util.Collection getFeatures(java.lang.Object handle)
          The list of Features from a Classifier.
static java.lang.Object getGeneralization(java.lang.Object child, java.lang.Object parent)
          Gets the generalization between two generalizable elements.
static java.util.Iterator getGeneralizations(java.lang.Object handle)
          The list of Generalizations from a GeneralizableElement.
static java.lang.Object getGuard(java.lang.Object handle)
          Gets the guard for some given transition.
static java.util.Collection getIncomings(java.lang.Object handle)
          Returns the incoming transitions for some statevertex
static java.lang.Object getInteraction(java.lang.Object handle)
          Returns the interaction for some message
static java.util.Collection getMessages(java.lang.Object handle)
          Returns the messages belonging to some interaction
static java.lang.String getName(java.lang.Object handle)
          The name of a model element or some diagram part.
static java.lang.Object getNamespace(java.lang.Object handle)
          Get the namespace of an element.
static java.util.Collection getOperations(java.lang.Object handle)
          The list of operations
static java.util.Iterator getOperationsInh(java.lang.Object handle)
          The list of Operations of this classifier and all inherited.
static java.lang.Object getOppositeEnd(java.lang.Object handle)
          Returns the opposite end of an association end.
static java.util.Collection getOtherAssociationEnds(java.lang.Object handle)
          The list of Associations Ends connected to this association end
static java.util.Collection getOutgoings(java.lang.Object handle)
          Returns the list of Transitions outgoing from the given stateVertex.
static java.util.Collection getOwnedElements(java.lang.Object handle)
          The list of owned elements of the the package.
static java.lang.Object getOwner(java.lang.Object f)
          Return the owner of a feature.
static java.lang.Object getParameter(java.lang.Object op, int n)
          Get a parameter of an operation.
static java.util.Collection getParameters(java.lang.Object handle)
          Get the parameters of an operation.
static java.lang.Object getParent(java.lang.Object handle)
          Get the parent of a generalization.
static java.lang.Object getPseudostateKind(java.lang.Object handle)
           
static java.util.Collection getReceptions(java.lang.Object handle)
          returns the receptions of a signal
static java.lang.Object getRecurrence(java.lang.Object handle)
          Returns the recurense iteration expression of an action
static java.util.Collection getResidents(java.lang.Object handle)
          Returns a collection with all residents belonging to the given node.
static java.lang.Object getScript(java.lang.Object handle)
          Returns the script belonging to a given action
static java.lang.Object getSource(java.lang.Object handle)
          Gets the source for some given transitions.
static java.util.Iterator getSpecializations(java.lang.Object handle)
          The list of Specializations from a GeneralizableElement.
static java.util.Collection getSpecifications(java.lang.Object cls)
          Returns all Interfaces of which this class is a realization.
static java.lang.Object getStereoType(java.lang.Object handle)
          Returns the stereotype belonging to some given modelelement
static java.util.Collection getStructuralFeatures(java.lang.Object classifier)
          This method returns all attributes of a given Classifier.
static java.util.Collection getSubvertices(java.lang.Object handle)
          Returns a collection with all subvertices belonging to the given composite state.
static java.util.Collection getSupplierDependencies(java.lang.Object handle)
          The list of SupplierDependencies from a ModelElement.
static java.util.Collection getSuppliers(java.lang.Object handle)
          Returns the suppliers of an abstraction.
static java.lang.Object getTaggedValue(java.lang.Object modelElement, java.lang.String name)
          Return the tagged value with a specific tag.
static java.util.Iterator getTaggedValues(java.lang.Object modelElement)
          Return the tagged values iterator of a model element.
static java.lang.String getTagOfTag(java.lang.Object tv)
          Return the key (tag) of some tagged value.
static java.lang.Object getTarget(java.lang.Object handle)
          Returns the target of some transition
static java.util.Collection getTransitions(java.lang.Object handle)
          Returns the transitions belonging to the given handle.
static java.lang.Object getType(java.lang.Object handle)
          The type of an attribute
static java.lang.String getUMLClassName(java.lang.Object handle)
          getUMLClassName returns the name of the UML Model class, e.g.
static int getUpper(java.lang.Object handle)
          Returns the upper bound of the multiplicity of the given handle (an associationend).
static java.lang.String getUUID(java.lang.Object base)
          Return the UUID of this element
static java.lang.String getValueOfTag(java.lang.Object tv)
          Return the value of some tagged value.
static boolean isAAbstraction(java.lang.Object handle)
          Recognizer for Abstraction.
static boolean isAAction(java.lang.Object handle)
          Recognizer for Action.
static boolean isAActionSequence(java.lang.Object handle)
          Recognizer for ActionSequence
static boolean isAActionState(java.lang.Object handle)
          Recognizer for Action state
static boolean isAAssociation(java.lang.Object handle)
          Recognizer for Association.
static boolean isAAssociationEnd(java.lang.Object handle)
          Recognizer for AssociationEnd.
static boolean isAAssociationRole(java.lang.Object handle)
          Recognizer for AssociationRole
static boolean isAAttribute(java.lang.Object handle)
          Recognizer for Attribute
static boolean isABase(java.lang.Object handle)
          Recognizer for bases.
static boolean isAbstract(java.lang.Object handle)
          Recognizer for abstract classes and operations.
static boolean isAClass(java.lang.Object handle)
          Recognizer for Class
static boolean isAClassifier(java.lang.Object handle)
          Recognizer for Classifier
static boolean isAComment(java.lang.Object handle)
          Recognizer for Comment
static boolean isAComponent(java.lang.Object handle)
          Recognizer for Component
static boolean isAComponentInstance(java.lang.Object handle)
          Recognizer for ComponentInstance
static boolean isACompositeState(java.lang.Object handle)
          Recognizer for CompositeState
static boolean isADataType(java.lang.Object handle)
          Recognizer for DataType
static boolean isADataValue(java.lang.Object handle)
          Recognizer for DataValue
static boolean isADependency(java.lang.Object handle)
          Recognizer for Dependency
static boolean isADiagram(java.lang.Object handle)
          Recognizer for Diagram.
static boolean isAElement(java.lang.Object handle)
          Recognizer for Expression
static boolean isAExpression(java.lang.Object handle)
          Recognizer for Expression
static boolean isAExtensionPoint(java.lang.Object handle)
          Recognizer for ExtensionPoint
static boolean isAFeature(java.lang.Object handle)
          Recognizer for Feature
static boolean isAFlow(java.lang.Object handle)
          Recognizer for Flow
static boolean isAGeneralizableElement(java.lang.Object handle)
          Recognizer for GeneralizableElement
static boolean isAGeneralization(java.lang.Object handle)
          Recognizer for GeneralizableElement
static boolean isAInstance(java.lang.Object handle)
          Recognizer for Instance
static boolean isAInteraction(java.lang.Object handle)
          Recognizer for Interaction
static boolean isAInterface(java.lang.Object handle)
          Recognizer for Interface
static boolean isALink(java.lang.Object handle)
          Recognizer for Link
static boolean isAMessage(java.lang.Object handle)
          Recognizer for Message
static boolean isAMethod(java.lang.Object handle)
          Recognizer for Method
static boolean isAModel(java.lang.Object handle)
          Recognizer for Model
static boolean isAModelElement(java.lang.Object handle)
          Recognizer for ModelElement
static boolean isANamespace(java.lang.Object handle)
          Recognizer for Namespace
static boolean isANode(java.lang.Object handle)
          Recognizer for a Node
static boolean isANodeInstance(java.lang.Object handle)
          Recognizer for a NodeInstance
static boolean isAObject(java.lang.Object handle)
          Recognizer for Object
static boolean isAOperation(java.lang.Object handle)
          Recognizer for Operation
static boolean isAPackage(java.lang.Object handle)
          Recognizer for Package
static boolean isAPermission(java.lang.Object handle)
          Recognizer for Permission
static boolean isAPseudostate(java.lang.Object handle)
          Recognizer for Pseudostate
static boolean isAReception(java.lang.Object handle)
          Recognizer for Reception
static boolean isARelationship(java.lang.Object handle)
          Recognizer for Relationship
static boolean isAReturnAction(java.lang.Object handle)
          Recognizer for Returnaction
static boolean isASendAction(java.lang.Object handle)
          Recognizer for SendAction
static boolean isASignal(java.lang.Object handle)
          Recognizer for Signal
static boolean isAStateMachine(java.lang.Object handle)
          Recognizer for StateMachine
static boolean isAStateVertex(java.lang.Object handle)
          Recognizer for StateVertex
static boolean isAStereotype(java.lang.Object handle)
          Recognizer for Stereotype
static boolean isAStimulus(java.lang.Object handle)
          Recognizer for stimulus
static boolean isAStructuralFeature(java.lang.Object handle)
          Recognizer for StructuralFeature
static boolean isAsynchronous(java.lang.Object handle)
          Recognizer for asynchronisity of an action
static boolean isATaggedValue(java.lang.Object handle)
          Recognizer for TaggedValue
static boolean isATransition(java.lang.Object handle)
          Recognizer for Transition
static boolean isAUseCase(java.lang.Object handle)
          Recognizer for a Use Case
static boolean isChangeable(java.lang.Object handle)
          Recognizer for attributes that are changeable
static boolean isClassifierScope(java.lang.Object handle)
          Recognizer for attributes with classifier scope.
static boolean isComposite(java.lang.Object handle)
          Returns true if a given associationend is a composite.
static boolean isConstructor(java.lang.Object handle)
          Recognizer for constructor.
static boolean isInitialized(java.lang.Object handle)
          Recognizer for attributes that are initialized.
static boolean isInstanceScope(java.lang.Object handle)
          Recognizer for attributes with instance scope.
static boolean isLeaf(java.lang.Object handle)
          Recognizer for leafs
static boolean isNavigable(java.lang.Object handle)
          Recognizer for Navigable elements
static boolean isPrimaryObject(java.lang.Object handle)
          Recognizer for primary objects.
static boolean isPrivate(java.lang.Object handle)
          Recognizer for attributes with private
static boolean isRealize(java.lang.Object handle)
          Recognizer for realize
static boolean isReturn(java.lang.Object handle)
          Recognizer for return
static boolean isSingleton(java.lang.Object handle)
          Recognizer for singleton.
static boolean isStereotype(java.lang.Object handle, java.lang.String stereotypename)
          Deprecated. As of ArgoUml version 0.13.5, ExtensionMechanismsHelper.isStereotype(Object,String,String) should be used instead. Since this should only ever be used together with predefined stereotypes the base class can *be found in the UML 1.3 specification.
static boolean isTop(java.lang.Object handle)
           
static boolean isType(java.lang.Object handle)
          Recognizer for type.
static boolean isUtility(java.lang.Object handle)
          Recognizer for utility.
static java.lang.Object lookupIn(java.lang.Object o, java.lang.String name)
          Returns a named object in the given object by calling it's lookup method.
static void removeClientDependency(java.lang.Object o, java.lang.Object dep)
          This method removes a dependency from a model element.
static void removeFeature(java.lang.Object cls, java.lang.Object feature)
          This method removes a feature from a classifier.
static void removeOwnedElement(java.lang.Object handle, java.lang.Object value)
          Removes a owned modelelement from a namespace
static void removeParameter(java.lang.Object o, java.lang.Object p)
          This method removes a parameter from an operation.
static void setAbstract(java.lang.Object o, boolean flag)
          Sets if of some classifier is abstract.
static void setAction(java.lang.Object message, java.lang.Object action)
          Sets the action to a message
static void setAsynchronous(java.lang.Object handle, boolean value)
          Sets the asynchronous property of an action
static void setBody(java.lang.Object m, java.lang.Object expr)
          Sets a body of some method.
static void setChangeable(java.lang.Object o, boolean flag)
          Set the changeability of some feature.
static void setConcurrency(java.lang.Object o, short c)
          Set the concurrency of some operation.
static void setDispatchAction(java.lang.Object handle, java.lang.Object value)
          Sets the dispatch action for some stimulus
static void setDoActivity(java.lang.Object handle, java.lang.Object value)
          Sets the do activity of a state
static void setEffect(java.lang.Object handle, java.lang.Object value)
          Sets the effect of some transition
static void setEntry(java.lang.Object handle, java.lang.Object value)
          Sets the entry action of some state
static void setExit(java.lang.Object handle, java.lang.Object value)
          Sets the exit action of some state
static void setInitialValue(java.lang.Object at, java.lang.Object expr)
          Sets an initial value of some attribute.
static void setKindToIn(java.lang.Object p)
          Set some parameters kind to 'in'.
static void setKindToReturn(java.lang.Object p)
          Set some parameters kind to 'return'.
static void setLeaf(java.lang.Object o, boolean flag)
          Sets if of some classifier is a leaf.
static void setModelElementContainer(java.lang.Object handle, java.lang.Object container)
          Sets the container that owns the handle.
static void setMultiplicity(java.lang.Object o, java.lang.String mult)
          Sets a multiplicity of some attribute or association end.
static void setName(java.lang.Object o, java.lang.String name)
          Sets a name of some modelelement.
static void setNamespace(java.lang.Object o, java.lang.Object ns)
          Sets a namespace of some modelelement.
static void setNavigable(java.lang.Object o, boolean flag)
          Sets the navigability of some association end.
static void setOwnerScope(java.lang.Object f, short os)
          Set the owner scope of some feature.
static void setRoot(java.lang.Object o, boolean flag)
          Sets if of some classifier is a root.
static void setStereotype(java.lang.Object m, java.lang.Object stereo)
          Sets the stereotype of some modelelement.
static void setTaggedValue(java.lang.Object o, java.lang.String tag, java.lang.String value)
          Sets a tagged value of some modelelement.
static void setTargetScope(java.lang.Object ae, short ts)
          Set the target scope of some association end.
static void setType(java.lang.Object p, java.lang.Object cls)
          Sets the type of some parameter.
static void setValueOfTag(java.lang.Object tv, java.lang.String value)
          Sets a value of some taggedValue.
static void setVisibility(java.lang.Object o, short v)
          Set the visibility of some modelelement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACC_PUBLIC

public static final short ACC_PUBLIC
See Also:
Constant Field Values

ACC_PRIVATE

public static final short ACC_PRIVATE
See Also:
Constant Field Values

ACC_PROTECTED

public static final short ACC_PROTECTED
See Also:
Constant Field Values

CLASSIFIER_SCOPE

public static final short CLASSIFIER_SCOPE
See Also:
Constant Field Values

INSTANCE_SCOPE

public static final short INSTANCE_SCOPE
See Also:
Constant Field Values

GUARDED

public static final short GUARDED
See Also:
Constant Field Values

SEQUENTIAL

public static final short SEQUENTIAL
See Also:
Constant Field Values

ABSTRACTION

public static final java.lang.Object ABSTRACTION

ASSOCIATION

public static final java.lang.Object ASSOCIATION

ASSOCIATION_CLASS

public static final java.lang.Object ASSOCIATION_CLASS

ASSOCIATION_ROLE

public static final java.lang.Object ASSOCIATION_ROLE

COLLABORATION

public static final java.lang.Object COLLABORATION

DEPENDENCY

public static final java.lang.Object DEPENDENCY

EXTEND

public static final java.lang.Object EXTEND

GENERALIZATION

public static final java.lang.Object GENERALIZATION

INCLUDE

public static final java.lang.Object INCLUDE

LINK

public static final java.lang.Object LINK

PERMISSION

public static final java.lang.Object PERMISSION

USAGE

public static final java.lang.Object USAGE

TRANSITION

public static final java.lang.Object TRANSITION

ACTOR

public static final java.lang.Object ACTOR

CLASS

public static final java.lang.Object CLASS

CLASSIFIER

public static final java.lang.Object CLASSIFIER

CLASSIFIER_ROLE

public static final java.lang.Object CLASSIFIER_ROLE

COMPONENT

public static final java.lang.Object COMPONENT

COMPONENT_INSTANCE

public static final java.lang.Object COMPONENT_INSTANCE

INSTANCE

public static final java.lang.Object INSTANCE

INTERFACE

public static final java.lang.Object INTERFACE

NODE

public static final java.lang.Object NODE

NODE_INSTANCE

public static final java.lang.Object NODE_INSTANCE

OBJECT

public static final java.lang.Object OBJECT

PACKAGE

public static final java.lang.Object PACKAGE

MODEL

public static final java.lang.Object MODEL

SUBSYSTEM

public static final java.lang.Object SUBSYSTEM

STATE

public static final java.lang.Object STATE

COMPOSITESTATE

public static final java.lang.Object COMPOSITESTATE

STATEVERTEX

public static final java.lang.Object STATEVERTEX

PSEUDOSTATE

public static final java.lang.Object PSEUDOSTATE

USE_CASE

public static final java.lang.Object USE_CASE

ACTION

public static final java.lang.Object ACTION

ACTION_EXPRESSION

public static final java.lang.Object ACTION_EXPRESSION

ACTION_STATE

public static final java.lang.Object ACTION_STATE

ASSOCIATION_END

public static final java.lang.Object ASSOCIATION_END

CALL_ACTION

public static final java.lang.Object CALL_ACTION

NAMESPACE

public static final java.lang.Object NAMESPACE

RECEPTION

public static final java.lang.Object RECEPTION

STEREOTYPE

public static final java.lang.Object STEREOTYPE

ATTRIBUTE

public static final java.lang.Object ATTRIBUTE

OPERATION

public static final java.lang.Object OPERATION

VISIBILITYKIND

public static final java.lang.Object VISIBILITYKIND

MODELELEMENT

public static final java.lang.Object MODELELEMENT

INITIAL_PSEUDOSTATEKIND

public static final java.lang.Object INITIAL_PSEUDOSTATEKIND

DEEPHISTORY_PSEUDOSTATEKIND

public static final java.lang.Object DEEPHISTORY_PSEUDOSTATEKIND

SHALLOWHISTORY_PSEUDOSTATEKIND

public static final java.lang.Object SHALLOWHISTORY_PSEUDOSTATEKIND

FORK_PSEUDOSTATEKIND

public static final java.lang.Object FORK_PSEUDOSTATEKIND

JOIN_PSEUDOSTATEKIND

public static final java.lang.Object JOIN_PSEUDOSTATEKIND

BRANCH_PSEUDOSTATEKIND

public static final java.lang.Object BRANCH_PSEUDOSTATEKIND

PUBLIC_VISIBILITYKIND

public static final java.lang.Object PUBLIC_VISIBILITYKIND

PRIVATE_VISIBILITYKIND

public static final java.lang.Object PRIVATE_VISIBILITYKIND

PROTECTED_VISIBILITYKIND

public static final java.lang.Object PROTECTED_VISIBILITYKIND
Method Detail

isAAbstraction

public static boolean isAAbstraction(java.lang.Object handle)
Recognizer for Abstraction.

Parameters:
handle - candidate

isAAction

public static boolean isAAction(java.lang.Object handle)
Recognizer for Action.

Parameters:
handle - candidate

isAActionSequence

public static boolean isAActionSequence(java.lang.Object handle)
Recognizer for ActionSequence

Parameters:
handle -
Returns:

isAActionState

public static boolean isAActionState(java.lang.Object handle)
Recognizer for Action state

Parameters:
handle -
Returns:

isAAssociation

public static boolean isAAssociation(java.lang.Object handle)
Recognizer for Association.

Parameters:
handle - candidate

isAAssociationEnd

public static boolean isAAssociationEnd(java.lang.Object handle)
Recognizer for AssociationEnd.

Parameters:
handle - candidate

isAAssociationRole

public static boolean isAAssociationRole(java.lang.Object handle)
Recognizer for AssociationRole

Parameters:
handle - candidate

isAAttribute

public static boolean isAAttribute(java.lang.Object handle)
Recognizer for Attribute

Parameters:
handle - candidate

isAsynchronous

public static boolean isAsynchronous(java.lang.Object handle)
Recognizer for asynchronisity of an action

Parameters:
handle -
Returns:

isAbstract

public static boolean isAbstract(java.lang.Object handle)
Recognizer for abstract classes and operations.

Parameters:
handle - candidate

isABase

public static boolean isABase(java.lang.Object handle)
Recognizer for bases. A base is an object that is some form of an element in the model. MBase in Novosoft terms.

Parameters:
handle - candidate

isAClass

public static boolean isAClass(java.lang.Object handle)
Recognizer for Class

Parameters:
handle - candidate

isAClassifier

public static boolean isAClassifier(java.lang.Object handle)
Recognizer for Classifier

Parameters:
handle - candidate

isAComment

public static boolean isAComment(java.lang.Object handle)
Recognizer for Comment

Parameters:
handle - candidate

isAComponent

public static boolean isAComponent(java.lang.Object handle)
Recognizer for Component

Parameters:
handle - candidate

isAComponentInstance

public static boolean isAComponentInstance(java.lang.Object handle)
Recognizer for ComponentInstance

Parameters:
handle - candidate

isADataType

public static boolean isADataType(java.lang.Object handle)
Recognizer for DataType

Parameters:
handle - candidate

isADataValue

public static boolean isADataValue(java.lang.Object handle)
Recognizer for DataValue

Parameters:
handle - candidate

isADependency

public static boolean isADependency(java.lang.Object handle)
Recognizer for Dependency

Parameters:
handle - candidate

isACompositeState

public static boolean isACompositeState(java.lang.Object handle)
Recognizer for CompositeState

Parameters:
handle - candidate

isAElement

public static boolean isAElement(java.lang.Object handle)
Recognizer for Expression

Parameters:
handle - candidate

isAExpression

public static boolean isAExpression(java.lang.Object handle)
Recognizer for Expression

Parameters:
handle - candidate

isAExtensionPoint

public static boolean isAExtensionPoint(java.lang.Object handle)
Recognizer for ExtensionPoint

Parameters:
handle - candidate

isAFeature

public static boolean isAFeature(java.lang.Object handle)
Recognizer for Feature

Parameters:
handle - candidate

isAFlow

public static boolean isAFlow(java.lang.Object handle)
Recognizer for Flow

Parameters:
handle - candidate

isAGeneralizableElement

public static boolean isAGeneralizableElement(java.lang.Object handle)
Recognizer for GeneralizableElement

Parameters:
handle - candidate

isAGeneralization

public static boolean isAGeneralization(java.lang.Object handle)
Recognizer for GeneralizableElement

Parameters:
handle - candidate

isAInstance

public static boolean isAInstance(java.lang.Object handle)
Recognizer for Instance

Parameters:
handle - candidate

isAInteraction

public static boolean isAInteraction(java.lang.Object handle)
Recognizer for Interaction

Parameters:
handle - candidate

isAInterface

public static boolean isAInterface(java.lang.Object handle)
Recognizer for Interface

Parameters:
handle - candidate

isALink

public static boolean isALink(java.lang.Object handle)
Recognizer for Link

Parameters:
handle - candidate

isAMessage

public static boolean isAMessage(java.lang.Object handle)
Recognizer for Message

Parameters:
handle - candidate

isAMethod

public static boolean isAMethod(java.lang.Object handle)
Recognizer for Method

Parameters:
handle - candidate

isAModel

public static boolean isAModel(java.lang.Object handle)
Recognizer for Model

Parameters:
handle - candidate

isAModelElement

public static boolean isAModelElement(java.lang.Object handle)
Recognizer for ModelElement

Parameters:
handle - candidate

isANamespace

public static boolean isANamespace(java.lang.Object handle)
Recognizer for Namespace

Parameters:
handle - candidate

isANode

public static boolean isANode(java.lang.Object handle)
Recognizer for a Node

Parameters:
handle - candidate

isANodeInstance

public static boolean isANodeInstance(java.lang.Object handle)
Recognizer for a NodeInstance

Parameters:
handle - candidate

isAOperation

public static boolean isAOperation(java.lang.Object handle)
Recognizer for Operation

Parameters:
handle - candidate

isAObject

public static boolean isAObject(java.lang.Object handle)
Recognizer for Object

Parameters:
handle - candidate

isAPermission

public static boolean isAPermission(java.lang.Object handle)
Recognizer for Permission

Parameters:
handle - candidate

isAPackage

public static boolean isAPackage(java.lang.Object handle)
Recognizer for Package

Parameters:
handle - candidate

isAPseudostate

public static boolean isAPseudostate(java.lang.Object handle)
Recognizer for Pseudostate

Parameters:
handle - candidate

getPseudostateKind

public static java.lang.Object getPseudostateKind(java.lang.Object handle)

equalsPseudostateKind

public static boolean equalsPseudostateKind(java.lang.Object ps1,
                                            java.lang.Object ps2)
check whether two pseudostatekinds are equal/of the same type.


isAReception

public static boolean isAReception(java.lang.Object handle)
Recognizer for Reception

Parameters:
handle - candidate

isAReturnAction

public static boolean isAReturnAction(java.lang.Object handle)
Recognizer for Returnaction

Parameters:
handle - candidate

isARelationship

public static boolean isARelationship(java.lang.Object handle)
Recognizer for Relationship

Parameters:
handle - candidate

isASendAction

public static boolean isASendAction(java.lang.Object handle)
Recognizer for SendAction

Parameters:
handle - candidate

isASignal

public static boolean isASignal(java.lang.Object handle)
Recognizer for Signal

Parameters:
handle - candidate

isAStateMachine

public static boolean isAStateMachine(java.lang.Object handle)
Recognizer for StateMachine

Parameters:
handle - candidate

isAStimulus

public static boolean isAStimulus(java.lang.Object handle)
Recognizer for stimulus

Parameters:
handle - candidate

isAStateVertex

public static boolean isAStateVertex(java.lang.Object handle)
Recognizer for StateVertex

Parameters:
handle - candidate

isAStereotype

public static boolean isAStereotype(java.lang.Object handle)
Recognizer for Stereotype

Parameters:
handle - candidate

isAStructuralFeature

public static boolean isAStructuralFeature(java.lang.Object handle)
Recognizer for StructuralFeature

Parameters:
handle - candidate

isATaggedValue

public static boolean isATaggedValue(java.lang.Object handle)
Recognizer for TaggedValue

Parameters:
handle - candidate

isATransition

public static boolean isATransition(java.lang.Object handle)
Recognizer for Transition

Parameters:
handle - candidate

isAUseCase

public static boolean isAUseCase(java.lang.Object handle)
Recognizer for a Use Case

Parameters:
handle - candidate

isChangeable

public static boolean isChangeable(java.lang.Object handle)
Recognizer for attributes that are changeable

Parameters:
handle - candidate

isClassifierScope

public static boolean isClassifierScope(java.lang.Object handle)
Recognizer for attributes with classifier scope.

Parameters:
handle - candidate

isConstructor

public static boolean isConstructor(java.lang.Object handle)
Recognizer for constructor.

Parameters:
handle - candidate

isComposite

public static boolean isComposite(java.lang.Object handle)
Returns true if a given associationend is a composite.

Parameters:
handle -
Returns:
boolean

isInitialized

public static boolean isInitialized(java.lang.Object handle)
Recognizer for attributes that are initialized.

Parameters:
handle - candidate

isInstanceScope

public static boolean isInstanceScope(java.lang.Object handle)
Recognizer for attributes with instance scope.

Parameters:
handle - candidate

isLeaf

public static boolean isLeaf(java.lang.Object handle)
Recognizer for leafs

Parameters:
handle - candidate GeneralizableElement

isNavigable

public static boolean isNavigable(java.lang.Object handle)
Recognizer for Navigable elements

Parameters:
handle - candidate

isPrimaryObject

public static boolean isPrimaryObject(java.lang.Object handle)
Recognizer for primary objects. A primary object is an object that is created by the parser or by a user. Object that are created when importing some other object are not.

Parameters:
handle - candidate

isPrivate

public static boolean isPrivate(java.lang.Object handle)
Recognizer for attributes with private

Parameters:
handle - candidate

isRealize

public static boolean isRealize(java.lang.Object handle)
Recognizer for realize

Parameters:
handle - candidate

isReturn

public static boolean isReturn(java.lang.Object handle)
Recognizer for return

Parameters:
handle - candidate parameter

isSingleton

public static boolean isSingleton(java.lang.Object handle)
Recognizer for singleton.

Parameters:
handle - candidate

isStereotype

public static boolean isStereotype(java.lang.Object handle,
                                   java.lang.String stereotypename)
Deprecated. As of ArgoUml version 0.13.5, ExtensionMechanismsHelper.isStereotype(Object,String,String) should be used instead. Since this should only ever be used together with predefined stereotypes the base class can *be found in the UML 1.3 specification.

Recognizer for a specific stereotype.

Parameters:
handle - candidate
Returns:
true if handle is a singleton.

isTop

public static boolean isTop(java.lang.Object handle)

isType

public static boolean isType(java.lang.Object handle)
Recognizer for type.

Parameters:
handle - candidate

isUtility

public static boolean isUtility(java.lang.Object handle)
Recognizer for utility.

Parameters:
handle - candidate

isADiagram

public static boolean isADiagram(java.lang.Object handle)
Recognizer for Diagram.

Parameters:
handle - candidate

getAssociationEnd

public static java.lang.Object getAssociationEnd(java.lang.Object type,
                                                 java.lang.Object assoc)
Returns the association end between some classifier and some associaton.

Parameters:
type -
assoc -
Returns:
association end

getAssociationEnds

public static java.util.Collection getAssociationEnds(java.lang.Object handle)
The list of Association Ends

Parameters:
handle - the object that we get the association ends from.
Returns:
Iterator with association ends.

getAttributes

public static java.util.Collection getAttributes(java.lang.Object handle)
The list of Attributes.

Parameters:
handle - classifier to examine.
Returns:
iterator with attributes.

getBaseClass

public static java.lang.Object getBaseClass(java.lang.Object handle)
The baseclass of some stereotype

Parameters:
handle - the stereotype
Returns:
the baseclass

getBehaviors

public static java.util.Collection getBehaviors(java.lang.Object handle)
Get the behaviors of a Modelelement.

Parameters:
handle - modelelement to examine.
Returns:
the behaviors.

getBody

public static java.lang.Object getBody(java.lang.Object handle)
Get the body of an Expression.

Parameters:
handle - expression.
Returns:
the body.

getChild

public static java.lang.Object getChild(java.lang.Object handle)
Get the child of a generalization. TODO: Check that the concepts parent and child exist in the UML model.

Parameters:
handle - generalization.
Returns:
the child.

getChildren

public static java.util.Collection getChildren(java.lang.Object handle)
Get the children of some generalizable element

Parameters:
handle - to the generalizable element.
Returns:
a collection with all children.

getClients

public static java.util.Collection getClients(java.lang.Object handle)
Gets the clients of some dependency

Parameters:
handle - the dependency
Returns:
the clients of the dependency

getClientDependencies

public static java.util.Collection getClientDependencies(java.lang.Object handle)
Get the client dependencies of some classifier

Parameters:
handle - to the classifier.
Returns:
an iterator with all client dependencies.

getConcurrency

public static short getConcurrency(java.lang.Object o)
Get the concurrency of an operation.

Parameters:
o - operation.
Returns:
the concurrency.

getConnections

public static java.util.Iterator getConnections(java.lang.Object handle)
The list of Connections or AssociationEnds to an Association.

Parameters:
handle - to the association.
Returns:
an Iterator with all connections.

getEffect

public static java.lang.Object getEffect(java.lang.Object handle)
Returns the effect of some transition

Parameters:
handle -
Returns:

getEntry

public static java.lang.Object getEntry(java.lang.Object handle)
Returns the entry action to a state

Parameters:
handle -
Returns:

getExit

public static java.lang.Object getExit(java.lang.Object handle)
Returns the exit action to a state

Parameters:
handle -
Returns:

getFeatures

public static java.util.Collection getFeatures(java.lang.Object handle)
The list of Features from a Classifier.

Parameters:
handle - Classifier to retrieve from.
Returns:
Collection with Features

getGeneralization

public static java.lang.Object getGeneralization(java.lang.Object child,
                                                 java.lang.Object parent)
Gets the generalization between two generalizable elements. Returns null if there is none.

Parameters:
child -
parent -
Returns:
The generalization

getGeneralizations

public static java.util.Iterator getGeneralizations(java.lang.Object handle)
The list of Generalizations from a GeneralizableElement.

Parameters:
handle - GeneralizableElement to retrieve from.
Returns:
Iterator with Generalizations

getGuard

public static java.lang.Object getGuard(java.lang.Object handle)
Gets the guard for some given transition.

Parameters:
handle -
Returns:
Object

getIncomings

public static java.util.Collection getIncomings(java.lang.Object handle)
Returns the incoming transitions for some statevertex

Parameters:
handle -
Returns:
Collection

getInteraction

public static java.lang.Object getInteraction(java.lang.Object handle)
Returns the interaction for some message

Parameters:
handle -
Returns:

getMessages

public static java.util.Collection getMessages(java.lang.Object handle)
Returns the messages belonging to some interaction

Parameters:
handle -
Returns:
Collection

getContainer

public static java.lang.Object getContainer(java.lang.Object handle)
Returns the container for the given modelelement. The container is the owner of the modelelement. It will be null for elements that don't have an owner. All elements except for the root element in a project should have an owner. The root element is allways a model.

In the future, this function could return the container of Figs too.

Parameters:
handle -
Returns:
Object

getContext

public static java.lang.Object getContext(java.lang.Object handle)
Returns the context of some given statemachine or the context of some given interaction

Parameters:
handle - the statemachine or the interaction
Returns:
the context of the statemachine or interaction or null if the statemachine or interaction doesn't have a context.

getDispatchAction

public static java.lang.Object getDispatchAction(java.lang.Object handle)
Get the dispatchaction of a stimulus.

Parameters:
handle - the stimulus that we are getting the dispatchaction of

getDoActivity

public static java.lang.Object getDoActivity(java.lang.Object handle)
Returns the do activity action of a state

Parameters:
handle -
Returns:

getNamespace

public static java.lang.Object getNamespace(java.lang.Object handle)
Get the namespace of an element.

Parameters:
handle - the model element that we are getting the namespace of

getOperations

public static java.util.Collection getOperations(java.lang.Object handle)
The list of operations

Parameters:
handle - classifier to examine.
Returns:
Collection with operations.

getOperationsInh

public static java.util.Iterator getOperationsInh(java.lang.Object handle)
The list of Operations of this classifier and all inherited.

Parameters:
handle - classifier to examine.
Returns:
Iterator with operations.

getOppositeEnd

public static java.lang.Object getOppositeEnd(java.lang.Object handle)
Returns the opposite end of an association end.

Parameters:
handle -
Returns:
Object the opposite end.

getOutgoings

public static java.util.Collection getOutgoings(java.lang.Object handle)
Returns the list of Transitions outgoing from the given stateVertex.

Returns:
Collection

getOtherAssociationEnds

public static java.util.Collection getOtherAssociationEnds(java.lang.Object handle)
The list of Associations Ends connected to this association end

Parameters:
handle - association end to start from

getOwnedElements

public static java.util.Collection getOwnedElements(java.lang.Object handle)
The list of owned elements of the the package.

Parameters:
handle - package to retrieve from.
Returns:
Iterator with operations

getParameter

public static java.lang.Object getParameter(java.lang.Object op,
                                            int n)
Get a parameter of an operation.

Parameters:
op - operation to retrieve from
n - parameter number
Returns:
parameter.

getParameters

public static java.util.Collection getParameters(java.lang.Object handle)
Get the parameters of an operation.

Parameters:
handle - operation to retrieve from
Returns:
Iterator with operations.

getParent

public static java.lang.Object getParent(java.lang.Object handle)
Get the parent of a generalization. TODO: Check that the concepts parent and child exist in the UML model.

Parameters:
handle - generalization.
Returns:
the parent.

getReceptions

public static java.util.Collection getReceptions(java.lang.Object handle)
returns the receptions of a signal

Parameters:
handle -
Returns:
receptions

getRecurrence

public static java.lang.Object getRecurrence(java.lang.Object handle)
Returns the recurense iteration expression of an action

Parameters:
handle -
Returns:

getScript

public static java.lang.Object getScript(java.lang.Object handle)
Returns the script belonging to a given action

Parameters:
handle -
Returns:

getResidents

public static java.util.Collection getResidents(java.lang.Object handle)
Returns a collection with all residents belonging to the given node.

Parameters:
handle -
Returns:
Collection

getSource

public static java.lang.Object getSource(java.lang.Object handle)
Gets the source for some given transitions.

Parameters:
handle -
Returns:
Object

getSpecializations

public static java.util.Iterator getSpecializations(java.lang.Object handle)
The list of Specializations from a GeneralizableElement.

Parameters:
handle - GeneralizableElement to retrieve from.
Returns:
Iterator with Specializations.

getStereoType

public static java.lang.Object getStereoType(java.lang.Object handle)
Returns the stereotype belonging to some given modelelement

Parameters:
handle -
Returns:
Object

getSubvertices

public static java.util.Collection getSubvertices(java.lang.Object handle)
Returns a collection with all subvertices belonging to the given composite state.

Parameters:
handle -
Returns:
Collection

getSupplierDependencies

public static java.util.Collection getSupplierDependencies(java.lang.Object handle)
The list of SupplierDependencies from a ModelElement.

Parameters:
handle - model element.

getType

public static java.lang.Object getType(java.lang.Object handle)
The type of an attribute

Parameters:
handle - the attribute

getTarget

public static java.lang.Object getTarget(java.lang.Object handle)
Returns the target of some transition

Parameters:
handle -
Returns:
Object

getUpper

public static int getUpper(java.lang.Object handle)
Returns the upper bound of the multiplicity of the given handle (an associationend).

Parameters:
handle -
Returns:
int

getTransitions

public static java.util.Collection getTransitions(java.lang.Object handle)
Returns the transitions belonging to the given handle. The handle can be a statemachine or a composite state. If it's a statemachine the transitions will be given back belonging to that statemachine. If it's a compositestate the internal transitions of that compositestate will be given back.

Parameters:
handle -
Returns:
Collection

getStructuralFeatures

public static java.util.Collection getStructuralFeatures(java.lang.Object classifier)
This method returns all attributes of a given Classifier.

Parameters:
classifier - the classifier you want to have the attributes for
Returns:
a collection of the attributes

getSpecifications

public static java.util.Collection getSpecifications(java.lang.Object cls)
Returns all Interfaces of which this class is a realization.

Parameters:
cls - the class you want to have the interfaces for
Returns:
a collection of the Interfaces

getSuppliers

public static java.util.Collection getSuppliers(java.lang.Object handle)
Returns the suppliers of an abstraction.

Returns:
a collection of the suppliers

getAction

public static java.lang.Object getAction(java.lang.Object handle)
Returns the action belonging to some message

Parameters:
handle -
Returns:

getActualArguments

public static java.util.Collection getActualArguments(java.lang.Object handle)
Returns the actual arguments for a given action.

Parameters:
handle -
Returns:

getAssociatedClasses

public static java.util.Collection getAssociatedClasses(java.lang.Object o)
Returns all associated classes for some given classifier. Returns an empty collection if the given argument o is not a classifier. The given parameter is included in the returned collection if it has a self- referencing association.

Parameters:
o -
Returns:
Collection

getName

public static java.lang.String getName(java.lang.Object handle)
The name of a model element or some diagram part.

Parameters:
handle - that points out the object.

getOwner

public static java.lang.Object getOwner(java.lang.Object f)
Return the owner of a feature.

Returns:
classifier

getTaggedValues

public static java.util.Iterator getTaggedValues(java.lang.Object modelElement)
Return the tagged values iterator of a model element.

Returns:
The tagged values iterator

getTaggedValue

public static java.lang.Object getTaggedValue(java.lang.Object modelElement,
                                              java.lang.String name)
Return the tagged value with a specific tag.

Parameters:
name - The tag.
Returns:
The found tag, null if not found

getTagOfTag

public static java.lang.String getTagOfTag(java.lang.Object tv)
Return the key (tag) of some tagged value.

Parameters:
tv - The tagged value.
Returns:
The found value, null if not found

getValueOfTag

public static java.lang.String getValueOfTag(java.lang.Object tv)
Return the value of some tagged value.

Parameters:
tv - The tagged value.
Returns:
The found value, null if not found

getUUID

public static java.lang.String getUUID(java.lang.Object base)
Return the UUID of this element

Parameters:
base - base element (MBase type)
Returns:
UUID

lookupIn

public static java.lang.Object lookupIn(java.lang.Object o,
                                        java.lang.String name)
Returns a named object in the given object by calling it's lookup method.

Parameters:
name - of the model element
Returns:
found object, null otherwise

addFeature

public static void addFeature(java.lang.Object cls,
                              java.lang.Object f)
Adds a feature to some classifier.


addMethod

public static void addMethod(java.lang.Object o,
                             java.lang.Object m)
Adds a method to some operation and copies the op's attributes to the method.


addOwnedElement

public static void addOwnedElement(java.lang.Object ns,
                                   java.lang.Object me)
Adds a model element to some namespace.

Parameters:
ns - namespace
me - model element

addSupplier

public static void addSupplier(java.lang.Object a,
                               java.lang.Object cls)
Adds a supplier classifier to some abstraction.

Parameters:
a - abstraction
cls - supplier classifier

addSupplierDependency

public static void addSupplierDependency(java.lang.Object supplier,
                                         java.lang.Object dependency)
Adds a supplier dependency to some modelelement

Parameters:
supplier - the supplier
dependency - the dependency

addClient

public static void addClient(java.lang.Object a,
                             java.lang.Object cls)
Adds a client classifier to some abstraction.

Parameters:
a - abstraction
cls - client classifier

addClientDependency

public static void addClientDependency(java.lang.Object handle,
                                       java.lang.Object dependency)
Adds a client dependency to some modelelement

Parameters:
handle - the modelelement
dependency - the dependency

removeClientDependency

public static void removeClientDependency(java.lang.Object o,
                                          java.lang.Object dep)
This method removes a dependency from a model element.


removeFeature

public static void removeFeature(java.lang.Object cls,
                                 java.lang.Object feature)
This method removes a feature from a classifier.

Parameters:
feature -

removeOwnedElement

public static void removeOwnedElement(java.lang.Object handle,
                                      java.lang.Object value)
Removes a owned modelelement from a namespace

Parameters:
handle -
value -

removeParameter

public static void removeParameter(java.lang.Object o,
                                   java.lang.Object p)
This method removes a parameter from an operation.


setBody

public static void setBody(java.lang.Object m,
                           java.lang.Object expr)
Sets a body of some method.


setInitialValue

public static void setInitialValue(java.lang.Object at,
                                   java.lang.Object expr)
Sets an initial value of some attribute.


setModelElementContainer

public static void setModelElementContainer(java.lang.Object handle,
                                            java.lang.Object container)
                                     throws java.lang.IllegalArgumentException

Sets the container that owns the handle. This must be set correctly so every modelelement except the root model does have an owner. Otherwise the saving/loading will fail.

Warning: when changing the implementation of this method be warned that the sequence of the if then else tree DOES matter. Most notabely, do not move the setNamespace method any level up in the tree.

Warning: the implementation does not support setting the owner of actions. Use setState1 etc. on action for that goal

Parameters:
handle - The modelelement that must be added to the container
container - The owning modelelement
Throws:
java.lang.IllegalArgumentException - when the handle or container is null or if the handle cannot be added to the container.

setMultiplicity

public static void setMultiplicity(java.lang.Object o,
                                   java.lang.String mult)
Sets a multiplicity of some attribute or association end.


setName

public static void setName(java.lang.Object o,
                           java.lang.String name)
Sets a name of some modelelement.

Parameters:
name -

setNamespace

public static void setNamespace(java.lang.Object o,
                                java.lang.Object ns)
Sets a namespace of some modelelement.


setNavigable

public static void setNavigable(java.lang.Object o,
                                boolean flag)
Sets the navigability of some association end.


setVisibility

public static void setVisibility(java.lang.Object o,
                                 short v)
Set the visibility of some modelelement.


setOwnerScope

public static void setOwnerScope(java.lang.Object f,
                                 short os)
Set the owner scope of some feature.


setTargetScope

public static void setTargetScope(java.lang.Object ae,
                                  short ts)
Set the target scope of some association end.


setConcurrency

public static void setConcurrency(java.lang.Object o,
                                  short c)
Set the concurrency of some operation.


setDispatchAction

public static void setDispatchAction(java.lang.Object handle,
                                     java.lang.Object value)
Sets the dispatch action for some stimulus

Parameters:
handle -
value -

setDoActivity

public static void setDoActivity(java.lang.Object handle,
                                 java.lang.Object value)
Sets the do activity of a state

Parameters:
handle -
value -

setEffect

public static void setEffect(java.lang.Object handle,
                             java.lang.Object value)
Sets the effect of some transition

Parameters:
handle -
value -

setEntry

public static void setEntry(java.lang.Object handle,
                            java.lang.Object value)
Sets the entry action of some state

Parameters:
handle -
value -

setExit

public static void setExit(java.lang.Object handle,
                           java.lang.Object value)
Sets the exit action of some state

Parameters:
handle -
value -

setChangeable

public static void setChangeable(java.lang.Object o,
                                 boolean flag)
Set the changeability of some feature.


setAbstract

public static void setAbstract(java.lang.Object o,
                               boolean flag)
Sets if of some classifier is abstract.

Parameters:
flag -

setAction

public static void setAction(java.lang.Object message,
                             java.lang.Object action)
Sets the action to a message

Parameters:
message -
action -

setAsynchronous

public static void setAsynchronous(java.lang.Object handle,
                                   boolean value)
Sets the asynchronous property of an action

Parameters:
handle - the action
value - the value to alter the asynchronous property to

setLeaf

public static void setLeaf(java.lang.Object o,
                           boolean flag)
Sets if of some classifier is a leaf.

Parameters:
flag -

setRoot

public static void setRoot(java.lang.Object o,
                           boolean flag)
Sets if of some classifier is a root.

Parameters:
flag -

setKindToIn

public static void setKindToIn(java.lang.Object p)
Set some parameters kind to 'in'.


setKindToReturn

public static void setKindToReturn(java.lang.Object p)
Set some parameters kind to 'return'.


setType

public static void setType(java.lang.Object p,
                           java.lang.Object cls)
Sets the type of some parameter.


setTaggedValue

public static void setTaggedValue(java.lang.Object o,
                                  java.lang.String tag,
                                  java.lang.String value)
Sets a tagged value of some modelelement.

Parameters:
tag -
value -

setValueOfTag

public static void setValueOfTag(java.lang.Object tv,
                                 java.lang.String value)
Sets a value of some taggedValue.

Parameters:
value -

setStereotype

public static void setStereotype(java.lang.Object m,
                                 java.lang.Object stereo)
Sets the stereotype of some modelelement. The method also copies a stereotype that is not a part of the current model to the current model.

Parameters:
m - model element
stereo - stereotype

addConstraint

public static void addConstraint(java.lang.Object me,
                                 java.lang.Object mc)
Adds a constraint to some model element.

Parameters:
me - model element
mc - constraint

getUMLClassName

public static java.lang.String getUMLClassName(java.lang.Object handle)
getUMLClassName returns the name of the UML Model class, e.g. it it will return Class for an object of type MClass.

Parameters:
handle - MBase
Returns:
classname of modelelement


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