|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.xtools.patterns.framework.uml2.adapters.AbstractElement
com.ibm.xtools.patterns.framework.uml2.adapters.Classifier
com.ibm.xtools.patterns.framework.uml2.adapters.Class
This UML2 adapter class for UML2 class. Contains many helper methods that together form a new interface for pattern instances to use (instead of the normal UML2 class methods that are exposed). Some of the same type of helper methods that are found in a model facade would be found here but distributed amongst the responsible metaclasses. For example, Class will wrap UML2 class.
| Method Summary | |
Association |
ensureDirectedAssociation(String roleName,
Classifier associatedClassifier,
AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
Ensure a directed association exists going from this class to the given associated classifier. |
Association |
ensureDirectedAssociation(String roleName1,
Classifier associatedClassifier,
String roleName2)
Ensure a directed association exists going from this class to the given associated classifier. |
Operation |
ensureOperation(String name)
Ensure an operation exists with the given name on this class. |
Operation |
ensureOperation(String name,
VisibilityKind visibilityKind)
Ensure an operation exists with the given name and visibility kind on this class. |
Operation |
ensureOperation(String name,
VisibilityKind visibilityKind,
boolean isStatic)
Ensure an operation exists with the given name, visibility kind and static property. |
Association |
ensureSharedAggregateAssociation(String roleName1,
Classifier ownedClassifier,
String roleName2)
Ensure a shared aggregation assocation exists between this class and the owned classifier. |
Property |
ensureStaticAttribute(String name,
Type type)
Ensure a static attribute on this class. |
Property |
ensureStaticAttribute(String name,
Type type,
VisibilityKind visibilityKind)
Ensure a static attribute exists on this class with the given name, type and visibility kind. |
Operation |
ensureStaticOperation(String name)
Ensure a static operation exists on this class. |
Operation |
ensureStaticOperation(String name,
VisibilityKind visibilityKind)
Ensures a static operation exists on this class. |
Usage |
ensureUsageRelationship(Classifier usedClassifier)
Ensures a usage relationship exists between this class and the used classifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Association ensureDirectedAssociation(String roleName1,
Classifier associatedClassifier,
String roleName2)
roleName1 - the role name on one end of the associationassociatedClassifier - the classifier that the associated is directed towardsroleName2 - the role name on the classifier end of the association
public Association ensureDirectedAssociation(String roleName,
Classifier associatedClassifier,
AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
associatedClassifier - the classifier that the associated is directed towardsroleName - the role name of the associated classifieraggregationKind - the kind of aggregation on the associated classifier endmultiplicityLowerBound - the lower bound of the multiplicitymultiplicityUpperBound - the upper bound of the multiplicity
public Operation ensureOperation(String name)
name - the name of the operation
public Operation ensureOperation(String name,
VisibilityKind visibilityKind)
name - the name of the operationvisibilityKind - the visibility kind for the operation, private, public, etc
public Operation ensureOperation(String name,
VisibilityKind visibilityKind,
boolean isStatic)
name - the name of the operationvisibilityKind - the visibility kind of the operationisStatic - the static property of this operation
public Association ensureSharedAggregateAssociation(String roleName1,
Classifier ownedClassifier,
String roleName2)
roleName1 - the role name for this class's end of the associationownedClassifier - the classifier aggregated by this classroleName2 - the role name for the owned classifier end
public Property ensureStaticAttribute(String name,
Type type)
name - the name of the static attributetype - the type of the static attribute, a UML2 model element
public Property ensureStaticAttribute(String name,
Type type,
VisibilityKind visibilityKind)
name - the name of the static attributetype - the type of the static attribute, a UML2 model elementvisibilityKind - the visibility kind of the attribute, public, private, etc
public Operation ensureStaticOperation(String name)
name - the name of the static operation that must exist
public Operation ensureStaticOperation(String name,
VisibilityKind visibilityKind)
name - the name of the static operation that must existvisibilityKind - the visibility kind of this operation, public, private, etc
public Usage ensureUsageRelationship(Classifier usedClassifier)
usedClassifier - the classifier to be used by this class, a usage dependency
relationship will be ensured
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.