|
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 | |
org.eclipse.uml2.Association |
ensureDirectedAssociation(String roleName,
org.eclipse.uml2.Classifier associatedClassifier,
org.eclipse.uml2.AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
Ensure a directed association exists going from this class to the given associated classifier. |
org.eclipse.uml2.Association |
ensureDirectedAssociation(String roleName1,
org.eclipse.uml2.Classifier associatedClassifier,
String roleName2)
Ensure a directed association exists going from this class to the given associated classifier. |
org.eclipse.uml2.Operation |
ensureOperation(String name)
Ensure an operation exists with the given name on this class. |
org.eclipse.uml2.Operation |
ensureOperation(String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensure an operation exists with the given name and visibility kind on this class. |
org.eclipse.uml2.Operation |
ensureOperation(String name,
org.eclipse.uml2.VisibilityKind visibilityKind,
boolean isStatic)
Ensure an operation exists with the given name, visibility kind and static property. |
org.eclipse.uml2.Association |
ensureSharedAggregateAssociation(String roleName1,
org.eclipse.uml2.Classifier ownedClassifier,
String roleName2)
Ensure a shared aggregation assocation exists between this class and the owned classifier. |
org.eclipse.uml2.Property |
ensureStaticAttribute(String name,
org.eclipse.uml2.Type type)
Ensure a static attribute on this class. |
org.eclipse.uml2.Property |
ensureStaticAttribute(String name,
org.eclipse.uml2.Type type,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensure a static attribute exists on this class with the given name, type and visibility kind. |
org.eclipse.uml2.Operation |
ensureStaticOperation(String name)
Ensure a static operation exists on this class. |
org.eclipse.uml2.Operation |
ensureStaticOperation(String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensures a static operation exists on this class. |
org.eclipse.uml2.Usage |
ensureUsageRelationship(org.eclipse.uml2.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 org.eclipse.uml2.Association ensureDirectedAssociation(String roleName1, org.eclipse.uml2.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 org.eclipse.uml2.Association ensureDirectedAssociation(String roleName, org.eclipse.uml2.Classifier associatedClassifier, org.eclipse.uml2.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 org.eclipse.uml2.Operation ensureOperation(String name)
name
- the name of the operation
public org.eclipse.uml2.Operation ensureOperation(String name, org.eclipse.uml2.VisibilityKind visibilityKind)
name
- the name of the operationvisibilityKind
- the visibility kind for the operation, private, public, etc
public org.eclipse.uml2.Operation ensureOperation(String name, org.eclipse.uml2.VisibilityKind visibilityKind, boolean isStatic)
name
- the name of the operationvisibilityKind
- the visibility kind of the operationisStatic
- the static property of this operation
public org.eclipse.uml2.Association ensureSharedAggregateAssociation(String roleName1, org.eclipse.uml2.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 org.eclipse.uml2.Property ensureStaticAttribute(String name, org.eclipse.uml2.Type type)
name
- the name of the static attributetype
- the type of the static attribute, a UML2 model element
public org.eclipse.uml2.Property ensureStaticAttribute(String name, org.eclipse.uml2.Type type, org.eclipse.uml2.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 org.eclipse.uml2.Operation ensureStaticOperation(String name)
name
- the name of the static operation that must exist
public org.eclipse.uml2.Operation ensureStaticOperation(String name, org.eclipse.uml2.VisibilityKind visibilityKind)
name
- the name of the static operation that must existvisibilityKind
- the visibility kind of this operation, public, private, etc
public org.eclipse.uml2.Usage ensureUsageRelationship(org.eclipse.uml2.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.