|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoreHelper
The interface for the helper for Core.
| Method Summary | |
|---|---|
void |
addAllStereotypes(java.lang.Object modelElement,
java.util.Collection stereos)
Add a collection of stereotype to a ModelElement. |
void |
addAnnotatedElement(java.lang.Object comment,
java.lang.Object annotatedElement)
Add an annotated element to a comment. |
void |
addClient(java.lang.Object dependency,
java.lang.Object element)
Add a client model element to a Dependency. |
void |
addClientDependency(java.lang.Object handle,
java.lang.Object dependency)
Add a client Dependency to a ModelElement. |
void |
addComment(java.lang.Object element,
java.lang.Object comment)
Add a new comment to a ModelElement. |
void |
addConnection(java.lang.Object handle,
int position,
java.lang.Object connection)
Add an End to a connection. |
void |
addConnection(java.lang.Object handle,
java.lang.Object connection)
Add an End to a connection. |
void |
addConstraint(java.lang.Object handle,
java.lang.Object mc)
Add a constraint to a ModelElement. |
void |
addDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
|
void |
addElementResidence(java.lang.Object handle,
java.lang.Object residence)
Add an ElementResidence. |
void |
addFeature(java.lang.Object handle,
int index,
java.lang.Object f)
Add a feature to a Classifier. |
void |
addFeature(java.lang.Object handle,
java.lang.Object f)
Add a feature to a Classifier. |
void |
addLink(java.lang.Object handle,
java.lang.Object link)
Add the given Link to the given Link or Association. |
void |
addLiteral(java.lang.Object handle,
int index,
java.lang.Object literal)
Add an EnumerationLiteral to an Enumeration at the specified position. |
void |
addMethod(java.lang.Object handle,
java.lang.Object method)
Add a method to an Operation and copy the values of the Operation's visibility and scope attributes to the Method. |
void |
addOwnedElement(java.lang.Object handle,
java.lang.Object me)
Add a ModelElement to a Namespace. |
void |
addParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
Add a Parameter to the given object at given location. |
void |
addParameter(java.lang.Object handle,
java.lang.Object parameter)
Add a Parameter to the given object. |
void |
addQualifier(java.lang.Object handle,
int position,
java.lang.Object qualifier)
|
void |
addRaisedException(java.lang.Object handle,
java.lang.Object exception)
Add a raised exception to a Operation. |
void |
addRaisedSignal(java.lang.Object handle,
java.lang.Object sig)
Add a raised Signal to a Message. |
void |
addSourceFlow(java.lang.Object handle,
java.lang.Object flow)
Add a source flow to a ModelElement. |
void |
addStereotype(java.lang.Object modelElement,
java.lang.Object stereo)
Add a stereotype to a ModelElement. |
void |
addSupplier(java.lang.Object handle,
java.lang.Object element)
Add a supplier to a Dependency. |
void |
addSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
Add a supplier dependency to a ModelElement. |
void |
addTargetFlow(java.lang.Object handle,
java.lang.Object flow)
Add a target flow to a ModelElement. |
void |
addTemplateArgument(java.lang.Object handle,
int index,
java.lang.Object argument)
Add a TemplateArgument to the given object at given location. |
void |
addTemplateArgument(java.lang.Object handle,
java.lang.Object argument)
Add a TemplateArgument to the given object. |
void |
addTemplateParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
Add a TemplateParameter to the given object at given location. |
void |
addTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
Add a TemplateTParameter to the given object. |
void |
clearStereotypes(java.lang.Object handle)
Remove all stereotypes from a given ModelElement. |
boolean |
equalsAggregationKind(java.lang.Object associationEnd,
java.lang.String kindType)
|
java.util.Collection |
getAllAttributes(java.lang.Object classifier)
Return all Attributes of a Classifier and of its parents. |
java.util.Collection |
getAllBehavioralFeatures(java.lang.Object element)
Return all behavioralfeatures found in this element and its children. |
java.util.Collection |
getAllClasses(java.lang.Object ns)
Return all classes found in this namespace and in its children. |
java.util.Collection |
getAllClassifiers(java.lang.Object namespace)
Return all classifiers found in this namespace and in its children. |
java.util.Collection |
getAllComponents(java.lang.Object ns)
Return all components found in this namespace and in its children. |
java.util.Collection |
getAllDataTypes(java.lang.Object ns)
Return all components found in this namespace and in its children. |
java.util.Collection |
getAllInterfaces(java.lang.Object ns)
Return all interfaces found in this namespace and in its children. |
java.util.Collection<java.lang.String> |
getAllMetaDatatypeNames()
Returns names of all metamodel value elements including datatypes, enumerations, and primitive types. |
java.util.Collection<java.lang.String> |
getAllMetatypeNames()
Returns names of all metatypes in metamodel. |
java.util.Collection |
getAllNodes(java.lang.Object ns)
Return all components found in this namespace and in its children. |
java.util.Collection |
getAllPossibleNamespaces(java.lang.Object modelElement,
java.lang.Object model)
Return all possible namespaces that are valid owners of the given ModelElement as determined by the method isValidNamespace. |
java.util.Collection |
getAllRealizedInterfaces(java.lang.Object element)
Return all interfaces that are realized by the given class or by its superclasses. |
java.util.Collection |
getAllSupertypes(java.lang.Object element)
Return all elements of which this GeneralizableElement is a direct or indirect subtype. |
java.util.Collection |
getAllVisibleElements(java.lang.Object ns)
Return a Set containing all ModelElements visible outside of the Namespace. |
java.util.Collection |
getAssociatedClassifiers(java.lang.Object aclassifier)
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier). |
java.util.Collection |
getAssociateEndsInh(java.lang.Object classifier)
Return all AssociationEnds of a given Classifier plus all AssociationEnds of all of the Classifier's supertypes. |
java.lang.Object |
getAssociationEnd(java.lang.Object type,
java.lang.Object assoc)
Returns the associationend between a classifier and an associaton. |
java.util.Collection |
getAssociations(java.lang.Object oclassifier)
Return all associations for a Classifier. |
java.util.Collection |
getAssociations(java.lang.Object from,
java.lang.Object to)
Gets the associations between the classifiers from and to. |
java.util.Collection |
getAttributesInh(java.lang.Object classifier)
Return all attributes of a given Classifier, including inherited. |
java.util.List |
getBehavioralFeatures(java.lang.Object classifier)
Return all behavioral features of a Classifier. |
java.lang.String |
getBody(java.lang.Object comment)
Gets the body of a comment. |
java.util.Collection |
getChildren(java.lang.Object element)
Return all children of a given GeneralizableElement on all levels (the complete subtree excluding the GeneralizableElement itself). |
java.util.Collection |
getDependencies(java.lang.Object supplier,
java.lang.Object client)
Return the dependencies between a supplier ModelElement and a client ModelElement. |
java.lang.Object |
getDestination(java.lang.Object relationship)
Returns the destination of a relation or link. |
java.util.Collection |
getExtendedClassifiers(java.lang.Object element)
Return all classes that the given GeneralizableElement extends. |
java.util.Collection |
getExtendingClassifiers(java.lang.Object classifier)
Return all classifiers that extend a Classifier. |
java.util.Collection |
getExtendingElements(java.lang.Object element)
Return all elements that extend a Class. |
java.lang.Object |
getFirstSharedNamespace(java.lang.Object ns1,
java.lang.Object ns2)
Return the first namespace which two namespaces share. |
java.util.Collection |
getFlows(java.lang.Object source,
java.lang.Object target)
Return all flows connecting from a source ModelElement to a target ModelElement. |
java.lang.Object |
getGeneralization(java.lang.Object achild,
java.lang.Object aparent)
Gets the generalization between two GeneralizableElements. |
java.util.Collection |
getOperationsInh(java.lang.Object classifier)
Return all operations of a given Classifier, including inherited. |
java.lang.Object |
getPackageImport(java.lang.Object supplier,
java.lang.Object client)
Return the packageImport (Permission with <<import>> or
<<access>> stereotype in UML 1.4) between a
supplier Package and a client Namespace, if any. |
java.util.Collection |
getPackageImports(java.lang.Object client)
Return all packageImports (Permissions with <<import>> or
<<access>> stereotype in UML 1.4) that this
Namespace is a client of. |
java.util.Collection |
getParents(java.lang.Object generalizableElement)
Return the collection of all direct parents. |
java.util.Collection |
getRealizedInterfaces(java.lang.Object cls)
Return all interfaces the given class realizes. |
java.util.Collection |
getRelationships(java.lang.Object source,
java.lang.Object dest)
Return all relationships between the source and destination ModelElement and vice versa. |
java.util.List |
getReturnParameters(java.lang.Object operation)
Return all return parameters for an Operation. |
java.lang.Object |
getSource(java.lang.Object relationship)
Return the source of a relation or Link. |
java.lang.Object |
getSpecification(java.lang.Object object)
Return the Operation which is the specification for a Method. |
java.util.Collection |
getSubtypes(java.lang.Object cls)
Return all Classifiers of which this class is a direct supertype. |
java.util.Collection |
getSupertypes(java.lang.Object generalizableElement)
Return the immediate supertypes of a GeneralizableElement. |
boolean |
hasCompositeEnd(java.lang.Object association)
Determine whether an Association has at least one AssociationEnd of AggregationKind Composite. |
boolean |
isSubType(java.lang.Object type,
java.lang.Object subType)
Determine if a meta type is a subtype of another. |
boolean |
isValidNamespace(java.lang.Object element,
java.lang.Object namespace)
Return true if the given ModelElement may be owned by the given namespace. |
void |
removeAnnotatedElement(java.lang.Object handle,
java.lang.Object me)
Remove the given ModelElement from a given comment. |
void |
removeClientDependency(java.lang.Object handle,
java.lang.Object dep)
Remove a dependency from a ModelElement. |
void |
removeConnection(java.lang.Object handle,
java.lang.Object connection)
Remove a connection between an Association & AssociationEnd or between a Link & LinkEnd. |
void |
removeConstraint(java.lang.Object handle,
java.lang.Object cons)
Remove the given constraint from a given ModelElement. |
void |
removeDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
Remove a deployment location. |
void |
removeElementResidence(java.lang.Object handle,
java.lang.Object residence)
Remove an ElementResidence. |
void |
removeFeature(java.lang.Object cls,
java.lang.Object feature)
Remove a Feature from a Classifier. |
void |
removeLiteral(java.lang.Object enumeration,
java.lang.Object literal)
Remove an EnumerationLiteral from an Enumeration. |
void |
removeOwnedElement(java.lang.Object handle,
java.lang.Object value)
Remove an owned model element from a namespace. |
void |
removeParameter(java.lang.Object handle,
java.lang.Object parameter)
Remove a Parameter from an Operation. |
void |
removeQualifier(java.lang.Object handle,
java.lang.Object qualifier)
Remove a Qualifier from a AssociationEnd. |
void |
removeSourceFlow(java.lang.Object handle,
java.lang.Object flow)
Remove a source flow from a ModelElement. |
void |
removeStereotype(java.lang.Object handle,
java.lang.Object stereo)
Remove a stereotype from a ModelElement. |
void |
removeSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
Add a supplier dependency to a ModelElement. |
void |
removeTargetFlow(java.lang.Object handle,
java.lang.Object flow)
Add a target flow to a ModelElement. |
void |
removeTemplateArgument(java.lang.Object binding,
java.lang.Object argument)
Remove a TemplateArgument from a Binding. |
void |
removeTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
Remove a TemplateParameter from a ModelElement. |
void |
setAbstract(java.lang.Object handle,
boolean isAbstract)
Set the isAbstract attribute of a GeneralizableElement. |
void |
setActive(java.lang.Object handle,
boolean isActive)
Set the isActive attribute of a UML Class. |
void |
setAggregation(java.lang.Object handle,
java.lang.Object aggregationKind)
Set the aggregation attribute of an AssociationEnd. |
void |
setAnnotatedElements(java.lang.Object handle,
java.util.Collection elems)
Set the list of annotated elements for the given comment. |
void |
setAssociation(java.lang.Object handle,
java.lang.Object association)
Set the association of a ModelElement. |
void |
setAttributes(java.lang.Object classifier,
java.util.List attributes)
Replace all attributes of the given classifier by the given collection of attributes. |
void |
setBody(java.lang.Object handle,
java.lang.Object expr)
Sets a body of a given Method or Constraint. |
void |
setBody(java.lang.Object handle,
java.lang.String body)
Set the body of a comment. |
void |
setChangeability(java.lang.Object handle,
java.lang.Object ck)
Deprecated. for 0.25.4 by tfmorris. Use setReadOnly(Object, boolean). NOTE: The UML 1.x
enum of AddOnly has no equivalent in UML 2.x. |
void |
setChild(java.lang.Object handle,
java.lang.Object child)
Set the child for a generalization. |
void |
setConcurrency(java.lang.Object handle,
java.lang.Object concurrencyKind)
Set the concurrency of an Operation. |
void |
setConnections(java.lang.Object handle,
java.util.Collection ends)
Sets the list of connections of the given association or link. |
void |
setContainer(java.lang.Object handle,
java.lang.Object component)
Set the Container of the given ElementResidence to the given Component. |
void |
setDefaultElement(java.lang.Object handle,
java.lang.Object element)
Sets the default ModelEelement of a TemplateParameter. |
void |
setDefaultValue(java.lang.Object handle,
java.lang.Object expression)
Set the defaultValue of a Parameter. |
void |
setDiscriminator(java.lang.Object handle,
java.lang.String discriminator)
Set the discriminator of a Generalization. |
void |
setEnumerationLiterals(java.lang.Object enumeration,
java.util.List literals)
Set the (ordered) list of literals of an Enumeration. |
void |
setFeature(java.lang.Object classifier,
int index,
java.lang.Object feature)
Set the Feature of a Classifier at the given position. |
void |
setFeatures(java.lang.Object classifier,
java.util.Collection features)
Sets the features of a Classifier. |
void |
setInitialValue(java.lang.Object attribute,
java.lang.Object expression)
Set the initialValue of an Attribute. |
void |
setKind(java.lang.Object handle,
java.lang.Object kind)
Set the kind of a Parameter or the Pseudostate. |
void |
setLeaf(java.lang.Object handle,
boolean isLeaf)
Set the isLeaf attribute of a GeneralizableElement. |
void |
setModelElementContainer(java.lang.Object handle,
java.lang.Object container)
Set the container that owns the handle. |
void |
setMultiplicity(java.lang.Object handle,
java.lang.Object arg)
Set the multiplicity of a ModelElement. |
void |
setName(java.lang.Object handle,
java.lang.String name)
Set the name of a ModelElement. |
void |
setNamespace(java.lang.Object handle,
java.lang.Object ns)
Set the namespace of a ModelElement. |
void |
setNavigable(java.lang.Object handle,
boolean flag)
Set the navigability of an AssociationEnd. |
void |
setOperations(java.lang.Object classifier,
java.util.List operations)
Replace all operations of the given classifier by the given list of operations. |
void |
setOrdering(java.lang.Object handle,
java.lang.Object ordering)
Set the OrderingKind of a given AssociationEnd. |
void |
setOwner(java.lang.Object handle,
java.lang.Object owner)
Set the owner of a Feature or a TagDefinition. |
void |
setParameter(java.lang.Object handle,
java.lang.Object parameter)
Set the parameter of a TemplateParameter. |
void |
setParameters(java.lang.Object handle,
java.util.Collection parameters)
Set the parameters of a classifier, event, objectflowstate or behavioralfeature. |
void |
setParent(java.lang.Object handle,
java.lang.Object parent)
Set the parent of a generalization. |
void |
setPowertype(java.lang.Object handle,
java.lang.Object powerType)
Set the powerType of a Generalization. |
void |
setQualifiers(java.lang.Object handle,
java.util.List qualifiers)
Set the qualifier attributes of an AssociationEnd. |
void |
setQuery(java.lang.Object handle,
boolean isQuery)
Sets the isQuery attribute of a BehavioralFeature. |
void |
setRaisedSignals(java.lang.Object handle,
java.util.Collection raisedSignals)
Set the raised signals of a BehavioralFeature. |
void |
setReadOnly(java.lang.Object handle,
boolean isReadOnly)
Set the isReadOnly (UML 2.x) or changeable (UML 1.x) attribute of a StructuralFeature or AssociationEnd. |
void |
setResident(java.lang.Object handle,
java.lang.Object resident)
Sets the ModelElement of a ElementResidence. |
void |
setResidents(java.lang.Object handle,
java.util.Collection residents)
Sets the residents of a NodeInstance or ComponentInstance. |
void |
setRoot(java.lang.Object handle,
boolean isRoot)
Set the isRoot attribute of a GeneralizableElement. |
void |
setSources(java.lang.Object handle,
java.util.Collection specifications)
|
void |
setSpecification(java.lang.Object handle,
boolean isSpecification)
Set the isSpecification attribute for the ElementOwnership of a ModelElement. |
void |
setSpecification(java.lang.Object method,
java.lang.Object specification)
Set the specification (i.e. |
void |
setSpecification(java.lang.Object operation,
java.lang.String specification)
Set the specification of an Operation. |
void |
setSpecifications(java.lang.Object handle,
java.util.Collection specifications)
Set the specifications of an AssociationEnd. |
void |
setStatic(java.lang.Object element,
boolean isStatic)
Set the isStatic (UML 2.x) or ownerScope (UML 1.x) attribute of a feature. |
void |
setTaggedValue(java.lang.Object handle,
java.lang.String tag,
java.lang.String value)
Deprecated. by tfmorris for 0.23.3. Use ExtensionMechanismsHelper.setType(Object, Object) and
ExtensionMechanismsHelper.setValueOfTag(Object, String). |
void |
setTargetScope(java.lang.Object handle,
java.lang.Object targetScope)
Deprecated. for 0.25.4 by tfmorris. Target Scope has been removed from the UML 2.x spec so this should not be used. |
void |
setType(java.lang.Object handle,
java.lang.Object type)
Set the type of a ModelElement. |
void |
setVisibility(java.lang.Object handle,
java.lang.Object visibility)
Set the visibility of a ModelElement, ElementResidence, ElementImport. |
| Method Detail |
|---|
boolean isSubType(java.lang.Object type,
java.lang.Object subType)
type - The parent metatype.subType - The metatype to test for being a subtype.
java.util.Collection getAllSupertypes(java.lang.Object element)
Note: This follows the Generalizations in UML, so the results do not include Interfaces which are connected to Classes by Realizations.
element - the GeneralizableElement you want to have the parents for
java.util.Collection getSupertypes(java.lang.Object generalizableElement)
generalizableElement - the element you want to have the parents for
java.util.Collection getAssociateEndsInh(java.lang.Object classifier)
Note: Until 0.24 this was documented as returning the opposite ends, but the implementation has returned the near ends since at least beginning of the MDR implementation (0.18).
classifier - the classifier for which to get the association ends
void removeFeature(java.lang.Object cls,
java.lang.Object feature)
cls - the classifierfeature - the feature to be removed
void removeLiteral(java.lang.Object enumeration,
java.lang.Object literal)
enumeration - the enumerationliteral - the literal to be removed
void setOperations(java.lang.Object classifier,
java.util.List operations)
classifier - the given classifieroperations - the new operations
void setAttributes(java.lang.Object classifier,
java.util.List attributes)
classifier - the classifierattributes - an ordered list of new attributesjava.util.Collection getAttributesInh(java.lang.Object classifier)
classifier - the classifier you want to have the attributes for
java.util.Collection getOperationsInh(java.lang.Object classifier)
classifier - the classifier you want to have the operations for
java.util.Collection getParents(java.lang.Object generalizableElement)
This function is additional operation number 1 for a GeneralizableElement from the UML1.4 standard.
generalizableElement - the given element
java.util.List getReturnParameters(java.lang.Object operation)
operation - is the operation.
java.lang.Object getSpecification(java.lang.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)java.util.Collection getSubtypes(java.lang.Object cls)
cls - the class you want to have the children for
java.util.Collection getAllBehavioralFeatures(java.lang.Object element)
element - is the element
java.util.List getBehavioralFeatures(java.lang.Object classifier)
classifier - The classifier
java.util.Collection getAllInterfaces(java.lang.Object ns)
ns - the given namespace
java.util.Collection getAllClasses(java.lang.Object ns)
ns - is the namespace.
java.util.Collection getRealizedInterfaces(java.lang.Object cls)
cls - the classifier
java.util.Collection getExtendedClassifiers(java.lang.Object element)
element - is the GeneralizableElement
java.lang.Object getGeneralization(java.lang.Object achild,
java.lang.Object aparent)
achild - is the child GeneralizableElement.aparent - is the parent GeneralizableElement.
java.lang.String getBody(java.lang.Object comment)
comment - the comment
java.util.Collection getFlows(java.lang.Object source,
java.lang.Object target)
source - is the source model element.target - is the target model element.
java.util.Collection getExtendingElements(java.lang.Object element)
element - is the class (a GeneralizableElement)
java.util.Collection getExtendingClassifiers(java.lang.Object classifier)
classifier - is the classifier.
java.util.Collection getAllComponents(java.lang.Object ns)
ns - is the namespace.
java.util.Collection getAllDataTypes(java.lang.Object ns)
ns - is the namespace
java.util.Collection getAllNodes(java.lang.Object ns)
ns - is the namespace
java.util.Collection getAssociatedClassifiers(java.lang.Object aclassifier)
aclassifier - an Classifier
java.util.Collection getAssociations(java.lang.Object from,
java.lang.Object to)
from - a classifierto - a classifier
java.util.Collection getAllClassifiers(java.lang.Object namespace)
namespace - the given namespace
java.util.Collection getAssociations(java.lang.Object oclassifier)
oclassifier - the given classifier
java.lang.Object getAssociationEnd(java.lang.Object type,
java.lang.Object assoc)
type - is the classifierassoc - is the association
java.util.Collection getAllAttributes(java.lang.Object classifier)
classifier - is the classifier
java.util.Collection getAllVisibleElements(java.lang.Object ns)
ns - the given namespace
java.lang.Object getSource(java.lang.Object relationship)
TODO: move this method to a generic ModelHelper
relationship - is the relation
java.lang.Object getDestination(java.lang.Object relationship)
TODO: move this method to a generic ModelHelper
relationship - is the relation
java.util.Collection getDependencies(java.lang.Object supplier,
java.lang.Object client)
supplier - a ModelElementclient - a ModelElement
java.lang.Object getPackageImport(java.lang.Object supplier,
java.lang.Object client)
<<import>> or
<<access>> stereotype in UML 1.4) between a
supplier Package and a client Namespace, if any.
supplier - a Packageclient - a Namespace
java.util.Collection getPackageImports(java.lang.Object client)
<<import>> or
<<access>> stereotype in UML 1.4) that this
Namespace is a client of.
client - a Namespace
java.util.Collection getRelationships(java.lang.Object source,
java.lang.Object dest)
source - is the source model elementdest - is the destination model element
boolean isValidNamespace(java.lang.Object element,
java.lang.Object namespace)
Simply returns false if the parameters are not the expected UML elements - any Object is accepted.
element - a ModelElementnamespace - a Namespace
java.lang.Object getFirstSharedNamespace(java.lang.Object ns1,
java.lang.Object ns2)
ns1 - is the first name spacens2 - is the second name space
java.util.Collection getAllPossibleNamespaces(java.lang.Object modelElement,
java.lang.Object model)
modelElement - is the model elementmodel - the model to search
java.util.Collection getChildren(java.lang.Object element)
element - is the GeneralizableElement
java.lang.IllegalStateException - if there is a circular reference.java.util.Collection getAllRealizedInterfaces(java.lang.Object element)
element - is the given class
boolean hasCompositeEnd(java.lang.Object association)
association - the association to be investigated
boolean equalsAggregationKind(java.lang.Object associationEnd,
java.lang.String kindType)
associationEnd - is the association endkindType - the AggregationKind as a string in lower case,
eg: composite.
void removeAnnotatedElement(java.lang.Object handle,
java.lang.Object me)
handle - Commentme - ModelElement
void removeClientDependency(java.lang.Object handle,
java.lang.Object dep)
handle - is the model elementdep - is the dependency
void removeConstraint(java.lang.Object handle,
java.lang.Object cons)
handle - ModelElementcons - Constraint
void removeOwnedElement(java.lang.Object handle,
java.lang.Object value)
handle - is the name spacevalue - is the model element
void removeParameter(java.lang.Object handle,
java.lang.Object parameter)
handle - The operation.parameter - The parameter.
void removeQualifier(java.lang.Object handle,
java.lang.Object qualifier)
handle - the AssociationEndqualifier - the Qualifier attribute to be removed
void removeSourceFlow(java.lang.Object handle,
java.lang.Object flow)
handle - The model element.flow - The flow.
void removeSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
supplier - the supplierdependency - the dependency
void removeTargetFlow(java.lang.Object handle,
java.lang.Object flow)
handle - The model element.flow - The flow to add.
void removeTemplateArgument(java.lang.Object binding,
java.lang.Object argument)
binding - The Binding.argument - The argument.
void removeTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
handle - The element.parameter - The parameter.
void addAnnotatedElement(java.lang.Object comment,
java.lang.Object annotatedElement)
comment - The comment to which the element is annotatedannotatedElement - The element to annotate
void addClient(java.lang.Object dependency,
java.lang.Object element)
dependency - the Dependency.element - The model element.
void addClientDependency(java.lang.Object handle,
java.lang.Object dependency)
handle - the ModelElementdependency - the dependency
void addComment(java.lang.Object element,
java.lang.Object comment)
element - the element to which the comment is to be addedcomment - the comment for the model element
void addConnection(java.lang.Object handle,
java.lang.Object connection)
handle - Association or Linkconnection - AssociationEnd or LinkEnd
void addConnection(java.lang.Object handle,
int position,
java.lang.Object connection)
handle - Association or Linkposition - the 0-based position at which
to insert the AssociationEnd or LinkEndconnection - AssociationEnd or LinkEnd
void addConstraint(java.lang.Object handle,
java.lang.Object mc)
handle - model elementmc - constraint
void addDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
handle - Componentnode - Node
void addFeature(java.lang.Object handle,
int index,
java.lang.Object f)
handle - classifierindex - positionf - feature
void addLiteral(java.lang.Object handle,
int index,
java.lang.Object literal)
handle - the enumerationindex - the positionliteral - the EnumerationLiteral to be added
void addFeature(java.lang.Object handle,
java.lang.Object f)
handle - classifierf - feature
void addLink(java.lang.Object handle,
java.lang.Object link)
handle - the Link or Associationlink - Link
void addMethod(java.lang.Object handle,
java.lang.Object method)
handle - is the operationmethod - is the method
void addOwnedElement(java.lang.Object handle,
java.lang.Object me)
handle - namespaceme - model element
void addParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
handle - The object that will get the Parameter:
Event, BehavioralFeature.index - the locationparameter - Object that will be added
void addParameter(java.lang.Object handle,
java.lang.Object parameter)
handle - The object that will get the Parameter:
ObjectFlowState, Event, BehavioralFeature, Classifier.parameter - Object that will be added
void addQualifier(java.lang.Object handle,
int position,
java.lang.Object qualifier)
handle - the Association Endposition - the 0-based position at which
to insert the Qualifierqualifier - the Qualifier attribute
void addRaisedSignal(java.lang.Object handle,
java.lang.Object sig)
handle - the Message or Operationsig - the Signal that is raised
void addRaisedException(java.lang.Object handle,
java.lang.Object exception)
handle - the Operationexception - the raised exception.
void addSourceFlow(java.lang.Object handle,
java.lang.Object flow)
handle - The model element.flow - The flow.
void addSupplier(java.lang.Object handle,
java.lang.Object element)
handle - the Dependency to which to add the supplierelement - supplier model element
void addSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
supplier - the supplierdependency - the dependency
void addTargetFlow(java.lang.Object handle,
java.lang.Object flow)
handle - The model element.flow - The flow to add.
void addTemplateArgument(java.lang.Object handle,
int index,
java.lang.Object argument)
handle - The object that will get the TemplateParameterindex - the locationargument - Object that will be added
void addTemplateArgument(java.lang.Object handle,
java.lang.Object argument)
handle - The object that will get the TemplateArgumentargument - Object that will be added
void addTemplateParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
handle - The object that will get the TemplateParameterindex - the locationparameter - Object that will be added
void addTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
handle - The object that will get the TemplateParameterparameter - Object that will be added
void setAbstract(java.lang.Object handle,
boolean isAbstract)
handle - the GeneralizableElementisAbstract - is true if it should be abstract
void setActive(java.lang.Object handle,
boolean isActive)
handle - ClassisActive - boolean
void setAggregation(java.lang.Object handle,
java.lang.Object aggregationKind)
handle - the AssociationEndaggregationKind - an AggregationKind of Aggregate, Composite, or None
returned from Model.getAggregationKind().
void setAnnotatedElements(java.lang.Object handle,
java.util.Collection elems)
handle - the given commentelems - the collection of annotated ModelElements
void setAssociation(java.lang.Object handle,
java.lang.Object association)
handle - the model element to set associationassociation - is the association
void setLeaf(java.lang.Object handle,
boolean isLeaf)
handle - the GeneralizableElementisLeaf - is true if it is a leaf, ie it has no subtypes.
void setRaisedSignals(java.lang.Object handle,
java.util.Collection raisedSignals)
handle - the behavioural featureraisedSignals - the raised signals
void setBody(java.lang.Object handle,
java.lang.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.
@Deprecated
void setChangeability(java.lang.Object handle,
java.lang.Object ck)
setReadOnly(Object, boolean). NOTE: The UML 1.x
enum of AddOnly has no equivalent in UML 2.x.
handle - StructuralFeature or AssociationEndck - a ChangeableKind of Changeable, Frozen or AddOnly
returned from Model.getChangeableKind().
void setReadOnly(java.lang.Object handle,
boolean isReadOnly)
handle - is the featureisReadOnly - true for ReadOnly (Frozen in UML 1.x).
void setChild(java.lang.Object handle,
java.lang.Object child)
handle - Generalizationchild - GeneralizableElement
void setConcurrency(java.lang.Object handle,
java.lang.Object concurrencyKind)
handle - the OperationconcurrencyKind - a ConcurrencyKind of Concurrent, Guarded, or
Sequential returned from Model.getConcurrencyKind().
void setConnections(java.lang.Object handle,
java.util.Collection ends)
handle - the given association or linkends - the list of association-ends or link-ends
void setDefaultElement(java.lang.Object handle,
java.lang.Object element)
handle - is the TemplateParameterelement - is the default ModelElement or null
void setDefaultValue(java.lang.Object handle,
java.lang.Object expression)
handle - is the Parameterexpression - the Expression to be used as the default value
void setDiscriminator(java.lang.Object handle,
java.lang.String discriminator)
handle - a Generalizationdiscriminator - the String representing the discriminator
void setFeature(java.lang.Object classifier,
int index,
java.lang.Object feature)
classifier - The classifier to set.index - The position. Start with 0.feature - The feature to set.
void setFeatures(java.lang.Object classifier,
java.util.Collection features)
classifier - the Classifier to set features tofeatures - the list of features. NOTE: although the API allows
any type of Collection, the list of features is ordered, so
only a List should be passed here. Other types of collections
will be converted to a List in their natural order (which may
not be the desired order.
void setContainer(java.lang.Object handle,
java.lang.Object component)
handle - the ElementResidencecomponent - the Component
void setInitialValue(java.lang.Object attribute,
java.lang.Object expression)
attribute - attribute that we set the initial value ofexpression - that is the value to set. Can be null.
void setKind(java.lang.Object handle,
java.lang.Object kind)
handle - is the Parameter or Pseudostatekind - a direction kind returned from
Model.getDirectionKind() or a pseudostate kind
returned from Model.getPseudostateKind().
void setModelElementContainer(java.lang.Object handle,
java.lang.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
java.lang.IllegalArgumentException - when the handle or container is null or if the handle
cannot be added to the container.
void setMultiplicity(java.lang.Object handle,
java.lang.Object arg)
handle - model elementarg - multiplicity as string OR multiplicity object,
null is a valid value (unspecified)
void setName(java.lang.Object handle,
java.lang.String name)
handle - is the model elementname - to set
void setBody(java.lang.Object handle,
java.lang.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
void setNamespace(java.lang.Object handle,
java.lang.Object ns)
handle - is the model elementns - is the namespace. Can be null.
void setNavigable(java.lang.Object handle,
boolean flag)
handle - is the association endflag - is the navigability flag
void setOrdering(java.lang.Object handle,
java.lang.Object ordering)
handle - AssociationEndordering - an OrderingKind returned from
Model.getOrderingKind().
void setOwner(java.lang.Object handle,
java.lang.Object owner)
handle - Feature or TagDefinitionowner - Classifier or null
void setStatic(java.lang.Object element,
boolean isStatic)
element - feature or association endisStatic - true if static (Classifier scope in UML 1.x). False is
equivalent to the UML 1.x ScopeKind of 'Instance'.
void setParameter(java.lang.Object handle,
java.lang.Object parameter)
handle - the TemplateParameterparameter - the dummy ModelElement to be used as the parameter
void setParameters(java.lang.Object handle,
java.util.Collection parameters)
handle - the classifier, event, objectflowstate or behavioralfeatureparameters - is a Collection of parameters
void setParent(java.lang.Object handle,
java.lang.Object parent)
handle - generalizationparent - GeneralizableElement (parent)
void setPowertype(java.lang.Object handle,
java.lang.Object powerType)
handle - GeneralizationpowerType - the Classifier to set as the powerType or null to clear the
powerType.
void setQualifiers(java.lang.Object handle,
java.util.List qualifiers)
handle - the association endqualifiers - List of Attributes to be set as qualifiers
void setQuery(java.lang.Object handle,
boolean isQuery)
handle - is the behavioral featureisQuery - new value for the isQuery attribute
void setResident(java.lang.Object handle,
java.lang.Object resident)
handle - ElementResidenceresident - ModelElement or null
void setResidents(java.lang.Object handle,
java.util.Collection residents)
handle - the NodeInstance or ComponentInstanceresidents - collection of
ComponentInstances (in case the handle is a NodeInstance)
or Instances (in case the handle is a ComponentInstance)
void setRoot(java.lang.Object handle,
boolean isRoot)
handle - model elementisRoot - is true if it is a root ie it has no supertypes
void setSources(java.lang.Object handle,
java.util.Collection specifications)
handle - Flowspecifications - the collection of ModelEvents (sourceFlow)
void setSpecification(java.lang.Object handle,
boolean isSpecification)
handle - ModelElementisSpecification - true of the element is specification
void setSpecification(java.lang.Object method,
java.lang.Object specification)
method - the methodspecification - the operation
void setSpecification(java.lang.Object operation,
java.lang.String specification)
operation - the operationspecification - the operation
void setSpecifications(java.lang.Object handle,
java.util.Collection specifications)
handle - the association endspecifications - collection
void addStereotype(java.lang.Object modelElement,
java.lang.Object stereo)
modelElement - model elementstereo - stereotype
void addAllStereotypes(java.lang.Object modelElement,
java.util.Collection stereos)
modelElement - model elementstereos - stereotype
void removeStereotype(java.lang.Object handle,
java.lang.Object stereo)
handle - model elementstereo - stereotypevoid clearStereotypes(java.lang.Object handle)
handle - model element
@Deprecated
void setTaggedValue(java.lang.Object handle,
java.lang.String tag,
java.lang.String value)
ExtensionMechanismsHelper.setType(Object, Object) and
ExtensionMechanismsHelper.setValueOfTag(Object, String).
handle - is the model elementtag - is the tag name (a string)value - is the value
@Deprecated
void setTargetScope(java.lang.Object handle,
java.lang.Object targetScope)
handle - the model elementtargetScope - a ScopeKind of Instance or Classifier returned
from Model.getScopeKind().
void setType(java.lang.Object handle,
java.lang.Object type)
handle - a ModelElement which is one of: Parameter, AssociationEnd,
StructuralFeature, ClassifierInState, or ObjectFlowState.type - a Classifier representing the type
void setVisibility(java.lang.Object handle,
java.lang.Object visibility)
handle - elementvisibility - is the visibility
void removeDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
handle - Component from which to remove deploymentLocationnode - Node to be removed
void removeConnection(java.lang.Object handle,
java.lang.Object connection)
handle - Association or Linkconnection - AssociationEnd or LinkEnd
void addElementResidence(java.lang.Object handle,
java.lang.Object residence)
handle - ModelElementresidence - ElementResidence to add
void removeElementResidence(java.lang.Object handle,
java.lang.Object residence)
handle - ModelElementresidence - ElementResidence to remove
void setEnumerationLiterals(java.lang.Object enumeration,
java.util.List literals)
enumeration - Enumeration to add EnumerationLiterals tooliterals - A list of EnumerationLiteralsjava.util.Collection<java.lang.String> getAllMetatypeNames()
java.util.Collection<java.lang.String> getAllMetaDatatypeNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |