org.argouml.model
Class AbstractCoreHelperDecorator

java.lang.Object
  extended byorg.argouml.model.AbstractCoreHelperDecorator
All Implemented Interfaces:
CoreHelper

public abstract class AbstractCoreHelperDecorator
extends Object
implements CoreHelper

An abstract Decorator for the CoreHelper.


Method Summary
 void addAllStereotypes(Object modelElement, Collection stereotypes)
          Adds a collection of stereotype to some modelelement.
 void addAnnotatedElement(Object comment, Object annotatedElement)
          Adds an annotated element to a comment.
 void addClient(Object handle, Object element)
          Adds a client model element to some dependency.
 void addClientDependency(Object handle, Object dependency)
          Adds a client dependency to some modelelement.
 void addComment(Object element, Object comment)
          Add a new comment to a model element.
 void addConnection(Object handle, Object connection)
          Add an End to a connection.
 void addConstraint(Object handle, Object mc)
          Adds a constraint to some model element.
 void addDeploymentLocation(Object handle, Object node)
           
 void addElementResidence(Object handle, Object residence)
          Add an ElementResidence.
 void addFeature(Object handle, int index, Object f)
          Adds a feature to some classifier.
 void addFeature(Object handle, Object f)
          Adds a feature to some classifier.
 void addLink(Object handle, Object link)
          Add the given Link to the given Link or Association.
 void addMethod(Object handle, Object m)
          Adds a method to some operation and copies the op's attributes to the method.
 void addOwnedElement(Object handle, Object me)
          Adds a model element to some namespace.
 void addParameter(Object handle, int index, Object parameter)
          Add a Parameter to the given object at given location.
 void addParameter(Object handle, Object parameter)
          Add a Parameter to the given object.
 void addRaisedSignal(Object handle, Object sig)
          Add a raised Signal to a Message or Operation.
 void addSourceFlow(Object handle, Object flow)
          Add a source flow to a model element.
 void addStereotype(Object modelElement, Object stereotype)
          Adds a stereotype to some modelelement.
 void addSupplier(Object handle, Object element)
          Adds a supplier classifier to some abstraction.
 void addSupplierDependency(Object supplier, Object dependency)
          Adds a supplier dependency to some modelelement.
 void addTaggedValue(Object handle, Object taggedValue)
          Adds a TaggedValue to a ModelElement.
 void addTargetFlow(Object handle, Object flow)
          Add a target flow to a model element.
 void clearStereotypes(Object modelElement)
          Removes all stereotypes from a given modelelement.
 boolean equalsAggregationKind(Object associationEnd, String kindType)
           
 Collection getAllAttributes(Object clazz)
          Returns all attributes of some classifier and of its parents.
 Collection getAllBehavioralFeatures(Object element)
          Returns all behavioralfeatures found in this element and its children.
 Collection getAllClasses(Object ns)
          Returns all classes found in this namespace and in its children.
 Collection getAllClassifiers(Object namespace)
          Returns all classifiers found in this namespace and in its children.
 Collection getAllComponents(Object ns)
          Returns all components found in this namespace and in its children.
 Collection getAllContents(Object clazz)
          Returns the contents (owned elements) of this classifier and all its parents as specified in section 2.5.3.8 of the UML 1.3 spec.
 Collection getAllDataTypes(Object ns)
          Returns all components found in this namespace and in its children.
 Collection getAllInterfaces(Object ns)
          Returns all interfaces found in this namespace and in its children.
 Collection getAllMetatypeNames()
          Returns names of all metatypes in metamodel TODO: This method rightly belongs in a separate interface dealing with instances of MOF types as opposed to UML types like all the rest of the methods here do.
 Collection getAllNodes(Object ns)
          Returns all components found in this namespace and in its children.
 Collection getAllPossibleNamespaces(Object modelElement, Object model)
          Returns all possible namespaces that may be selected by some given modelelement.
 Collection getAllRealizedInterfaces(Object o)
          Returns all interfaces that are realized by the given class or by its superclasses.
 Collection getAllSupertypes(Object cls1)
          This method returns all Classifiers of which this class is a direct or indirect subtype.
 Collection getAllVisibleElements(Object ns)
          Returns a Set containing all ModelElements visible outside of the Namespace.
 Collection getAssociatedClassifiers(Object classifier)
          Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier).
 Collection getAssociateEnds(Object classifier)
          This method returns all opposite AssociationEnds of a given Classifier.
 Collection getAssociateEndsInh(Object classifier1)
          This method returns all opposite AssociationEnds of a given Classifier, including inherited.
 Object getAssociationEnd(Object type, Object assoc)
          Returns the associationend between a classifier and an associaton.
 Collection getAssociations(Object classifier)
          Returns all associations for some classifier.
 Collection getAssociations(Object from, Object to)
          Gets the associations between the classifiers from and to.
 Collection getAttributes(Object classifier)
          This method returns all attributes of a given Classifier.
 Collection getAttributesInh(Object classifier)
          This method returns all attributes of a given Classifier, including inherited.
 Collection getBehavioralFeatures(Object clazz)
          Returns all behavioral features of some classifier.
 String getBody(Object comment)
          Gets the body of a comment.
 Collection getChildren(Object o)
          Returns all children from some given generalizableelement on all levels (the complete tree excluding the generalizable element itself).
protected  CoreHelper getComponent()
          The component we are decorating.
 Collection getDependencies(Object supplierObj, Object clientObj)
          Returns the dependencies between some supplier modelelement and some client modelelement.
 Object getDestination(Object relationship)
          Returns the destination of a relation.
 Collection getExtendedClassifiers(Object clazz)
          Returns all classes some generalizable element extends.
 Collection getExtendingClassifiers(Object clazz)
          Returns all classifiers that extend some classifier.
 Collection getExtendingElements(Object clazz)
          Returns all elements that extend some class.
 String getFeatureName(Object o)
          This method returns the name of a feature.
 Object getFirstSharedNamespace(Object ns1, Object ns2)
          Gets the first namespace two namespaces share.
 Collection getFlows(Object source, Object target)
          Returns all flows from some source modelelement to a target modelelement.
 Object getGeneralization(Object child, Object parent)
          Gets the generalization between two generalizable elements.
 Collection getOperations(Object classifier)
          This method returns all operations of a given Classifier.
 Collection getOperationsInh(Object classifier)
          This method returns all operations of a given Classifier, including inherited.
 Collection getRealizedInterfaces(Object cls)
          Return all interfaces the given class realizes.
 Collection getRelationships(Object source, Object dest)
          Returns all relationships between the source and dest modelelement and vica versa.
 Object getReturnParameter(Object operation1)
          This method finds all parameters of the given operation which have the ParameterDirectionType RETURN.
 Collection getReturnParameters(Object operation)
          Returns all return parameters for an operation.
 Object getSource(Object relationship)
          Returns the source of a relation.
 Object getSpecification(Object object)
          Returns the operation that some method realized.
 Collection getSpecifications(Object classifier)
          Returns all Interfaces of which this class is a realization.
 Collection getSubtypes(Object cls)
          This method returns all Classifiers of which this class is a direct supertype.
 Collection getSupertypes(Object generalizableElement)
          This method returns all Classifiers of which this class is a direct subtype.
 boolean hasCompositeEnd(Object association)
           
 boolean isMethod(Object o)
          This method returns if the object is a method.
 boolean isOperation(Object o)
          This method returns if the object is an operation.
 boolean isSubType(Object type, Object subType)
          Determine if a meta type is a subtype of another.
 boolean isValidNamespace(Object mObj, Object nsObj)
          Returns true if some modelelement may be owned by the given namespace.
 void removeAnnotatedElement(Object handle, Object me)
          Remove the given modelelement from a given comment.
 void removeClientDependency(Object handle, Object dep)
          This method removes a dependency from a model element.
 void removeConnection(Object handle, Object connection)
          Remove a connection between an Association & AssociationEnd or between a Link & LinkEnd.
 void removeConstraint(Object handle, Object cons)
          Remove the given constraint from a given ModelElement.
 void removeDeploymentLocation(Object handle, Object node)
          Remove a deployment location.
 void removeElementResidence(Object handle, Object residence)
          Remove an ElementResidence.
 void removeFeature(Object cls, Object feature)
          This method removes a feature from a classifier.
 void removeOwnedElement(Object handle, Object value)
          Removes a owned model element from a namespace.
 void removeParameter(Object handle, Object parameter)
          This method removes a parameter from an operation.
 void removeSourceFlow(Object handle, Object flow)
          Remove a source flow from a model element.
 void removeStereotype(Object modelElement, Object stereotype)
          Removes a stereotype from some modelelement.
 void removeSupplierDependency(Object supplier, Object dependency)
          Adds a supplier dependency to some modelelement.
 void removeTaggedValue(Object handle, String name)
          Removes a named tagged value from a model element, ie subsequent calls to getTaggedValue will return null for name, at least until a tagged value with that name has been added again.
 void removeTargetFlow(Object handle, Object flow)
          Add a target flow to a model element.
 void setAbstract(Object handle, boolean flag)
          Sets if of some model element is abstract.
 void setActive(Object handle, boolean active)
          Makes a Class active.
 void setAggregation(Object handle, Object aggregationKind)
          Sets the aggregation of some model element.
 void setAnnotatedElements(Object handle, Collection elems)
          Sets the list of annotated elements of the given comment.
 void setAssociation(Object handle, Object association)
          Sets the association of some model element.
 void setAttributes(Object classifier, Collection attributes)
          This method replaces all attributes of the given classifier by the given collection of attributes.
 void setBody(Object handle, Object expr)
          Sets a body of a given Method or Constraint.
 void setBody(Object handle, String body)
          Sets the body of a comment.
 void setChangeability(Object handle, Object ck)
          Set the Changeability of a StructuralFeature or AssociationEnd.
 void setChangeable(Object handle, boolean flag)
          Set the changeability of some feature.
 void setChild(Object handle, Object child)
          Set the child for a generalization.
 void setConcurrency(Object handle, Object concurrencyKind)
          Set the concurrency of some operation.
 void setConnections(Object handle, Collection elems)
          Sets the list of connections of the given association or link.
 void setContainer(Object handle, Object component)
          Set the Container of the given ElementResidence to the given Component.
 void setDefaultValue(Object handle, Object expr)
          Sets a default value of some parameter.
 void setDiscriminator(Object handle, String discriminator)
           
 void setEnumerationLiterals(Object enumeration, List literals)
          Set the (ordered) list of literals of an Enumeration.
 void setFeature(Object elem, int i, Object feature)
          Set the feature at the given position.
 void setFeatures(Object handle, Collection features)
          Sets the features of some model element.
 void setImplementationLocation(Object handle, Object component)
          Set the ImplementationLocation of the given ElementResidence to the given Component.
 void setInitialValue(Object at, Object expr)
          Sets an initial value.
 void setKind(Object handle, Object kind)
          Set some parameters kind.
 void setKindToIn(Object handle)
          Set some parameters kind to 'in'.
 void setKindToInOut(Object handle)
          Set some parameters kind to 'in/out'.
 void setKindToOut(Object handle)
          Set some parameters kind to 'out'.
 void setKindToReturn(Object handle)
          Set some parameters kind to 'return'.
 void setLeaf(Object handle, boolean flag)
          Sets if some model element is a leaf.
 void setModelElementContainer(Object handle, Object container)
          Sets the container that owns the handle.
 void setMultiplicity(Object handle, Object arg)
          Sets a multiplicity of some model element.
 void setName(Object handle, String name)
          Sets a name of some modelelement.
 void setNamespace(Object handle, Object ns)
          Sets a namespace of some modelelement.
 void setNavigable(Object handle, boolean flag)
          Sets the navigability of some association end.
 void setOperations(Object classifier, Collection operations)
          This method replaces all operations of the given classifier by the given collection of operations.
 void setOrdering(Object handle, Object ok)
          Set the OrderingKind of a given AssociationEnd.
 void setOwner(Object handle, Object owner)
          Set the owner of a Feature.
 void setOwnerScope(Object handle, Object os)
           
 void setParameters(Object handle, Collection parameters)
          Sets the parameters of a classifier, event, objectflowstate or behavioralfeature.
 void setParent(Object handle, Object parent)
          Sets the parent of a generalization.
 void setPowertype(Object handle, Object pt)
          Set the PowerType of a Generalization.
 void setQualifiers(Object handle, Collection elems)
          Sets the qualified attributes of an association end.
 void setQuery(Object handle, boolean flag)
          Sets the query flag of a behavioral feature.
 void setRaisedSignals(Object handle, Collection raisedSignals)
          Sets the raised signals of some behavioural feature.
 void setResident(Object handle, Object resident)
           
 void setResidents(Object handle, Collection residents)
          Sets the residents of some model element.
 void setRoot(Object handle, boolean flag)
          Sets if some model element is a root.
 void setSources(Object handle, Collection specifications)
           
 void setSpecification(Object handle, boolean specification)
          Set the Specification flag for a ModelElement.
 void setSpecifications(Object handle, Collection specifications)
          Sets the specifications of some association end.
 void setTaggedValue(Object handle, String tag, String value)
          Sets a tagged value of some modelelement.
 void setTaggedValues(Object handle, Collection taggedValues)
          Set the TaggedValues of a ModelElement.
 void setTargetScope(Object handle, Object scopeKind)
          Set the target scope of some association end or structural feature.
 void setType(Object handle, Object type)
          Sets the type of some parameter.
 void setUUID(Object handle, String uuid)
          Set the UUID of this element.
 void setVisibility(Object handle, Object visibility)
          Set the visibility of some modelelement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.argouml.model.CoreHelper
setSpecification, setSpecification
 

Method Detail

getComponent

protected CoreHelper getComponent()
The component we are decorating.

Returns:
Returns the component.

clearStereotypes

public void clearStereotypes(Object modelElement)
Description copied from interface: CoreHelper
Removes all stereotypes from a given modelelement.

Specified by:
clearStereotypes in interface CoreHelper
Parameters:
modelElement - model element
See Also:
org.argouml.model.CoreHelper#clearStereotypes( java.lang.Object, java.lang.Object)

isSubType

public boolean isSubType(Object type,
                         Object subType)
Description copied from interface: CoreHelper
Determine if a meta type is a subtype of another.

Specified by:
isSubType in interface CoreHelper
Parameters:
type - The parent metatype.
subType - The metatype to test for being a subtype.
Returns:
true is subType is a sub-type of type.
See Also:
CoreHelper.isSubType( java.lang.Object, java.lang.Object)

getAllSupertypes

public Collection getAllSupertypes(Object cls1)
Description copied from interface: CoreHelper
This method returns all Classifiers of which this class is a direct or indirect subtype.

Specified by:
getAllSupertypes in interface CoreHelper
Parameters:
cls1 - the class you want to have the parents for
Returns:
a collection of the parents, each of which is a GeneralizableElement.
See Also:
CoreHelper.getAllSupertypes(java.lang.Object)

getSupertypes

public Collection getSupertypes(Object generalizableElement)
Description copied from interface: CoreHelper
This method returns all Classifiers of which this class is a direct subtype.

Specified by:
getSupertypes in interface CoreHelper
Parameters:
generalizableElement - the class you want to have the parents for
Returns:
a collection of the parents, each of which is a GeneralizableElement.
See Also:
CoreHelper.getSupertypes(java.lang.Object)

getAssociateEnds

public Collection getAssociateEnds(Object classifier)
Description copied from interface: CoreHelper
This method returns all opposite AssociationEnds of a given Classifier.

Specified by:
getAssociateEnds in interface CoreHelper
Parameters:
classifier - the classifier you want to have the opposite association ends for
Returns:
a collection of the opposite associationends
See Also:
CoreHelper.getAssociateEnds(java.lang.Object)

getAssociateEndsInh

public Collection getAssociateEndsInh(Object classifier1)
Description copied from interface: CoreHelper
This method returns all opposite AssociationEnds of a given Classifier, including inherited.

Specified by:
getAssociateEndsInh in interface CoreHelper
Parameters:
classifier1 - the classifier you want to have the opposite association ends for
Returns:
a collection of the opposite associationends
See Also:
CoreHelper.getAssociateEndsInh(java.lang.Object)

removeFeature

public void removeFeature(Object cls,
                          Object feature)
Description copied from interface: CoreHelper
This method removes a feature from a classifier.

Specified by:
removeFeature in interface CoreHelper
Parameters:
cls - the classifier
feature - the feature to be removed
See Also:
CoreHelper.removeFeature( java.lang.Object, java.lang.Object)

getFeatureName

public String getFeatureName(Object o)
Description copied from interface: CoreHelper
This method returns the name of a feature.

Specified by:
getFeatureName in interface CoreHelper
Parameters:
o - is the feature
Returns:
name
See Also:
CoreHelper.getFeatureName(java.lang.Object)

isMethod

public boolean isMethod(Object o)
Description copied from interface: CoreHelper
This method returns if the object is a method.

Specified by:
isMethod in interface CoreHelper
Parameters:
o - object
Returns:
true if it's a method, false if not
See Also:
CoreHelper.isMethod(java.lang.Object)

isOperation

public boolean isOperation(Object o)
Description copied from interface: CoreHelper
This method returns if the object is an operation.

Specified by:
isOperation in interface CoreHelper
Parameters:
o - object
Returns:
true if it's an operation, false if not
See Also:
CoreHelper.isOperation(java.lang.Object)

getOperations

public Collection getOperations(Object classifier)
Description copied from interface: CoreHelper
This method returns all operations of a given Classifier.

Specified by:
getOperations in interface CoreHelper
Parameters:
classifier - the classifier you want to have the operations for
Returns:
a collection of the operations
See Also:
CoreHelper.getOperations(java.lang.Object)

setOperations

public void setOperations(Object classifier,
                          Collection operations)
Description copied from interface: CoreHelper
This method replaces all operations of the given classifier by the given collection of operations.

Specified by:
setOperations in interface CoreHelper
Parameters:
classifier - the given classifier
operations - the new operations
See Also:
CoreHelper.setOperations( java.lang.Object, java.util.Collection)

getAttributes

public Collection getAttributes(Object classifier)
Description copied from interface: CoreHelper
This method returns all attributes of a given Classifier.

Specified by:
getAttributes in interface CoreHelper
Parameters:
classifier - the classifier you want to have the attributes for
Returns:
a collection of the attributes
See Also:
CoreHelper.getAttributes(java.lang.Object)

setAttributes

public void setAttributes(Object classifier,
                          Collection attributes)
Description copied from interface: CoreHelper
This method replaces all attributes of the given classifier by the given collection of attributes.

Specified by:
setAttributes in interface CoreHelper
Parameters:
classifier - the classifier
attributes - the new attributes
See Also:
CoreHelper.setAttributes( java.lang.Object, java.util.Collection)

getAttributesInh

public Collection getAttributesInh(Object classifier)
Description copied from interface: CoreHelper
This method returns all attributes of a given Classifier, including inherited.

Specified by:
getAttributesInh in interface CoreHelper
Parameters:
classifier - the classifier you want to have the attributes for
Returns:
a collection of the attributes
See Also:
CoreHelper.getAttributesInh(java.lang.Object)

getOperationsInh

public Collection getOperationsInh(Object classifier)
Description copied from interface: CoreHelper
This method returns all operations of a given Classifier, including inherited.

Specified by:
getOperationsInh in interface CoreHelper
Parameters:
classifier - the classifier you want to have the operations for
Returns:
a collection of the operations
See Also:
CoreHelper.getOperationsInh(java.lang.Object)

getReturnParameter

public Object getReturnParameter(Object operation1)
Description copied from interface: CoreHelper
This method finds all parameters of the given operation which have the ParameterDirectionType RETURN. If it is only one, it is returned. In case there are no return parameters, null is returned. If there is more than one return paramter, first of them is returned, but a message is logged.

Specified by:
getReturnParameter in interface CoreHelper
Parameters:
operation1 - the operation you want to find the return parameter for.
Returns:
If this operation has only one paramter with Kind: RETURN, this is it, otherwise null
See Also:
CoreHelper.getReturnParameter(java.lang.Object)

getReturnParameters

public Collection getReturnParameters(Object operation)
Description copied from interface: CoreHelper
Returns all return parameters for an operation.

Specified by:
getReturnParameters in interface CoreHelper
Parameters:
operation - is the operation.
Returns:
Collection
See Also:
CoreHelper.getReturnParameters(java.lang.Object)

getSpecification

public Object getSpecification(Object object)
Description copied from interface: CoreHelper
Returns the operation that some method realized. Returns null if object isn't a method or, possibly, if the method isn't properly defined.

There is also a method in the Facade interface with the same name which may be what you want if you are looking for the specification of something other than a Method.

Specified by:
getSpecification in interface CoreHelper
Parameters:
object - the method you want the realized operation of.
Returns:
an operation, or null.
See Also:
CoreHelper.getSpecification(java.lang.Object)

getSpecifications

public Collection getSpecifications(Object classifier)
Description copied from interface: CoreHelper
Returns all Interfaces of which this class is a realization.

Duplicate of method by same name in Facade.

Specified by:
getSpecifications in interface CoreHelper
Parameters:
classifier - the class you want to have the interfaces for
Returns:
a collection of the Interfaces
See Also:
CoreHelper.getSpecifications(java.lang.Object)

getSubtypes

public Collection getSubtypes(Object cls)
Description copied from interface: CoreHelper
This method returns all Classifiers of which this class is a direct supertype.

Specified by:
getSubtypes in interface CoreHelper
Parameters:
cls - the class you want to have the children for
Returns:
a collection of the children, each of which is a GeneralizableElement.
See Also:
CoreHelper.getSubtypes(java.lang.Object)

getAllBehavioralFeatures

public Collection getAllBehavioralFeatures(Object element)
Description copied from interface: CoreHelper
Returns all behavioralfeatures found in this element and its children.

Specified by:
getAllBehavioralFeatures in interface CoreHelper
Parameters:
element - is the element
Returns:
Collection
See Also:
CoreHelper.getAllBehavioralFeatures( java.lang.Object)

getBehavioralFeatures

public Collection getBehavioralFeatures(Object clazz)
Description copied from interface: CoreHelper
Returns all behavioral features of some classifier.

Specified by:
getBehavioralFeatures in interface CoreHelper
Parameters:
clazz - The classifier
Returns:
the collection with all behavioral features of some classifier
See Also:
CoreHelper.getBehavioralFeatures( java.lang.Object)

getAllInterfaces

public Collection getAllInterfaces(Object ns)
Description copied from interface: CoreHelper
Returns all interfaces found in this namespace and in its children.

Specified by:
getAllInterfaces in interface CoreHelper
Parameters:
ns - the given namespace
Returns:
Collection with all interfaces found
See Also:
CoreHelper.getAllInterfaces(java.lang.Object)

getAllClasses

public Collection getAllClasses(Object ns)
Description copied from interface: CoreHelper
Returns all classes found in this namespace and in its children.

Specified by:
getAllClasses in interface CoreHelper
Parameters:
ns - is the namespace.
Returns:
Collection
See Also:
CoreHelper.getAllClasses(java.lang.Object)

getRealizedInterfaces

public Collection getRealizedInterfaces(Object cls)
Description copied from interface: CoreHelper
Return all interfaces the given class realizes.

Specified by:
getRealizedInterfaces in interface CoreHelper
Parameters:
cls - the classifier
Returns:
Collection
See Also:
CoreHelper.getRealizedInterfaces( java.lang.Object)

getExtendedClassifiers

public Collection getExtendedClassifiers(Object clazz)
Description copied from interface: CoreHelper
Returns all classes some generalizable element extends.

Specified by:
getExtendedClassifiers in interface CoreHelper
Parameters:
clazz - is the generalizable element
Returns:
Collection
See Also:
CoreHelper.getExtendedClassifiers( java.lang.Object)

getGeneralization

public Object getGeneralization(Object child,
                                Object parent)
Description copied from interface: CoreHelper
Gets the generalization between two generalizable elements. Returns null if there is none.

Specified by:
getGeneralization in interface CoreHelper
Parameters:
child - is the child generalizable element.
parent - is the parent generalizable element.
Returns:
MGeneralization
See Also:
CoreHelper.getGeneralization( java.lang.Object, java.lang.Object)

getBody

public String getBody(Object comment)
Description copied from interface: CoreHelper
Gets the body of a comment.

Specified by:
getBody in interface CoreHelper
Parameters:
comment - the comment
Returns:
the body of the comment
See Also:
CoreHelper.getBody(java.lang.Object)

getFlows

public Collection getFlows(Object source,
                           Object target)
Description copied from interface: CoreHelper
Returns all flows from some source modelelement to a target modelelement.

