|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface for the helper for Core.
Created from the old CoreHelper.
| Method Summary | |
void |
addAllStereotypes(Object modelElement,
Collection stereos)
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 stereo)
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 handle)
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 aclassifier)
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 oclassifier)
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). |
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)
Deprecated. before 0.21.3 by tfmorris - use Facade.getName(Object) |
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 achild,
Object aparent)
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)
Deprecated. by tfmorris before 0.21.1 - use getReturnParameters |
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 ogeneralizableelement)
This method returns all Classifiers of which this class is a direct subtype. |
boolean |
hasCompositeEnd(Object association)
|
boolean |
isMethod(Object o)
Deprecated. by Bob in 0.21.1. There is a duplicate method Model.getFacade().isAMethod(Object) |
boolean |
isOperation(Object o)
Deprecated. by Bob in 0.21.1. There is a duplicate method Model.getFacade().isAOperation(Object) |
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 handle,
Object stereo)
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 impl)
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)
Deprecated. by tfmorris before 0.20 - use setContainer |
void |
setInitialValue(Object at,
Object expr)
Sets an initial value. |
void |
setKind(Object handle,
Object kind)
Set some parameters kind. |
void |
setKindToIn(Object handle)
Deprecated. before 0.19.3 by bobtarling - use setKind(Object, Object) |
void |
setKindToInOut(Object handle)
Deprecated. before 0.19.3 by bobtarling - use setKind(Object, Object) |
void |
setKindToOut(Object handle)
Deprecated. before 0.19.3 by bobtarling - use setKind(Object, Object) |
void |
setKindToReturn(Object handle)
Deprecated. before 0.19.3 by bobtarling - use setKind(Object, Object) |
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 |
setSpecification(Object method,
Object specification)
Set the specification (i.e. |
void |
setSpecification(Object operation,
String specification)
Set the specification of an Operation. |
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)
Deprecated. by tfm for 0.20 - getUUID is guaranteed to return a value but it is not settable. If a settable ID is required, use a TaggedValued or other private mechanism. |
void |
setVisibility(Object handle,
Object visibility)
Set the visibility of some modelelement. |
| Method Detail |
public boolean isSubType(Object type,
Object subType)
type - The parent metatype.subType - The metatype to test for being a subtype.
public Collection getAllSupertypes(Object cls1)
cls1 - the class you want to have the parents for
public Collection getSupertypes(Object ogeneralizableelement)
ogeneralizableelement - the class you want to have the parents for
public Collection getAssociateEnds(Object classifier)
classifier - the classifier you want to have the opposite
association ends for
public Collection getAssociateEndsInh(Object classifier1)
classifier1 - the classifier you want to have the opposite
association ends for
public void removeFeature(Object cls,
Object feature)
cls - the classifierfeature - the feature to be removedpublic String getFeatureName(Object o)
Facade.getName(Object)
o - is the feature
public boolean isMethod(Object o)
o - object
Facade.isAMethod(Object)public boolean isOperation(Object o)
o - object
Facade.isAOperation(Object)public Collection getOperations(Object classifier)
classifier - the classifier you want to have the operations for
public void setOperations(Object classifier,
Collection operations)
classifier - the given classifieroperations - the new operationspublic Collection getAttributes(Object classifier)
classifier - the classifier you want to have the attributes for
public void setAttributes(Object classifier,
Collection attributes)
classifier - the classifierattributes - the new attributespublic Collection getAttributesInh(Object classifier)
classifier - the classifier you want to have the attributes for
public Collection getOperationsInh(Object classifier)
classifier - the classifier you want to have the operations for
public Object getReturnParameter(Object operation1)
operation1 - the operation you want to find the return
parameter for.
getReturnParameters(Object)public Collection getReturnParameters(Object operation)
operation - is the operation.
public Object getSpecification(Object object)
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.
object - the method you want the realized operation of.
Facade.getSpecification(Object)public Collection getSpecifications(Object classifier)
Duplicate of method by same name in Facade.
classifier - the class you want to have the interfaces for
Facade.getSpecifications(Object)public Collection getSubtypes(Object cls)
cls - the class you want to have the children for
public Collection getAllBehavioralFeatures(Object element)
element - is the element
public Collection getBehavioralFeatures(Object clazz)
clazz - The classifier
public Collection getAllInterfaces(Object ns)
ns - the given namespace
public Collection getAllClasses(Object ns)
ns - is the namespace.
public Collection getRealizedInterfaces(Object cls)
cls - the classifier
public Collection getExtendedClassifiers(Object clazz)
clazz - is the generalizable element
public Object getGeneralization(Object achild,
Object aparent)
achild - is the child generalizable element.aparent - is the parent generalizable element.
public String getBody(Object comment)
comment - the comment
public Collection getFlows(Object source,
Object target)
source - is the source model element.target - is the target model element.
public Collection getExtendingElements(Object clazz)
clazz - is the class (a generalizable element)
public Collection getExtendingClassifiers(Object clazz)
clazz - is the classifier.
public Collection getAllComponents(Object ns)
ns - is the namespace.
public Collection getAllDataTypes(Object ns)
ns - is the namespace
public Collection getAllNodes(Object ns)
ns - is the namespace
public Collection getAssociatedClassifiers(Object aclassifier)
aclassifier - an MClassifier
public Collection getAssociations(Object from,
Object to)
from - a classifierto - a classifier
public Collection getAllClassifiers(Object namespace)
namespace - the given namespace
public Collection getAssociations(Object oclassifier)
oclassifier - the given classifier
public Object getAssociationEnd(Object type,
Object assoc)
type - is the classifierassoc - is the association
public Collection getAllContents(Object clazz)
clazz - is the classifier
public Collection getAllAttributes(Object clazz)
clazz - is the classifier
public Collection getAllVisibleElements(Object ns)
ns - the given namespace
public Object getSource(Object relationship)
This method also works to get the source of a Link.
TODO: move this method to a generic ModelHelper
relationship - is the relation
public Object getDestination(Object relationship)
This method also works for links.
TODO: move this method to a generic ModelHelper
relationship - is the relation
public Collection getDependencies(Object supplierObj,
Object clientObj)
supplierObj - a MModelElementclientObj - a MModelElement
public Collection getRelationships(Object source,
Object dest)
source - is the source model elementdest - is the destination model element
public boolean isValidNamespace(Object mObj,
Object nsObj)
mObj - a MModelElementnsObj - a MNamespace
public Object getFirstSharedNamespace(Object ns1,
Object ns2)
ns1 - is the first name spacens2 - is the second name space
public Collection getAllPossibleNamespaces(Object modelElement,
Object model)
modelElement - is the model elementmodel - the model to search
public Collection getChildren(Object o)
o - is the generalizable element
IllegalStateException - if there is a circular reference.public Collection getAllRealizedInterfaces(Object o)
o - is the given class
public boolean hasCompositeEnd(Object association)
association - the association to be investigated
public boolean equalsAggregationKind(Object associationEnd,
String kindType)
associationEnd - is the association endkindType - the MAggregationKind as a string in lower case letter,
eg: composite.
public void removeAnnotatedElement(Object handle,
Object me)
handle - MCommentme - MModelElement
public void removeClientDependency(Object handle,
Object dep)
handle - is the model elementdep - is the dependency
public void removeConstraint(Object handle,
Object cons)
handle - ModelElementcons - Constraint
public void removeOwnedElement(Object handle,
Object value)
handle - is the name spacevalue - is the model element
public void removeParameter(Object handle,
Object parameter)
handle - The operation.parameter - The parameter.
public void removeSourceFlow(Object handle,
Object flow)
handle - The model element.flow - The flow.
public void removeSupplierDependency(Object supplier,
Object dependency)
supplier - the supplierdependency - the dependency
public void removeTaggedValue(Object handle,
String name)
handle - the model element to remove the tagged value fromname - the name of the tagged value
IllegalArgumentException - if handle isn't a model element
public void removeTargetFlow(Object handle,
Object flow)
handle - The model element.flow - The flow to add.
public void addAnnotatedElement(Object comment,
Object annotatedElement)
comment - The comment to which the element is annotatedannotatedElement - The element to annotate
public void addClient(Object handle,
Object element)
handle - dependency.element - The model element.
IllegalArgumentException - if the handle is not a dependency
or the element is not a model element.
public void addClientDependency(Object handle,
Object dependency)
handle - the modelelementdependency - the dependency
public void addComment(Object element,
Object comment)
element - the element to which the comment is to be addedcomment - the comment for the model element
public void addConnection(Object handle,
Object connection)
handle - Association or Linkconnection - AssociationEnd or LinkEnd
public void addConstraint(Object handle,
Object mc)
handle - model elementmc - constraint
public void addDeploymentLocation(Object handle,
Object node)
handle - Componentnode - Node
public void addFeature(Object handle,
int index,
Object f)
handle - classifierindex - positionf - feature
public void addFeature(Object handle,
Object f)
handle - classifierf - feature
public void addLink(Object handle,
Object link)
handle - the Link or Associationlink - Link
public void addMethod(Object handle,
Object m)
handle - is the operationm - is the method
public void addOwnedElement(Object handle,
Object me)
handle - namespaceme - model element
public void addParameter(Object handle,
int index,
Object parameter)
handle - The object that will get the Parameter:
MEvent, MBehavioralFeature.index - the locationparameter - Object that will be added
public void addParameter(Object handle,
Object parameter)
handle - The object that will get the Parameter:
MObjectFlowState, MEvent, MBehavioralFeature, MClassifier.parameter - Object that will be added
public void addRaisedSignal(Object handle,
Object sig)
handle - the Message or Operationsig - the Signal that is raised
public void addSourceFlow(Object handle,
Object flow)
handle - The model element.flow - The flow.
public void addSupplier(Object handle,
Object element)
handle - abstractionelement - supplier model element
public void addSupplierDependency(Object supplier,
Object dependency)
supplier - the supplierdependency - the dependency
public void addTaggedValue(Object handle,
Object taggedValue)
handle - ModelElementtaggedValue - TaggedValue
public void addTargetFlow(Object handle,
Object flow)
handle - The model element.flow - The flow to add.
public void setAbstract(Object handle,
boolean flag)
handle - is the classifierflag - is true if it should be abstract
public void setActive(Object handle,
boolean active)
handle - Classactive - boolean
public void setAggregation(Object handle,
Object aggregationKind)
handle - the model element to set aggregationaggregationKind - the aggregation kind
public void setAnnotatedElements(Object handle,
Collection elems)
handle - the given commentelems - the list of annotated modelelements
public void setAssociation(Object handle,
Object association)
handle - the model element to set associationassociation - is the association
public void setLeaf(Object handle,
boolean flag)
handle - model elementflag - is true if it is a leaf.
public void setRaisedSignals(Object handle,
Collection raisedSignals)
handle - the behavioural featureraisedSignals - the raised signals
public void setBody(Object handle,
Object expr)
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.
public void setChangeability(Object handle,
Object ck)
handle - StructuralFeature or AssociationEndck - ChangeableKind
public void setChangeable(Object handle,
boolean flag)
handle - is the featureflag - is the changeability flag
public void setChild(Object handle,
Object child)
handle - Generalizationchild - GeneralizableElement
public void setConcurrency(Object handle,
Object concurrencyKind)
handle - is the operationconcurrencyKind - is the concurrency
public void setConnections(Object handle,
Collection elems)
handle - the given association or linkelems - the list of association-ends or link-ends
public void setDefaultValue(Object handle,
Object expr)
handle - is the parameterexpr - is the expression
public void setDiscriminator(Object handle,
String discriminator)
handle - a generalizationdiscriminator - the discriminator to set
public void setFeature(Object elem,
int i,
Object impl)
elem - The classifier to set.i - The position. Start with 0.impl - The feature to set.
public void setFeatures(Object handle,
Collection features)
handle - the model element to set features tofeatures - the list of features
public void setImplementationLocation(Object handle,
Object component)
handle - the ElementResidencecomponent - the ComponentsetContainer(Object, Object)
public void setContainer(Object handle,
Object component)
handle - the ElementResidencecomponent - the Component
public void setInitialValue(Object at,
Object expr)
at - attribute that we set the initial value ofexpr - that is the value to set. Can be null.
public void setKind(Object handle,
Object kind)
handle - is the parameterkind - is the directionkindpublic void setKindToIn(Object handle)
setKind(Object, Object)
handle - is the parameterpublic void setKindToInOut(Object handle)
setKind(Object, Object)
handle - is the parameterpublic void setKindToOut(Object handle)
setKind(Object, Object)
handle - is the parameterpublic void setKindToReturn(Object handle)
setKind(Object, Object)
handle - is the parameter
public void setModelElementContainer(Object handle,
Object container)
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.
handle - The modelelement that must be added to the containercontainer - The owning modelelement
IllegalArgumentException - when the handle or container is null or if the handle
cannot be added to the container.
public void setMultiplicity(Object handle,
Object arg)
handle - model elementarg - multiplicity as string OR multiplicity object
public void setName(Object handle,
String name)
handle - is the model elementname - to set
public void setBody(Object handle,
String body)
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.
handle - the Comment elementbody - the string
public void setNamespace(Object handle,
Object ns)
handle - is the model elementns - is the namespace. Can be null.
public void setNavigable(Object handle,
boolean flag)
handle - is the association endflag - is the navigability flag
public void setOrdering(Object handle,
Object ok)
handle - AssociationEndok - OrderingKind
public void setOwner(Object handle,
Object owner)
handle - Featureowner - Classifier or null
public void setOwnerScope(Object handle,
Object os)
handle - Featureos - ScopeKind
public void setParameters(Object handle,
Collection parameters)
handle - the classifier, event, objectflowstate or
behavioralfeatureparameters - is a Collection of parameters
public void setParent(Object handle,
Object parent)
handle - generalizationparent - generalizable element (parent)
public void setPowertype(Object handle,
Object pt)
handle - Generalizationpt - Classifier
public void setQualifiers(Object handle,
Collection elems)
handle - the association endelems - is a Collection of qualifiers
public void setQuery(Object handle,
boolean flag)
handle - is the behavioral featureflag - is the query flag
public void setResident(Object handle,
Object resident)
handle - ElementResidenceresident - ModelElement or null
public void setResidents(Object handle,
Collection residents)
handle - the model elementresidents - collection
public void setRoot(Object handle,
boolean flag)
handle - model elementflag - is true if it is a root
public void setSources(Object handle,
Collection specifications)
handle - Flowspecifications - the collection of ModelEvents (sourceFlow)
public void setSpecification(Object handle,
boolean specification)
handle - ModelElementspecification - boolean
public void setSpecification(Object method,
Object specification)
method - the methodspecification - the operation
public void setSpecification(Object operation,
String specification)
operation - the operationspecification - the operation
public void setSpecifications(Object handle,
Collection specifications)
handle - the association endspecifications - collection
public void addStereotype(Object modelElement,
Object stereo)
modelElement - model elementstereo - stereotype
public void addAllStereotypes(Object modelElement,
Collection stereos)
modelElement - model elementstereos - stereotype
public void removeStereotype(Object handle,
Object stereo)
handle - model elementstereo - stereotypepublic void clearStereotypes(Object handle)
handle - model element
public void setTaggedValue(Object handle,
String tag,
String value)
handle - is the model elementtag - is the tag name (a string)value - is the value
public void setTaggedValues(Object handle,
Collection taggedValues)
handle - ModelElementtaggedValues - Collection of TaggedValues
public void setTargetScope(Object handle,
Object scopeKind)
handle - the model elementscopeKind - the target scope
public void setType(Object handle,
Object type)
handle - is the model elementtype - is the type (a classifier)
public void setUUID(Object handle,
String uuid)
handle - base element (MBase type)uuid - is the UUID
public void setVisibility(Object handle,
Object visibility)
handle - elementvisibility - is the visibility
public void removeDeploymentLocation(Object handle,
Object node)
handle - Component from which to remove deploymentLocationnode - Node to be removed
public void removeConnection(Object handle,
Object connection)
handle - Association or Linkconnection - AssociationEnd or LinkEnd
public void addElementResidence(Object handle,
Object residence)
handle - ModelElementresidence - ElementResidence to add
public void removeElementResidence(Object handle,
Object residence)
handle - ModelElementresidence - ElementResidence to remove
public void setEnumerationLiterals(Object enumeration,
List literals)
enumeration - Enumeration to add EnumerationLiterals tooliterals - A list of EnumerationLiteralspublic Collection getAllMetatypeNames()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |