|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.model.AbstractCoreHelperDecorator
public abstract class AbstractCoreHelperDecorator
An abstract Decorator for the CoreHelper.
| Constructor Summary | |
|---|---|
protected |
AbstractCoreHelperDecorator(CoreHelper component)
Construct a new AbstractCoreHelperDecorator. |
| Method Summary | |
|---|---|
void |
addAllStereotypes(java.lang.Object modelElement,
java.util.Collection stereotypes)
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 handle,
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 m)
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 index,
java.lang.Object qualifier)
|
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 stereotype)
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 modelElement)
Remove all stereotypes from a given ModelElement. |
boolean |
equalsAggregationKind(java.lang.Object associationEnd,
java.lang.String kindType)
|
java.util.Collection |
getAllAttributes(java.lang.Object clazz)
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 |
getAllMetaDatatypeNames()
Returns names of all metamodel value elements including datatypes, enumerations, and primitive types. |
java.util.Collection |
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 o)
Return all interfaces that are realized by the given class or by its superclasses. |
java.util.Collection |
getAllSupertypes(java.lang.Object cls1)
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 classifier)
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier). |
java.util.Collection |
getAssociateEndsInh(java.lang.Object classifier1)
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 classifier)
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 clazz)
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 o)
Return all children of a given GeneralizableElement on all levels (the complete subtree excluding the GeneralizableElement itself). |
protected CoreHelper |
getComponent()
The component we are decorating. |
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 clazz)
Return all classes that the given GeneralizableElement extends. |
java.util.Collection |
getExtendingClassifiers(java.lang.Object clazz)
Return all classifiers that extend a Classifier. |
java.util.Collection |
getExtendingElements(java.lang.Object clazz)
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 child,
java.lang.Object parent)
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 mObj,
java.lang.Object nsObj)
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 enu,
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 parameter)
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 modelElement,
java.lang.Object stereotype)
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 handle,
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 flag)
Set the isAbstract attribute of a GeneralizableElement. |
void |
setActive(java.lang.Object handle,
boolean active)
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. |
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 elems)
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 expr)
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 elem,
int i,
java.lang.Object feature)
Set the Feature of a Classifier at the given position. |
void |
setFeatures(java.lang.Object handle,
java.util.Collection features)
Sets the features of a Classifier. |
void |
setInitialValue(java.lang.Object at,
java.lang.Object expr)
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 flag)
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 ok)
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 pt)
Set the powerType of a Generalization. |
void |
setQualifiers(java.lang.Object handle,
java.util.List elems)
Set the qualifier attributes of an AssociationEnd. |
void |
setQuery(java.lang.Object handle,
boolean flag)
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 flag)
Set the isRoot attribute of a GeneralizableElement. |
void |
setSources(java.lang.Object handle,
java.util.Collection specifications)
|
void |
setSpecification(java.lang.Object handle,
boolean specification)
Set the isSpecification attribute for the ElementOwnership of a ModelElement. |
void |
setSpecifications(java.lang.Object handle,
java.util.Collection specifications)
Set the specifications of an AssociationEnd. |
void |
setStatic(java.lang.Object handle,
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. |
void |
setTargetScope(java.lang.Object handle,
java.lang.Object scopeKind)
Deprecated. |
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. |
| 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 |
|---|
addRaisedException, setSpecification, setSpecification |
| Constructor Detail |
|---|
protected AbstractCoreHelperDecorator(CoreHelper component)
component - The component to decorate.| Method Detail |
|---|
protected CoreHelper getComponent()
public void clearStereotypes(java.lang.Object modelElement)
CoreHelper
clearStereotypes in interface CoreHelpermodelElement - model element
public boolean isSubType(java.lang.Object type,
java.lang.Object subType)
CoreHelper
isSubType in interface CoreHelpertype - The parent metatype.subType - The metatype to test for being a subtype.
public java.util.Collection getAllSupertypes(java.lang.Object cls1)
CoreHelperNote: This follows the Generalizations in UML, so the results do not include Interfaces which are connected to Classes by Realizations.
getAllSupertypes in interface CoreHelpercls1 - the GeneralizableElement you want to have the parents for
public java.util.Collection getSupertypes(java.lang.Object generalizableElement)
CoreHelper
getSupertypes in interface CoreHelpergeneralizableElement - the element you want to have the parents for
public java.util.Collection getAssociateEndsInh(java.lang.Object classifier1)
CoreHelperNote: 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).
getAssociateEndsInh in interface CoreHelperclassifier1 - the classifier for which to get the association ends
public void removeFeature(java.lang.Object cls,
java.lang.Object feature)
CoreHelper
removeFeature in interface CoreHelpercls - the classifierfeature - the feature to be removed
public void removeLiteral(java.lang.Object enu,
java.lang.Object literal)
CoreHelper
removeLiteral in interface CoreHelperenu - the enumerationliteral - the literal to be removed
public void setOperations(java.lang.Object classifier,
java.util.List operations)
CoreHelper
setOperations in interface CoreHelperclassifier - the given classifieroperations - the new operations
public void setAttributes(java.lang.Object classifier,
java.util.List attributes)
CoreHelper
setAttributes in interface CoreHelperclassifier - the classifierattributes - an ordered list of new attributespublic java.util.Collection getAttributesInh(java.lang.Object classifier)
CoreHelper
getAttributesInh in interface CoreHelperclassifier - the classifier you want to have the attributes for
public java.util.Collection getOperationsInh(java.lang.Object classifier)
CoreHelper
getOperationsInh in interface CoreHelperclassifier - the classifier you want to have the operations for
public java.util.Collection getParents(java.lang.Object generalizableElement)
CoreHelperThis function is additional operation number 1 for a GeneralizableElement from the UML1.4 standard.
getParents in interface CoreHelpergeneralizableElement - the given element
public java.util.List getReturnParameters(java.lang.Object operation)
CoreHelper
getReturnParameters in interface CoreHelperoperation - is the operation.
public java.lang.Object getSpecification(java.lang.Object object)
CoreHelperThere 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.
getSpecification in interface CoreHelperobject - the method you want the realized operation of.
Facade.getSpecification(Object)public java.util.Collection getSubtypes(java.lang.Object cls)
CoreHelper
getSubtypes in interface CoreHelpercls - the class you want to have the children for
public java.util.Collection getAllBehavioralFeatures(java.lang.Object element)
CoreHelper
getAllBehavioralFeatures in interface CoreHelperelement - is the element
public java.util.List getBehavioralFeatures(java.lang.Object clazz)
CoreHelper
getBehavioralFeatures in interface CoreHelperclazz - The classifier
public java.util.Collection getAllInterfaces(java.lang.Object ns)
CoreHelper
getAllInterfaces in interface CoreHelperns - the given namespace
public java.util.Collection getAllClasses(java.lang.Object ns)
CoreHelper
getAllClasses in interface CoreHelperns - is the namespace.
public java.util.Collection getRealizedInterfaces(java.lang.Object cls)
CoreHelper
getRealizedInterfaces in interface CoreHelpercls - the classifier
public java.util.Collection getExtendedClassifiers(java.lang.Object clazz)
CoreHelper
getExtendedClassifiers in interface CoreHelperclazz - is the GeneralizableElement
public java.lang.Object getGeneralization(java.lang.Object child,
java.lang.Object parent)
CoreHelper
getGeneralization in interface CoreHelperchild - is the child GeneralizableElement.parent - is the parent GeneralizableElement.
public java.lang.String getBody(java.lang.Object comment)
CoreHelper
getBody in interface CoreHelpercomment - the comment
public java.util.Collection getFlows(java.lang.Object source,
java.lang.Object target)
CoreHelper
getFlows in interface CoreHelpersource - is the source model element.target - is the target model element.
public java.util.Collection getExtendingElements(java.lang.Object clazz)
CoreHelper
getExtendingElements in interface CoreHelperclazz - is the class (a GeneralizableElement)
public java.util.Collection getExtendingClassifiers(java.lang.Object clazz)
CoreHelper
getExtendingClassifiers in interface CoreHelperclazz - is the classifier.
public java.util.Collection getAllComponents(java.lang.Object ns)
CoreHelper
getAllComponents in interface CoreHelperns - is the namespace.
public java.util.Collection getAllDataTypes(java.lang.Object ns)
CoreHelper
getAllDataTypes in interface CoreHelperns - is the namespace
public java.util.Collection getAllNodes(java.lang.Object ns)
CoreHelper
getAllNodes in interface CoreHelperns - is the namespace
public java.util.Collection getAssociatedClassifiers(java.lang.Object classifier)
CoreHelper
getAssociatedClassifiers in interface CoreHelperclassifier - an Classifier
public java.util.Collection getAssociations(java.lang.Object from,
java.lang.Object to)
CoreHelper
getAssociations in interface CoreHelperfrom - a classifierto - a classifier
public java.util.Collection getAllClassifiers(java.lang.Object namespace)
CoreHelper
getAllClassifiers in interface CoreHelpernamespace - the given namespace
public java.util.Collection getAssociations(java.lang.Object classifier)
CoreHelper
getAssociations in interface CoreHelperclassifier - the given classifier
public java.lang.Object getAssociationEnd(java.lang.Object type,
java.lang.Object assoc)
CoreHelper
getAssociationEnd in interface CoreHelpertype - is the classifierassoc - is the association
public java.util.Collection getAllAttributes(java.lang.Object clazz)
CoreHelper
getAllAttributes in interface CoreHelperclazz - is the classifier
public java.util.Collection getAllVisibleElements(java.lang.Object ns)
CoreHelper
getAllVisibleElements in interface CoreHelperns - the given namespace
public java.lang.Object getSource(java.lang.Object relationship)
CoreHelperTODO: move this method to a generic ModelHelper
getSource in interface CoreHelperrelationship - is the relation
public java.lang.Object getDestination(java.lang.Object relationship)
CoreHelperTODO: move this method to a generic ModelHelper
getDestination in interface CoreHelperrelationship - is the relation
public java.util.Collection getDependencies(java.lang.Object supplier,
java.lang.Object client)
CoreHelper
getDependencies in interface CoreHelpersupplier - a ModelElementclient - a ModelElement
public java.lang.Object getPackageImport(java.lang.Object supplier,
java.lang.Object client)
CoreHelper<<import>> or
<<access>> stereotype in UML 1.4) between a
supplier Package and a client Namespace, if any.
getPackageImport in interface CoreHelpersupplier - a Packageclient - a Namespace
public java.util.Collection getPackageImports(java.lang.Object client)
CoreHelper<<import>> or
<<access>> stereotype in UML 1.4) that this
Namespace is a client of.
getPackageImports in interface CoreHelperclient - a Namespace
public java.util.Collection getRelationships(java.lang.Object source,
java.lang.Object dest)
CoreHelper
getRelationships in interface CoreHelpersource - is the source model elementdest - is the destination model element
public boolean isValidNamespace(java.lang.Object mObj,
java.lang.Object nsObj)
CoreHelperSimply returns false if the parameters are not the expected UML elements - any Object is accepted.
isValidNamespace in interface CoreHelpermObj - a ModelElementnsObj - a Namespace
public java.lang.Object getFirstSharedNamespace(java.lang.Object ns1,
java.lang.Object ns2)
CoreHelper
getFirstSharedNamespace in interface CoreHelperns1 - is the first name spacens2 - is the second name space
public java.util.Collection getAllPossibleNamespaces(java.lang.Object modelElement,
java.lang.Object model)
CoreHelper
getAllPossibleNamespaces in interface CoreHelpermodelElement - is the model elementmodel - the model to search
public java.util.Collection getChildren(java.lang.Object o)
CoreHelper
getChildren in interface CoreHelpero - is the GeneralizableElement
public java.util.Collection getAllRealizedInterfaces(java.lang.Object o)
CoreHelper
getAllRealizedInterfaces in interface CoreHelpero - is the given class
public boolean hasCompositeEnd(java.lang.Object association)
CoreHelper
hasCompositeEnd in interface CoreHelperassociation - the association to be investigated
public boolean equalsAggregationKind(java.lang.Object associationEnd,
java.lang.String kindType)
equalsAggregationKind in interface CoreHelperassociationEnd - is the association endkindType - the AggregationKind as a string in lower case,
eg: composite.
public void removeAnnotatedElement(java.lang.Object handle,
java.lang.Object me)
CoreHelper
removeAnnotatedElement in interface CoreHelperhandle - Commentme - ModelElement
public void removeClientDependency(java.lang.Object handle,
java.lang.Object dep)
CoreHelper
removeClientDependency in interface CoreHelperhandle - is the model elementdep - is the dependency
public void removeConstraint(java.lang.Object handle,
java.lang.Object cons)
CoreHelper
removeConstraint in interface CoreHelperhandle - ModelElementcons - Constraint
public void removeOwnedElement(java.lang.Object handle,
java.lang.Object value)
CoreHelper
removeOwnedElement in interface CoreHelperhandle - is the name spacevalue - is the model element
public void removeParameter(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
removeParameter in interface CoreHelperhandle - The operation.parameter - The parameter.
public void removeQualifier(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
removeQualifier in interface CoreHelperhandle - the AssociationEndparameter - the Qualifier attribute to be removed
public void removeSourceFlow(java.lang.Object handle,
java.lang.Object flow)
CoreHelper
removeSourceFlow in interface CoreHelperhandle - The model element.flow - The flow.
public void removeSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
CoreHelper
removeSupplierDependency in interface CoreHelpersupplier - the supplierdependency - the dependency
public void removeStereotype(java.lang.Object modelElement,
java.lang.Object stereotype)
CoreHelper
removeStereotype in interface CoreHelpermodelElement - model elementstereotype - stereotype
public void removeTargetFlow(java.lang.Object handle,
java.lang.Object flow)
CoreHelper
removeTargetFlow in interface CoreHelperhandle - The model element.flow - The flow to add.
public void removeTemplateArgument(java.lang.Object handle,
java.lang.Object argument)
CoreHelper
removeTemplateArgument in interface CoreHelperhandle - The Binding.argument - The argument.
public void removeTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
removeTemplateParameter in interface CoreHelperhandle - The element.parameter - The parameter.
public void addAnnotatedElement(java.lang.Object comment,
java.lang.Object annotatedElement)
CoreHelper
addAnnotatedElement in interface CoreHelpercomment - The comment to which the element is annotatedannotatedElement - The element to annotate
public void addClient(java.lang.Object handle,
java.lang.Object element)
CoreHelper
addClient in interface CoreHelperhandle - the Dependency.element - The model element.
public void addClientDependency(java.lang.Object handle,
java.lang.Object dependency)
CoreHelper
addClientDependency in interface CoreHelperhandle - the ModelElementdependency - the dependency
public void addComment(java.lang.Object element,
java.lang.Object comment)
CoreHelper
addComment in interface CoreHelperelement - the element to which the comment is to be addedcomment - the comment for the model element
public void addConnection(java.lang.Object handle,
java.lang.Object connection)
CoreHelper
addConnection in interface CoreHelperhandle - Association or Linkconnection - AssociationEnd or LinkEnd
public void addConnection(java.lang.Object handle,
int position,
java.lang.Object connection)
CoreHelper
addConnection in interface CoreHelperhandle - Association or Linkposition - the 0-based position at which
to insert the AssociationEnd or LinkEndconnection - AssociationEnd or LinkEnd
public void addConstraint(java.lang.Object handle,
java.lang.Object mc)
CoreHelper
addConstraint in interface CoreHelperhandle - model elementmc - constraint
public void addDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
addDeploymentLocation in interface CoreHelperhandle - Componentnode - Node
public void addFeature(java.lang.Object handle,
int index,
java.lang.Object f)
CoreHelper
addFeature in interface CoreHelperhandle - classifierindex - positionf - feature
public void addFeature(java.lang.Object handle,
java.lang.Object f)
CoreHelper
addFeature in interface CoreHelperhandle - classifierf - feature
public void addLiteral(java.lang.Object handle,
int index,
java.lang.Object literal)
CoreHelper
addLiteral in interface CoreHelperhandle - the enumerationindex - the positionliteral - the EnumerationLiteral to be added
public void addLink(java.lang.Object handle,
java.lang.Object link)
CoreHelper
addLink in interface CoreHelperhandle - the Link or Associationlink - Link
public void addMethod(java.lang.Object handle,
java.lang.Object m)
CoreHelper
addMethod in interface CoreHelperhandle - is the operationm - is the method
public void addOwnedElement(java.lang.Object handle,
java.lang.Object me)
CoreHelper
addOwnedElement in interface CoreHelperhandle - namespaceme - model element
public void addParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
CoreHelper
addParameter in interface CoreHelperhandle - The object that will get the Parameter:
Event, BehavioralFeature.index - the locationparameter - Object that will be added
public void addParameter(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
addParameter in interface CoreHelperhandle - The object that will get the Parameter:
ObjectFlowState, Event, BehavioralFeature, Classifier.parameter - Object that will be added
public void addQualifier(java.lang.Object handle,
int index,
java.lang.Object qualifier)
addQualifier in interface CoreHelperhandle - the Association Endindex - the 0-based position at which
to insert the Qualifierqualifier - the Qualifier attribute
public void addRaisedSignal(java.lang.Object handle,
java.lang.Object sig)
CoreHelper
addRaisedSignal in interface CoreHelperhandle - the Message or Operationsig - the Signal that is raised
public void addSourceFlow(java.lang.Object handle,
java.lang.Object flow)
CoreHelper
addSourceFlow in interface CoreHelperhandle - The model element.flow - The flow.
public void addAllStereotypes(java.lang.Object modelElement,
java.util.Collection stereotypes)
CoreHelper
addAllStereotypes in interface CoreHelpermodelElement - model elementstereotypes - stereotype
public void addStereotype(java.lang.Object modelElement,
java.lang.Object stereotype)
CoreHelper
addStereotype in interface CoreHelpermodelElement - model elementstereotype - stereotype
public void addSupplier(java.lang.Object handle,
java.lang.Object element)
CoreHelper
addSupplier in interface CoreHelperhandle - the Dependency to which to add the supplierelement - supplier model element
public void addSupplierDependency(java.lang.Object supplier,
java.lang.Object dependency)
CoreHelper
addSupplierDependency in interface CoreHelpersupplier - the supplierdependency - the dependency
public void addTargetFlow(java.lang.Object handle,
java.lang.Object flow)
CoreHelper
addTargetFlow in interface CoreHelperhandle - The model element.flow - The flow to add.
public void addTemplateArgument(java.lang.Object handle,
int index,
java.lang.Object argument)
CoreHelper
addTemplateArgument in interface CoreHelperhandle - The object that will get the TemplateParameterindex - the locationargument - Object that will be added
public void addTemplateArgument(java.lang.Object handle,
java.lang.Object argument)
CoreHelper
addTemplateArgument in interface CoreHelperhandle - The object that will get the TemplateArgumentargument - Object that will be added
public void addTemplateParameter(java.lang.Object handle,
int index,
java.lang.Object parameter)
CoreHelper
addTemplateParameter in interface CoreHelperhandle - The object that will get the TemplateParameterindex - the locationparameter - Object that will be added
public void addTemplateParameter(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
addTemplateParameter in interface CoreHelperhandle - The object that will get the TemplateParameterparameter - Object that will be added
public void setAnnotatedElements(java.lang.Object handle,
java.util.Collection elems)
CoreHelper
setAnnotatedElements in interface CoreHelperhandle - the given commentelems - the collection of annotated ModelElements
public void setAssociation(java.lang.Object handle,
java.lang.Object association)
CoreHelper
setAssociation in interface CoreHelperhandle - the model element to set associationassociation - is the association
public void setRaisedSignals(java.lang.Object handle,
java.util.Collection raisedSignals)
CoreHelper
setRaisedSignals in interface CoreHelperhandle - the behavioural featureraisedSignals - the raised signals
public void setBody(java.lang.Object handle,
java.lang.Object expr)
CoreHelper
setBody in interface CoreHelperhandle - 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 setChild(java.lang.Object handle,
java.lang.Object child)
CoreHelper
setChild in interface CoreHelperhandle - Generalizationchild - GeneralizableElement
public void setConnections(java.lang.Object handle,
java.util.Collection elems)
CoreHelper
setConnections in interface CoreHelperhandle - the given association or linkelems - the list of association-ends or link-ends
public void setDefaultElement(java.lang.Object handle,
java.lang.Object element)
CoreHelper
setDefaultElement in interface CoreHelperhandle - is the TemplateParameterelement - is the default ModelElement or null
public void setDefaultValue(java.lang.Object handle,
java.lang.Object expr)
CoreHelper
setDefaultValue in interface CoreHelperhandle - is the Parameterexpr - the Expression to be used as the default value
public void setDiscriminator(java.lang.Object handle,
java.lang.String discriminator)
CoreHelper
setDiscriminator in interface CoreHelperhandle - a Generalizationdiscriminator - the String representing the discriminator
public void setFeature(java.lang.Object elem,
int i,
java.lang.Object feature)
CoreHelper
setFeature in interface CoreHelperelem - The classifier to set.i - The position. Start with 0.feature - The feature to set.
public void setFeatures(java.lang.Object handle,
java.util.Collection features)
CoreHelper
setFeatures in interface CoreHelperhandle - 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.
public void setContainer(java.lang.Object handle,
java.lang.Object component)
CoreHelper
setContainer in interface CoreHelperhandle - the ElementResidencecomponent - the Component
public void setInitialValue(java.lang.Object at,
java.lang.Object expr)
CoreHelper
setInitialValue in interface CoreHelperat - attribute that we set the initial value ofexpr - that is the value to set. Can be null.
public void setModelElementContainer(java.lang.Object handle,
java.lang.Object container)
CoreHelperWarning: 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.
setModelElementContainer in interface CoreHelperhandle - The ModelElement that must be added to the containercontainer - The owning ModelElement
public void setNamespace(java.lang.Object handle,
java.lang.Object ns)
CoreHelper
setNamespace in interface CoreHelperhandle - is the model elementns - is the namespace. Can be null.
public void setOwner(java.lang.Object handle,
java.lang.Object owner)
CoreHelper
setOwner in interface CoreHelperhandle - Feature or TagDefinitionowner - Classifier or null
public void setStatic(java.lang.Object handle,
boolean isStatic)
CoreHelper
setStatic in interface CoreHelperhandle - feature or association endisStatic - true if static (Classifier scope in UML 1.x). False is
equivalent to the UML 1.x ScopeKind of 'Instance'.
public void setParameter(java.lang.Object handle,
java.lang.Object parameter)
CoreHelper
setParameter in interface CoreHelperhandle - the TemplateParameterparameter - the dummy ModelElement to be used as the parameter
public void setParameters(java.lang.Object handle,
java.util.Collection parameters)
CoreHelper
setParameters in interface CoreHelperhandle - the classifier, event, objectflowstate or behavioralfeatureparameters - is a Collection of parameters
public void setParent(java.lang.Object handle,
java.lang.Object parent)
CoreHelper
setParent in interface CoreHelperhandle - generalizationparent - GeneralizableElement (parent)
public void setQualifiers(java.lang.Object handle,
java.util.List elems)
CoreHelper
setQualifiers in interface CoreHelperhandle - the association endelems - List of Attributes to be set as qualifiers
public void setResident(java.lang.Object handle,
java.lang.Object resident)
CoreHelper
setResident in interface CoreHelperhandle - ElementResidenceresident - ModelElement or null
public void setResidents(java.lang.Object handle,
java.util.Collection residents)
CoreHelper
setResidents in interface CoreHelperhandle - the NodeInstance or ComponentInstanceresidents - collection of
ComponentInstances (in case the handle is a NodeInstance)
or Instances (in case the handle is a ComponentInstance)
public void setSources(java.lang.Object handle,
java.util.Collection specifications)
setSources in interface CoreHelperhandle - Flowspecifications - the collection of ModelEvents (sourceFlow)
public void setSpecifications(java.lang.Object handle,
java.util.Collection specifications)
CoreHelper
setSpecifications in interface CoreHelperhandle - the association endspecifications - collection
@Deprecated
public void setTaggedValue(java.lang.Object handle,
java.lang.String tag,
java.lang.String value)
CoreHelper
setTaggedValue in interface CoreHelperhandle - is the model elementtag - is the tag name (a string)value - is the value
public void setType(java.lang.Object handle,
java.lang.Object type)
CoreHelper
setType in interface CoreHelperhandle - a ModelElement which is one of: Parameter, AssociationEnd,
StructuralFeature, ClassifierInState, or ObjectFlowState.type - a Classifier representing the type
public void removeDeploymentLocation(java.lang.Object handle,
java.lang.Object node)
CoreHelper
removeDeploymentLocation in interface CoreHelperhandle - Component from which to remove deploymentLocationnode - Node to be removed
public void setAbstract(java.lang.Object handle,
boolean flag)
CoreHelper
setAbstract in interface CoreHelperhandle - the GeneralizableElementflag - is true if it should be abstract
public void setActive(java.lang.Object handle,
boolean active)
CoreHelper
setActive in interface CoreHelperhandle - Classactive - boolean
public void setAggregation(java.lang.Object handle,
java.lang.Object aggregationKind)
CoreHelper
setAggregation in interface CoreHelperhandle - the AssociationEndaggregationKind - an AggregationKind of Aggregate, Composite, or None
returned from Model.getAggregationKind().
public void setLeaf(java.lang.Object handle,
boolean flag)
CoreHelper
setLeaf in interface CoreHelperhandle - the GeneralizableElementflag - is true if it is a leaf, ie it has no subtypes.
@Deprecated
public void setChangeability(java.lang.Object handle,
java.lang.Object ck)
CoreHelper
setChangeability in interface CoreHelperhandle - StructuralFeature or AssociationEndck - a ChangeableKind of Changeable, Frozen or AddOnly
returned from Model.getChangeableKind().
public void setReadOnly(java.lang.Object handle,
boolean isReadOnly)
CoreHelper
setReadOnly in interface CoreHelperhandle - is the featureisReadOnly - true for ReadOnly (Frozen in UML 1.x).
public void setConcurrency(java.lang.Object handle,
java.lang.Object concurrencyKind)
CoreHelper
setConcurrency in interface CoreHelperhandle - the OperationconcurrencyKind - a ConcurrencyKind of Concurrent, Guarded, or
Sequential returned from Model.getConcurrencyKind().
public void setKind(java.lang.Object handle,
java.lang.Object kind)
CoreHelper
setKind in interface CoreHelperhandle - is the Parameter or Pseudostatekind - a direction kind returned from
Model.getDirectionKind() or a pseudostate kind
returned from Model.getPseudostateKind().
public void setMultiplicity(java.lang.Object handle,
java.lang.Object arg)
CoreHelper
setMultiplicity in interface CoreHelperhandle - model elementarg - multiplicity as string OR multiplicity object,
null is a valid value (unspecified)
public void setName(java.lang.Object handle,
java.lang.String name)
CoreHelper
setName in interface CoreHelperhandle - is the model elementname - to set
public void setBody(java.lang.Object handle,
java.lang.String body)
CoreHelperNOTE: 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.
setBody in interface CoreHelperhandle - the Comment elementbody - the string
public void setNavigable(java.lang.Object handle,
boolean flag)
CoreHelper
setNavigable in interface CoreHelperhandle - is the association endflag - is the navigability flag
public void setOrdering(java.lang.Object handle,
java.lang.Object ok)
CoreHelper
setOrdering in interface CoreHelperhandle - AssociationEndok - an OrderingKind returned from
Model.getOrderingKind().
public void setPowertype(java.lang.Object handle,
java.lang.Object pt)
CoreHelper
setPowertype in interface CoreHelperhandle - Generalizationpt - the Classifier to set as the powerType or null to clear the
powerType.
public void setQuery(java.lang.Object handle,
boolean flag)
CoreHelper
setQuery in interface CoreHelperhandle - is the behavioral featureflag - new value for the isQuery attribute
public void setRoot(java.lang.Object handle,
boolean flag)
CoreHelper
setRoot in interface CoreHelperhandle - model elementflag - is true if it is a root ie it has no supertypes
public void setSpecification(java.lang.Object handle,
boolean specification)
CoreHelper
setSpecification in interface CoreHelperhandle - ModelElementspecification - true of the element is specification
@Deprecated
public void setTargetScope(java.lang.Object handle,
java.lang.Object scopeKind)
CoreHelper
setTargetScope in interface CoreHelperhandle - the model elementscopeKind - a ScopeKind of Instance or Classifier returned
from Model.getScopeKind().
public void setVisibility(java.lang.Object handle,
java.lang.Object visibility)
CoreHelper
setVisibility in interface CoreHelperhandle - elementvisibility - is the visibility
public void removeConnection(java.lang.Object handle,
java.lang.Object connection)
CoreHelper
removeConnection in interface CoreHelperhandle - Association or Linkconnection - AssociationEnd or LinkEnd
public void addElementResidence(java.lang.Object handle,
java.lang.Object residence)
CoreHelper
addElementResidence in interface CoreHelperhandle - ModelElementresidence - ElementResidence to add
public void removeElementResidence(java.lang.Object handle,
java.lang.Object residence)
CoreHelper
removeElementResidence in interface CoreHelperhandle - ModelElementresidence - ElementResidence to remove
public void setEnumerationLiterals(java.lang.Object enumeration,
java.util.List literals)
CoreHelper
setEnumerationLiterals in interface CoreHelperenumeration - Enumeration to add EnumerationLiterals tooliterals - A list of EnumerationLiteralspublic java.util.Collection getAllMetatypeNames()
CoreHelper
getAllMetatypeNames in interface CoreHelperpublic java.util.Collection getAllMetaDatatypeNames()
CoreHelper
getAllMetaDatatypeNames in interface CoreHelper
|
||||||||||
| 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 |