Specified by:
getFlows in interface CoreHelper
Parameters:
source - is the source model element.
target - is the target model element.
Returns:
Collection
See Also:
CoreHelper.getFlows( java.lang.Object, java.lang.Object)

getExtendingElements

public Collection getExtendingElements(Object clazz)
Description copied from interface: CoreHelper
Returns all elements that extend some class.

Specified by:
getExtendingElements in interface CoreHelper
Parameters:
clazz - is the class (a generalizable element)
Returns:
Collection
See Also:
CoreHelper.getExtendingElements(java.lang.Object)

getExtendingClassifiers

public Collection getExtendingClassifiers(Object clazz)
Description copied from interface: CoreHelper
Returns all classifiers that extend some classifier.

Specified by:
getExtendingClassifiers in interface CoreHelper
Parameters:
clazz - is the classifier.
Returns:
Collection
See Also:
CoreHelper.getExtendingClassifiers( java.lang.Object)

getAllComponents

public Collection getAllComponents(Object ns)
Description copied from interface: CoreHelper
Returns all components found in this namespace and in its children.

Specified by:
getAllComponents in interface CoreHelper
Parameters:
ns - is the namespace.
Returns:
Collection
See Also:
CoreHelper.getAllComponents(java.lang.Object)

getAllDataTypes

public Collection getAllDataTypes(Object ns)
Description copied from interface: CoreHelper
Returns all components found in this namespace and in its children.

Specified by:
getAllDataTypes in interface CoreHelper
Parameters:
ns - is the namespace
Returns:
Collection
See Also:
CoreHelper.getAllDataTypes(java.lang.Object)

getAllNodes

public Collection getAllNodes(Object ns)
Description copied from interface: CoreHelper
Returns all components found in this namespace and in its children.

Specified by:
getAllNodes in interface CoreHelper
Parameters:
ns - is the namespace
Returns:
Collection
See Also:
CoreHelper.getAllNodes(java.lang.Object)

getAssociatedClassifiers

public Collection getAssociatedClassifiers(Object classifier)
Description copied from interface: CoreHelper
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier).

Specified by:
getAssociatedClassifiers in interface CoreHelper
Parameters:
classifier - an MClassifier
Returns:
Collection
See Also:
CoreHelper.getAssociatedClassifiers( java.lang.Object)

getAssociations

public Collection getAssociations(Object from,
                                  Object to)
Description copied from interface: CoreHelper
Gets the associations between the classifiers from and to. Returns null if from or to is null or if there is no association between them.

Specified by:
getAssociations in interface CoreHelper
Parameters:
from - a classifier
to - a classifier
Returns:
a Collection with Associations
See Also:
CoreHelper.getAssociations( java.lang.Object, java.lang.Object)

getAllClassifiers

public Collection getAllClassifiers(Object namespace)
Description copied from interface: CoreHelper
Returns all classifiers found in this namespace and in its children.

Specified by:
getAllClassifiers in interface CoreHelper
Parameters:
namespace - the given namespace
Returns:
Collection the collection of all classifiers found in the namespace
See Also:
CoreHelper.getAllClassifiers(java.lang.Object)

getAssociations

public Collection getAssociations(Object classifier)
Description copied from interface: CoreHelper
Returns all associations for some classifier.

Specified by:
getAssociations in interface CoreHelper
Parameters:
classifier - the given classifier
Returns:
Collection all associations for the given classifier
See Also:
CoreHelper.getAssociations(java.lang.Object)

getAssociationEnd

public Object getAssociationEnd(Object type,
                                Object assoc)
Description copied from interface: CoreHelper
Returns the associationend between a classifier and an associaton.

Specified by:
getAssociationEnd in interface CoreHelper
Parameters:
type - is the classifier
assoc - is the association
Returns:
An AssociationEnd.
See Also:
CoreHelper.getAssociationEnd( java.lang.Object, java.lang.Object)

getAllContents

public Collection getAllContents(Object clazz)
Description copied from interface: CoreHelper
Returns the contents (owned elements) of this classifier and all its parents as specified in section 2.5.3.8 of the UML 1.3 spec.

Specified by:
getAllContents in interface CoreHelper
Parameters:
clazz - is the classifier
Returns:
Collection
See Also:
CoreHelper.getAllContents(java.lang.Object)

getAllAttributes

public Collection getAllAttributes(Object clazz)
Description copied from interface: CoreHelper
Returns all attributes of some classifier and of its parents.

Specified by:
getAllAttributes in interface CoreHelper
Parameters:
clazz - is the classifier
Returns:
Collection
See Also:
CoreHelper.getAllAttributes(java.lang.Object)

getAllVisibleElements

public Collection getAllVisibleElements(Object ns)
Description copied from interface: CoreHelper
Returns a Set containing all ModelElements visible outside of the Namespace. This is an "Additional Operation" from the UML spec.

Specified by:
getAllVisibleElements in interface CoreHelper
Parameters:
ns - the given namespace
Returns:
the collection with modelelements
See Also:
CoreHelper.getAllVisibleElements(java.lang.Object)

getSource

public Object getSource(Object relationship)
Description copied from interface: CoreHelper
Returns the source of a relation. The source of a relation is defined as the modelelement that propagates this relation. If there are more then 1 sources, only the first is returned. If there is no source, null is returned. Examples of sources include classifiers that are types to associationends, usecases that are bases to extend and include relations and so on. A source is allways the start from the arrow in the fig, the destination the end.

This method also works to get the source of a Link.

TODO: move this method to a generic ModelHelper

Specified by:
getSource in interface CoreHelper
Parameters:
relationship - is the relation
Returns:
Object
See Also:
CoreHelper.getSource(java.lang.Object)

getDestination

public Object getDestination(Object relationship)
Description copied from interface: CoreHelper
Returns the destination of a relation. The destination of a relation is defined as the modelelement that receives this relation. If there are more then 1 destinations, only the first is returned. If there is no destination, null is returned. Examples of sources include classifiers that are types to associationends, usecases that are bases to extend and include relations and so on. In the case of an association, the destination is defined as the type of the second element in the connections list.

This method also works for links.

TODO: move this method to a generic ModelHelper

Specified by:
getDestination in interface CoreHelper
Parameters:
relationship - is the relation
Returns:
object
See Also:
CoreHelper.getDestination(java.lang.Object)

getDependencies

public Collection getDependencies(Object supplierObj,
                                  Object clientObj)
Description copied from interface: CoreHelper
Returns the dependencies between some supplier modelelement and some client modelelement. Does not return the vica versa relationship (dependency 'from client to supplier').

Specified by:
getDependencies in interface CoreHelper
Parameters:
supplierObj - a MModelElement
clientObj - a MModelElement
Returns:
Collection
See Also:
CoreHelper.getDependencies( java.lang.Object, java.lang.Object)

getRelationships

public Collection getRelationships(Object source,
                                   Object dest)
Description copied from interface: CoreHelper
Returns all relationships between the source and dest modelelement and vica versa.

Specified by:
getRelationships in interface CoreHelper
Parameters:
source - is the source model element
dest - is the destination model element
Returns:
Collection
See Also:
CoreHelper.getRelationships( java.lang.Object, java.lang.Object)

isValidNamespace

public boolean isValidNamespace(Object mObj,
                                Object nsObj)
Description copied from interface: CoreHelper
Returns true if some modelelement may be owned by the given namespace.

Specified by:
isValidNamespace in interface CoreHelper
Parameters:
mObj - a MModelElement
nsObj - a MNamespace
Returns:
boolean
See Also:
CoreHelper.isValidNamespace( java.lang.Object, java.lang.Object)

getFirstSharedNamespace

public Object getFirstSharedNamespace(Object ns1,
                                      Object ns2)
Description copied from interface: CoreHelper
Gets the first namespace two namespaces share. That is: it returns the first namespace that owns the given namespaces itself or some owner of the given namespaces.

Specified by:
getFirstSharedNamespace in interface CoreHelper
Parameters:
ns1 - is the first name space
ns2 - is the second name space
Returns:
The Namespace.
See Also:
CoreHelper.getFirstSharedNamespace( java.lang.Object, java.lang.Object)

getAllPossibleNamespaces

public Collection getAllPossibleNamespaces(Object modelElement,
                                           Object model)
Description copied from interface: CoreHelper
Returns all possible namespaces that may be selected by some given modelelement. Which namespaces are allowed, is decided in the method isValidNamespace.

Specified by:
getAllPossibleNamespaces in interface CoreHelper
Parameters:
modelElement - is the model element
model - the model to search
Returns:
Collection
See Also:
CoreHelper.getAllPossibleNamespaces( java.lang.Object, java.lang.Object)

getChildren

public Collection getChildren(Object o)
Description copied from interface: CoreHelper
Returns all children from some given generalizableelement on all levels (the complete tree excluding the generalizable element itself).

Specified by:
getChildren in interface CoreHelper
Parameters:
o - is the generalizable element
Returns:
Collection
See Also:
CoreHelper.getChildren(java.lang.Object)

getAllRealizedInterfaces

public Collection getAllRealizedInterfaces(Object o)
Description copied from interface: CoreHelper
Returns all interfaces that are realized by the given class or by its superclasses. It's possible that interfaces occur twice in the collection returned. In that case there is a double reference to that interface.

Specified by:
getAllRealizedInterfaces in interface CoreHelper
Parameters:
o - is the given class
Returns:
Collection
See Also:
CoreHelper.getAllRealizedInterfaces( java.lang.Object)

hasCompositeEnd

public boolean hasCompositeEnd(Object association)
Specified by:
hasCompositeEnd in interface CoreHelper
Parameters:
association - the association to be investigated
Returns:
true if one of the association ends of the given association is of the composite kind
See Also:
CoreHelper.hasCompositeEnd(java.lang.Object)

equalsAggregationKind

public boolean equalsAggregationKind(Object associationEnd,
                                     String kindType)
Specified by:
equalsAggregationKind in interface CoreHelper
Parameters:
associationEnd - is the association end
kindType - the MAggregationKind as a string in lower case letter, eg: composite.
Returns:
true if the aggregation kinds are the same.
See Also:
CoreHelper.equalsAggregationKind( java.lang.Object, java.lang.String)

removeAnnotatedElement

public void removeAnnotatedElement(Object handle,
                                   Object me)
Description copied from interface: CoreHelper
Remove the given modelelement from a given comment.

Specified by:
removeAnnotatedElement in interface CoreHelper
Parameters:
handle - MComment
me - MModelElement
See Also:
CoreHelper.removeAnnotatedElement( java.lang.Object, java.lang.Object)

removeClientDependency

public void removeClientDependency(Object handle,
                                   Object dep)
Description copied from interface: CoreHelper
This method removes a dependency from a model element.

Specified by:
removeClientDependency in interface CoreHelper
Parameters:
handle - is the model element
dep - is the dependency
See Also:
CoreHelper.removeClientDependency( java.lang.Object, java.lang.Object)

removeConstraint

public void removeConstraint(Object handle,
                             Object cons)
Description copied from interface: CoreHelper
Remove the given constraint from a given ModelElement.

Specified by:
removeConstraint in interface CoreHelper
Parameters:
handle - ModelElement
cons - Constraint
See Also:
CoreHelper.removeConstraint( java.lang.Object, java.lang.Object)

removeOwnedElement

public void removeOwnedElement(Object handle,
                               Object value)
Description copied from interface: CoreHelper
Removes a owned model element from a namespace.

Specified by:
removeOwnedElement in interface CoreHelper
Parameters:
handle - is the name space
value - is the model element
See Also:
CoreHelper.removeOwnedElement( java.lang.Object, java.lang.Object)

removeParameter

public void removeParameter(Object handle,
                            Object parameter)
Description copied from interface: CoreHelper
This method removes a parameter from an operation.

Specified by:
removeParameter in interface CoreHelper
Parameters:
handle - The operation.
parameter - The parameter.
See Also:
CoreHelper.removeParameter( java.lang.Object, java.lang.Object)

removeSourceFlow

public void removeSourceFlow(Object handle,
                             Object flow)
Description copied from interface: CoreHelper
Remove a source flow from a model element.

Specified by:
removeSourceFlow in interface CoreHelper
Parameters:
handle - The model element.
flow - The flow.
See Also:
CoreHelper.removeSourceFlow( java.lang.Object, java.lang.Object)

removeSupplierDependency

public void removeSupplierDependency(Object supplier,
                                     Object dependency)
Description copied from interface: CoreHelper
Adds a supplier dependency to some modelelement.

Specified by:
removeSupplierDependency in interface CoreHelper
Parameters:
supplier - the supplier
dependency - the dependency
See Also:
CoreHelper.removeSupplierDependency( java.lang.Object, java.lang.Object)

removeStereotype

public void removeStereotype(Object modelElement,
                             Object stereotype)
Description copied from interface: CoreHelper
Removes a stereotype from some modelelement.

Specified by:
removeStereotype in interface CoreHelper
Parameters:
modelElement - model element
stereotype - stereotype
See Also:
CoreHelper.removeStereotype( java.lang.Object, java.lang.Object)

removeTaggedValue

public void removeTaggedValue(Object handle,
                              String name)
Description copied from interface: CoreHelper
Removes a named tagged value from a model element, ie subsequent calls to getTaggedValue will return null for name, at least until a tagged value with that name has been added again.

Specified by:
removeTaggedValue in interface CoreHelper
Parameters:
handle - the model element to remove the tagged value from
name - the name of the tagged value
See Also:
CoreHelper.removeTaggedValue( java.lang.Object, java.lang.String)

removeTargetFlow

public void removeTargetFlow(Object handle,
                             Object flow)
Description copied from interface: CoreHelper
Add a target flow to a model element.

Specified by:
removeTargetFlow in interface CoreHelper
Parameters:
handle - The model element.
flow - The flow to add.
See Also:
CoreHelper.removeTargetFlow( java.lang.Object, java.lang.Object)

addAnnotatedElement

public void addAnnotatedElement(Object comment,
                                Object annotatedElement)
Description copied from interface: CoreHelper
Adds an annotated element to a comment.

Specified by:
addAnnotatedElement in interface CoreHelper
Parameters:
comment - The comment to which the element is annotated
annotatedElement - The element to annotate
See Also:
CoreHelper.addAnnotatedElement( java.lang.Object, java.lang.Object)

addClient

public void addClient(Object handle,
                      Object element)
Description copied from interface: CoreHelper
Adds a client model element to some dependency.

Specified by:
addClient in interface CoreHelper
Parameters:
handle - dependency.
element - The model element.
See Also:
CoreHelper.addClient( java.lang.Object, java.lang.Object)

addClientDependency

public void addClientDependency(Object handle,
                                Object dependency)
Description copied from interface: CoreHelper
Adds a client dependency to some modelelement.

Specified by:
addClientDependency in interface CoreHelper
Parameters:
handle - the modelelement
dependency - the dependency
See Also:
CoreHelper.addClientDependency( java.lang.Object, java.lang.Object)

addComment

public void addComment(Object element,
                       Object comment)
Description copied from interface: CoreHelper
Add a new comment to a model element.

Specified by:
addComment in interface CoreHelper
Parameters:
element - the element to which the comment is to be added
comment - the comment for the model element
See Also:
CoreHelper.addComment( java.lang.Object, java.lang.Object)

addConnection

public void addConnection(Object handle,
                          Object connection)
Description copied from interface: CoreHelper
Add an End to a connection.

Specified by:
addConnection in interface CoreHelper
Parameters:
handle - Association or Link
connection - AssociationEnd or LinkEnd
See Also:
CoreHelper.addConnection( java.lang.Object, java.lang.Object)

addConstraint

public void addConstraint(Object handle,
                          Object mc)
Description copied from interface: CoreHelper
Adds a constraint to some model element.

Specified by:
addConstraint in interface CoreHelper
Parameters:
handle - model element
mc - constraint
See Also:
CoreHelper.addConstraint( java.lang.Object, java.lang.Object)

addDeploymentLocation

public void addDeploymentLocation(Object handle,
                                  Object node)
Specified by:
addDeploymentLocation in interface CoreHelper
Parameters:
handle - Component
node - Node
See Also:
CoreHelper.addDeploymentLocation( java.lang.Object, java.lang.Object)

addFeature

public void addFeature(Object handle,
                       int index,
                       Object f)
Description copied from interface: CoreHelper
Adds a feature to some classifier.

Specified by:
addFeature in interface CoreHelper
Parameters:
handle - classifier
index - position
f - feature
See Also:
CoreHelper.addFeature( java.lang.Object, int, java.lang.Object)

addFeature

public void addFeature(Object handle,
                       Object f)
Description copied from interface: CoreHelper
Adds a feature to some classifier.

Specified by:
addFeature in interface CoreHelper
Parameters:
handle - classifier
f - feature
See Also:
CoreHelper.addFeature( java.lang.Object, java.lang.Object)

addLink

public void addLink(Object handle,
                    Object link)
Description copied from interface: CoreHelper
Add the given Link to the given Link or Association.

Specified by:
addLink in interface CoreHelper
Parameters:
handle - the Link or Association
link - Link
See Also:
CoreHelper.addLink( java.lang.Object, java.lang.Object)

addMethod

public void addMethod(Object handle,
                      Object m)
Description copied from interface: CoreHelper
Adds a method to some operation and copies the op's attributes to the method.

Specified by:
addMethod in interface CoreHelper
Parameters:
handle - is the operation
m - is the method
See Also:
CoreHelper.addMethod( java.lang.Object, java.lang.Object)

addOwnedElement

public void addOwnedElement(Object handle,
                            Object me)
Description copied from interface: CoreHelper
Adds a model element to some namespace.

Specified by:
addOwnedElement in interface CoreHelper
Parameters:
handle - namespace
me - model element
See Also:
CoreHelper.addOwnedElement( java.lang.Object, java.lang.Object)

addParameter

public void addParameter(Object handle,
                         int index,
                         Object parameter)
Description copied from interface: CoreHelper
Add a Parameter to the given object at given location.

Specified by:
addParameter in interface CoreHelper
Parameters:
handle - The object that will get the Parameter: MEvent, MBehavioralFeature.
index - the location
parameter - Object that will be added
See Also:
CoreHelper.addParameter( java.lang.Object, int, java.lang.Object)

addParameter

public void addParameter(Object handle,
                         Object parameter)
Description copied from interface: CoreHelper
Add a Parameter to the given object.

Specified by:
addParameter in interface CoreHelper
Parameters:
handle - The object that will get the Parameter: MObjectFlowState, MEvent, MBehavioralFeature, MClassifier.
parameter - Object that will be added
See Also:
CoreHelper.addParameter( java.lang.Object, java.lang.Object)

addRaisedSignal

public void addRaisedSignal(Object handle,
                            Object sig)
Description copied from interface: CoreHelper
Add a raised Signal to a Message or Operation.

Specified by:
addRaisedSignal in interface CoreHelper
Parameters:
handle - the Message or Operation
sig - the Signal that is raised
See Also:
CoreHelper.addRaisedSignal( java.lang.Object, java.lang.Object)

addSourceFlow

public void addSourceFlow(Object handle,
                          Object flow)
Description copied from interface: CoreHelper
Add a source flow to a model element.

Specified by:
addSourceFlow in interface CoreHelper
Parameters:
handle - The model element.
flow - The flow.
See Also:
CoreHelper.addSourceFlow( java.lang.Object, java.lang.Object)

addAllStereotypes

public void addAllStereotypes(Object modelElement,
                              Collection stereotypes)
Description copied from interface: CoreHelper
Adds a collection of stereotype to some modelelement.

Specified by:
addAllStereotypes in interface CoreHelper
Parameters:
modelElement - model element
stereotypes - stereotype
See Also:
CoreHelper.addAllStereotypes(java.lang.Object, java.util.Collection)

addStereotype

public void addStereotype(Object modelElement,
                          Object stereotype)
Description copied from interface: CoreHelper
Adds a stereotype to some modelelement.

Specified by:
addStereotype in interface CoreHelper
Parameters:
modelElement - model element
stereotype - stereotype
See Also:
CoreHelper.addStereotype( java.lang.Object, java.lang.Object)

addSupplier

public void addSupplier(Object handle,
                        Object element)
Description copied from interface: CoreHelper
Adds a supplier classifier to some abstraction.

Specified by:
addSupplier in interface CoreHelper
Parameters:
handle - abstraction
element - supplier model element
See Also:
CoreHelper.addSupplier( java.lang.Object, java.lang.Object)

addSupplierDependency

public void addSupplierDependency(Object supplier,
                                  Object dependency)
Description copied from interface: CoreHelper
Adds a supplier dependency to some modelelement.

Specified by:
addSupplierDependency in interface CoreHelper
Parameters:
supplier - the supplier
dependency - the dependency
See Also:
CoreHelper.addSupplierDependency( java.lang.Object, java.lang.Object)

addTaggedValue

public void addTaggedValue(Object handle,
                           Object taggedValue)
Description copied from interface: CoreHelper
Adds a TaggedValue to a ModelElement.

Specified by:
addTaggedValue in interface CoreHelper
Parameters:
handle - ModelElement
taggedValue - TaggedValue
See Also:
CoreHelper.addTaggedValue( java.lang.Object, java.lang.Object)

addTargetFlow

public void addTargetFlow(Object handle,
                          Object flow)
Description copied from interface: CoreHelper
Add a target flow to a model element.

Specified by:
addTargetFlow in interface CoreHelper
Parameters:
handle - The model element.
flow - The flow to add.
See Also:
CoreHelper.addTargetFlow( java.lang.Object, java.lang.Object)

setAnnotatedElements

public void setAnnotatedElements(Object handle,
                                 Collection elems)
Description copied from interface: CoreHelper
Sets the list of annotated elements of the given comment.

Specified by:
setAnnotatedElements in interface CoreHelper
Parameters:
handle - the given comment
elems - the list of annotated modelelements
See Also:
CoreHelper.setAnnotatedElements( java.lang.Object, java.util.Collection)

setAssociation

public void setAssociation(Object handle,
                           Object association)
Description copied from interface: CoreHelper
Sets the association of some model element.

Specified by:
setAssociation in interface CoreHelper
Parameters:
handle - the model element to set association
association - is the association
See Also:
CoreHelper.setAssociation( java.lang.Object, java.lang.Object)

setRaisedSignals

public void setRaisedSignals(Object handle,
                             Collection raisedSignals)
Description copied from interface: CoreHelper
Sets the raised signals of some behavioural feature.

Specified by:
setRaisedSignals in interface CoreHelper
Parameters:
handle - the behavioural feature
raisedSignals - the raised signals
See Also:
CoreHelper.setRaisedSignals( java.lang.Object, java.util.Collection)

setBody

public void setBody(Object handle,
                    Object expr)
Description copied from interface: CoreHelper
Sets a body of a given Method or Constraint.

Specified by:
setBody in interface CoreHelper
Parameters:
handle - The method or constraint.
expr - The body of the expression. If it is a method, this must be a ProcedureExpression. If it is a Constraint, this must be a BooleanExpression.
See Also:
CoreHelper.setBody( java.lang.Object, java.lang.Object)

setChild

public void setChild(Object handle,
                     Object child)
Description copied from interface: CoreHelper
Set the child for a generalization.

Specified by:
setChild in interface CoreHelper
Parameters:
handle - Generalization
child - GeneralizableElement
See Also:
CoreHelper.setChild( java.lang.Object, java.lang.Object)

setConnections

public void setConnections(Object handle,
                           Collection elems)
Description copied from interface: CoreHelper
Sets the list of connections of the given association or link.

Specified by:
setConnections in interface CoreHelper
Parameters:
handle - the given association or link
elems - the list of association-ends or link-ends
See Also:
CoreHelper.setConnections( java.lang.Object, java.util.Collection)

setDefaultValue

public void setDefaultValue(Object handle,
                            Object expr)
Description copied from interface: CoreHelper
Sets a default value of some parameter.

Specified by:
setDefaultValue in interface CoreHelper
Parameters:
handle - is the parameter
expr - is the expression
See Also:
CoreHelper.setDefaultValue( java.lang.Object, java.lang.Object)

setDiscriminator

public void setDiscriminator(Object handle,
                             String discriminator)
Specified by:
setDiscriminator in interface CoreHelper
Parameters:
handle - a generalization
discriminator - the discriminator to set
See Also:
CoreHelper.setDiscriminator( java.lang.Object, java.lang.String)

setFeature

public void setFeature(Object elem,
                       int i,
                       Object feature)
Description copied from interface: CoreHelper
Set the feature at the given position.

Specified by:
setFeature in interface CoreHelper
Parameters:
elem - The classifier to set.
i - The position. Start with 0.
feature - The feature to set.
See Also:
CoreHelper.setFeature( java.lang.Object, int, java.lang.Object)

setFeatures

public void setFeatures(Object handle,
                        Collection features)
Description copied from interface: CoreHelper
Sets the features of some model element.

Specified by:
setFeatures in interface CoreHelper
Parameters:
handle - the model element to set features to
features - the list of features
See Also:
CoreHelper.setFeatures( java.lang.Object, java.util.Collection)

setImplementationLocation

public void setImplementationLocation(Object handle,
                                      Object component)
Description copied from interface: CoreHelper
Set the ImplementationLocation of the given ElementResidence to the given Component.

Specified by:
setImplementationLocation in interface CoreHelper
Parameters:
handle - the ElementResidence
component - the Component
See Also:
CoreHelper.setImplementationLocation( java.lang.Object, java.lang.Object)

setContainer

public void setContainer(Object handle,
                         Object component)
Description copied from interface: CoreHelper
Set the Container of the given ElementResidence to the given Component.

Specified by:
setContainer in interface CoreHelper
Parameters:
handle - the ElementResidence
component - the Component
See Also:
CoreHelper.setContainer( java.lang.Object, java.lang.Object)

setInitialValue

public void setInitialValue(Object at,
                            Object expr)
Description copied from interface: CoreHelper
Sets an initial value.

Specified by:
setInitialValue in interface CoreHelper
Parameters:
at - attribute that we set the initial value of
expr - that is the value to set. Can be null.
See Also:
CoreHelper.setInitialValue( java.lang.Object, java.lang.Object)

setModelElementContainer

public void setModelElementContainer(Object handle,
                                     Object container)
Description copied from interface: CoreHelper
Sets the container that owns the handle.

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

Use a more specific method such as setOwner, setContainer, etc if at all possible, rather than this method.

Specified by:
setModelElementContainer in interface CoreHelper
Parameters:
handle - The modelelement that must be added to the container
container - The owning modelelement
See Also:
CoreHelper.setModelElementContainer( java.lang.Object, java.lang.Object)

setNamespace

public void setNamespace(Object handle,
                         Object ns)
Description copied from interface: CoreHelper
Sets a namespace of some modelelement.

Specified by:
setNamespace in interface CoreHelper
Parameters:
handle - is the model element
ns - is the namespace. Can be null.
See Also:
CoreHelper.setNamespace( java.lang.Object, java.lang.Object)

setOwner

public void setOwner(Object handle,
                     Object owner)
Description copied from interface: CoreHelper
Set the owner of a Feature.

Specified by:
setOwner in interface CoreHelper
Parameters:
handle - Feature
owner - Classifier or null
See Also:
CoreHelper.setOwner( java.lang.Object, java.lang.Object)

setOwnerScope

public void setOwnerScope(Object handle,
                          Object os)
Specified by:
setOwnerScope in interface CoreHelper
Parameters:
handle - Feature
os - ScopeKind
See Also:
CoreHelper.setOwnerScope( java.lang.Object, java.lang.Object)

setParameters

public void setParameters(Object handle,
                          Collection parameters)
Description copied from interface: CoreHelper
Sets the parameters of a classifier, event, objectflowstate or behavioralfeature.

Specified by:
setParameters in interface CoreHelper
Parameters:
handle - the classifier, event, objectflowstate or behavioralfeature
parameters - is a Collection of parameters
See Also:
CoreHelper.setParameters( java.lang.Object, java.util.Collection)

setParent

public void setParent(Object handle,
                      Object parent)
Description copied from interface: CoreHelper
Sets the parent of a generalization.

Specified by:
setParent in interface CoreHelper
Parameters:
handle - generalization
parent - generalizable element (parent)
See Also:
CoreHelper.setParent( java.lang.Object, java.lang.Object)

setQualifiers

public void setQualifiers(Object handle,
                          Collection elems)
Description copied from interface: CoreHelper
Sets the qualified attributes of an association end.

Specified by:
setQualifiers in interface CoreHelper
Parameters:
handle - the association end
elems - is a Collection of qualifiers
See Also:
CoreHelper.setQualifiers( java.lang.Object, java.util.Collection)

setResident

public void setResident(Object handle,
                        Object resident)
Specified by:
setResident in interface CoreHelper
Parameters:
handle - ElementResidence
resident - ModelElement or null
See Also:
CoreHelper.setResident( java.lang.Object, java.lang.Object)

setResidents

public void setResidents(Object handle,
                         Collection residents)
Description copied from interface: CoreHelper
Sets the residents of some model element.

Specified by:
setResidents in interface CoreHelper
Parameters:
handle - the model element
residents - collection
See Also:
CoreHelper.setResidents( java.lang.Object, java.util.Collection)

setSources

public void setSources(Object handle,
                       Collection specifications)
Specified by:
setSources in interface CoreHelper
Parameters:
handle - Flow
specifications - the collection of ModelEvents (sourceFlow)
See Also:
CoreHelper.setSources( java.lang.Object, java.util.Collection)

setSpecifications

public void setSpecifications(Object handle,
                              Collection specifications)
Description copied from interface: CoreHelper
Sets the specifications of some association end.

Specified by:
setSpecifications in interface CoreHelper
Parameters:
handle - the association end
specifications - collection
See Also:
CoreHelper.setSpecifications( java.lang.Object, java.util.Collection)

setTaggedValue

public void setTaggedValue(Object handle,
                           String tag,
                           String value)
Description copied from interface: CoreHelper
Sets a tagged value of some modelelement.

Specified by:
setTaggedValue in interface CoreHelper
Parameters:
handle - is the model element
tag - is the tag name (a string)
value - is the value
See Also:
CoreHelper.setTaggedValue( java.lang.Object, java.lang.String, java.lang.String)

setTaggedValues

public void setTaggedValues(Object handle,
                            Collection taggedValues)
Description copied from interface: CoreHelper
Set the TaggedValues of a ModelElement.

Specified by:
setTaggedValues in interface CoreHelper
Parameters:
handle - ModelElement
taggedValues - Collection of TaggedValues
See Also:
CoreHelper.setTaggedValues( java.lang.Object, java.util.Collection)

setType

public void setType(Object handle,
                    Object type)
Description copied from interface: CoreHelper
Sets the type of some parameter.

Specified by:
setType in interface CoreHelper
Parameters:
handle - is the model element
type - is the type (a classifier)
See Also:
CoreHelper.setType( java.lang.Object, java.lang.Object)

setUUID

public void setUUID(Object handle,
                    String uuid)
Description copied from interface: CoreHelper
Set the UUID of this element.

Specified by:
setUUID in interface CoreHelper
Parameters:
handle - base element (MBase type)
uuid - is the UUID
See Also:
CoreHelper.setUUID( java.lang.Object, java.lang.String)

removeDeploymentLocation

public void removeDeploymentLocation(Object handle,
                                     Object node)
Description copied from interface: CoreHelper
Remove a deployment location.

Specified by:
removeDeploymentLocation in interface CoreHelper
Parameters:
handle - Component from which to remove deploymentLocation
node - Node to be removed
See Also:
CoreHelper.removeDeploymentLocation( java.lang.Object, java.lang.Object)

setAbstract

public void setAbstract(Object handle,
                        boolean flag)
Description copied from interface: CoreHelper
Sets if of some model element is abstract.

Specified by:
setAbstract in interface CoreHelper
Parameters:
handle - is the classifier
flag - is true if it should be abstract
See Also:
CoreHelper.setAbstract(java.lang.Object, boolean)

setActive

public void setActive(Object handle,
                      boolean active)
Description copied from interface: CoreHelper
Makes a Class active.

Specified by:
setActive in interface CoreHelper
Parameters:
handle - Class
active - boolean
See Also:
CoreHelper.setActive(java.lang.Object, boolean)

setAggregation

public void setAggregation(Object handle,
                           Object aggregationKind)
Description copied from interface: CoreHelper
Sets the aggregation of some model element.

Specified by:
setAggregation in interface CoreHelper
Parameters:
handle - the model element to set aggregation
aggregationKind - the aggregation kind
See Also:
CoreHelper.setAggregation( java.lang.Object, java.lang.Object)

setLeaf

public void setLeaf(Object handle,
                    boolean flag)
Description copied from interface: CoreHelper
Sets if some model element is a leaf.

Specified by:
setLeaf in interface CoreHelper
Parameters:
handle - model element
flag - is true if it is a leaf.
See Also:
CoreHelper.setLeaf(java.lang.Object, boolean)

setChangeability

public void setChangeability(Object handle,
                             Object ck)
Description copied from interface: CoreHelper
Set the Changeability of a StructuralFeature or AssociationEnd.

Specified by:
setChangeability in interface CoreHelper
Parameters:
handle - StructuralFeature or AssociationEnd
ck - ChangeableKind
See Also:
CoreHelper.setChangeability( java.lang.Object, java.lang.Object)

setChangeable

public void setChangeable(Object handle,
                          boolean flag)
Description copied from interface: CoreHelper
Set the changeability of some feature.

Specified by:
setChangeable in interface CoreHelper
Parameters:
handle - is the feature
flag - is the changeability flag
See Also:
CoreHelper.setChangeable( java.lang.Object, boolean)

setConcurrency

public void setConcurrency(Object handle,
                           Object concurrencyKind)
Description copied from interface: CoreHelper
Set the concurrency of some operation.

Specified by:
setConcurrency in interface CoreHelper
Parameters:
handle - is the operation
concurrencyKind - is the concurrency
See Also:
CoreHelper.setConcurrency( java.lang.Object, java.lang.Object)

setKind

public void setKind(Object handle,
                    Object kind)
Description copied from interface: CoreHelper
Set some parameters kind.

Specified by:
setKind in interface CoreHelper
Parameters:
handle - is the parameter
kind - is the directionkind
See Also:
CoreHelper.setKind( java.lang.Object, java.lang.Object)

setKindToIn

public void setKindToIn(Object handle)
Description copied from interface: CoreHelper
Set some parameters kind to 'in'.

Specified by:
setKindToIn in interface CoreHelper
Parameters:
handle - is the parameter
See Also:
CoreHelper.setKindToIn(java.lang.Object)

setKindToInOut

public void setKindToInOut(Object handle)
Description copied from interface: CoreHelper
Set some parameters kind to 'in/out'.

Specified by:
setKindToInOut in interface CoreHelper
Parameters:
handle - is the parameter
See Also:
CoreHelper.setKindToInOut(java.lang.Object)

setKindToOut

public void setKindToOut(Object handle)
Description copied from interface: CoreHelper
Set some parameters kind to 'out'.

Specified by:
setKindToOut in interface CoreHelper
Parameters:
handle - is the parameter
See Also:
CoreHelper.setKindToOut(java.lang.Object)

setKindToReturn

public void setKindToReturn(Object handle)
Description copied from interface: CoreHelper
Set some parameters kind to 'return'.

Specified by:
setKindToReturn in interface CoreHelper
Parameters:
handle - is the parameter
See Also:
CoreHelper.setKindToReturn(java.lang.Object)

setMultiplicity

public void setMultiplicity(Object handle,
                            Object arg)
Description copied from interface: CoreHelper
Sets a multiplicity of some model element.

Specified by:
setMultiplicity in interface CoreHelper
Parameters:
handle - model element
arg - multiplicity as string OR multiplicity object
See Also:
CoreHelper.setMultiplicity( java.lang.Object, java.lang.Object)

setName

public void setName(Object handle,
                    String name)
Description copied from interface: CoreHelper
Sets a name of some modelelement.

Specified by:
setName in interface CoreHelper
Parameters:
handle - is the model element
name - to set
See Also:
CoreHelper.setName( java.lang.Object, java.lang.String)

setBody

public void setBody(Object handle,
                    String body)
Description copied from interface: CoreHelper
Sets the body of a comment.

NOTE: For UML 1.3, this actually set Comment.name, but for UML 1.4 it sets Comment.body. This is a behavior change in the API.

Specified by:
setBody in interface CoreHelper
Parameters:
handle - the Comment element
body - the string
See Also:
CoreHelper.setBody( java.lang.Object, java.lang.String)

setNavigable

public void setNavigable(Object handle,
                         boolean flag)
Description copied from interface: CoreHelper
Sets the navigability of some association end.

Specified by:
setNavigable in interface CoreHelper
Parameters:
handle - is the association end
flag - is the navigability flag
See Also:
CoreHelper.setNavigable(java.lang.Object, boolean)

setOrdering

public void setOrdering(Object handle,
                        Object ok)
Description copied from interface: CoreHelper
Set the OrderingKind of a given AssociationEnd.

Specified by:
setOrdering in interface CoreHelper
Parameters:
handle - AssociationEnd
ok - OrderingKind
See Also:
CoreHelper.setOrdering( java.lang.Object, java.lang.Object)

setPowertype

public void setPowertype(Object handle,
                         Object pt)
Description copied from interface: CoreHelper
Set the PowerType of a Generalization.

Specified by:
setPowertype in interface CoreHelper
Parameters:
handle - Generalization
pt - Classifier
See Also:
CoreHelper.setPowertype( java.lang.Object, java.lang.Object)

setQuery

public void setQuery(Object handle,
                     boolean flag)
Description copied from interface: CoreHelper
Sets the query flag of a behavioral feature.

Specified by:
setQuery in interface CoreHelper
Parameters:
handle - is the behavioral feature
flag - is the query flag
See Also:
CoreHelper.setQuery(java.lang.Object, boolean)

setRoot

public void setRoot(Object handle,
                    boolean flag)
Description copied from interface: CoreHelper
Sets if some model element is a root.

Specified by:
setRoot in interface CoreHelper
Parameters:
handle - model element
flag - is true if it is a root
See Also:
CoreHelper.setRoot(java.lang.Object, boolean)

setSpecification

public void setSpecification(Object handle,
                             boolean specification)
Description copied from interface: CoreHelper
Set the Specification flag for a ModelElement.

Specified by:
setSpecification in interface CoreHelper
Parameters:
handle - ModelElement
specification - boolean
See Also:
CoreHelper.setSpecification( java.lang.Object, boolean)

setTargetScope

public void setTargetScope(Object handle,
                           Object scopeKind)
Description copied from interface: CoreHelper
Set the target scope of some association end or structural feature.

Specified by:
setTargetScope in interface CoreHelper
Parameters:
handle - the model element
scopeKind - the target scope
See Also:
CoreHelper.setTargetScope( java.lang.Object, java.lang.Object)

setVisibility

public void setVisibility(Object handle,
                          Object visibility)
Description copied from interface: CoreHelper
Set the visibility of some modelelement.

Specified by:
setVisibility in interface CoreHelper
Parameters:
handle - element
visibility - is the visibility
See Also:
CoreHelper.setVisibility( java.lang.Object, java.lang.Object)

removeConnection

public void removeConnection(Object handle,
                             Object connection)
Description copied from interface: CoreHelper
Remove a connection between an Association & AssociationEnd or between a Link & LinkEnd.

Specified by:
removeConnection in interface CoreHelper
Parameters:
handle - Association or Link
connection - AssociationEnd or LinkEnd
See Also:
CoreHelper.removeConnection( java.lang.Object, java.lang.Object)

addElementResidence

public void addElementResidence(Object handle,
                                Object residence)
Description copied from interface: CoreHelper
Add an ElementResidence.

Specified by:
addElementResidence in interface CoreHelper
Parameters:
handle - ModelElement
residence - ElementResidence to add
See Also:
CoreHelper.addElementResidence( java.lang.Object, java.lang.Object)

removeElementResidence

public void removeElementResidence(Object handle,
                                   Object residence)
Description copied from interface: CoreHelper
Remove an ElementResidence.

Specified by:
removeElementResidence in interface CoreHelper
Parameters:
handle - ModelElement
residence - ElementResidence to remove
See Also:
CoreHelper.removeElementResidence( java.lang.Object, java.lang.Object)

setEnumerationLiterals

public void setEnumerationLiterals(Object enumeration,
                                   List literals)
Description copied from interface: CoreHelper
Set the (ordered) list of literals of an Enumeration.

Specified by:
setEnumerationLiterals in interface CoreHelper
Parameters:
enumeration - Enumeration to add EnumerationLiterals too
literals - A list of EnumerationLiterals
See Also:
CoreHelper.setEnumerationLiterals(java.lang.Object, java.util.List)

getAllMetatypeNames

public Collection getAllMetatypeNames()
Description copied from interface: CoreHelper
Returns names of all metatypes in metamodel TODO: This method rightly belongs in a separate interface dealing with instances of MOF types as opposed to UML types like all the rest of the methods here do.

Specified by:
getAllMetatypeNames in interface CoreHelper
Returns:
Collection containing Strings with names of all metatypes
See Also:
CoreHelper.getAllMetatypeNames()


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook