|
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.core.AbstractPatternInstance
com.ibm.xtools.patterns.framework.AbstractPatternInstance
com.ibm.xtools.patterns.framework.uml2.AbstractPatternInstance
This is the UML2-specific abstract pattern instance. All UML2-specific state and behavior will be encapsulated in this language-specific abstract pattern instance. An abstract pattern instance is used in conjunction with an abstract pattern definition from this package. Both definition and instance will be the UML2-specific variants or neither of them will. The abstract pattern definition in this package has a factory method implementation that creates the default abstract pattern instance as included by the default inner-class in this class.
AbstractPatternInstance.Default| Nested Class Summary |
| Nested classes inherited from class com.ibm.xtools.patterns.framework.AbstractPatternInstance |
AbstractPatternInstance.PatternParameterValueQueue |
| Field Summary |
| Fields inherited from class com.ibm.xtools.patterns.framework.AbstractPatternInstance |
store |
| Constructor Summary | |
protected |
AbstractPatternInstance(AbstractPatternDefinition owningDefinition,
Object representation)
Pass-through to super constructor |
protected |
AbstractPatternInstance(AbstractPatternDefinition owningPatternDefinition,
Object targetObject,
AbstractPatternResult createdElements,
MultiStatus status)
Pass-through to super constructor |
| Method Summary | |
Operation |
ensureAtLeastOneStaticOperation(Interface owningInterface,
String name)
Ensure at least one static operation exists. |
Association |
ensureDirectedAssociation(Class owningClass,
Classifier associatedClassifier,
String roleName,
AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
Ensure a directed association exists. |
Association |
ensureDirectedAssociation(Class owningClass,
String roleName1,
Classifier associatedClassifier,
String roleName2)
Ensure a directed association exists. |
Implementation |
ensureInterfaceImplementation(Interface realizedInterface,
Class realizingClass)
Ensure an interface implementation exists. |
void |
ensureInterfaceOperations(Interface realizedInterface,
Class realizingClass)
Ensure that operations that are defined on the interface are realized by the class. |
Operation |
ensureOperation(Class owningClass,
String name)
Ensure an operation exists within the given class. |
Operation |
ensureOperation(Class owningClass,
String name,
VisibilityKind visibilityKind)
Ensure an operation exists within the given class. |
Operation |
ensureOperation(Class owningClass,
String name,
VisibilityKind visibilityKind,
boolean isStatic)
Ensure an operation exists within the given class. |
Parameter |
ensureParameter(Operation owningOperation,
String name,
Type type,
ParameterDirectionKind directionKind)
Ensure a parameter exists within the given operation. |
Parameter |
ensureParameter(Operation owningOperation,
Type type,
ParameterDirectionKind directionKind)
Ensure a parameter exists within the given operation. |
Association |
ensureSharedAggregateAssociation(Class owningClass,
String roleName1,
Classifier ownedClassifier,
String roleName2)
Ensure a shared aggregation association exists. |
Property |
ensureStaticAttribute(Class owningClass,
String name,
Type type)
Ensure a static attribute exists within the given class. |
Property |
ensureStaticAttribute(Class owningClass,
String name,
Type type,
VisibilityKind visibilityKind)
Ensure a static attribute exists within the given class. |
Operation |
ensureStaticOperation(Class owningClass,
String name)
Ensure a static operation exists within the given class. |
Operation |
ensureStaticOperation(Class owningClass,
String name,
VisibilityKind visibilityKind)
Ensure a static operation exists within the given class. |
Operation |
ensureStaticOperation(Interface owningInterface,
String name)
Ensure a static operation exists within the given interface. |
Usage |
ensureUsageRelationship(Class owningClass,
Classifier usedClassifier)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractPatternInstance(AbstractPatternDefinition owningDefinition,
Object representation)
owningDefinition - the owning definition for this represented pattern instancerepresentation - the model element that represents the pattern instance
protected AbstractPatternInstance(AbstractPatternDefinition owningPatternDefinition,
Object targetObject,
AbstractPatternResult createdElements,
MultiStatus status)
owningPatternDefinition - the definition that specifies this instancetargetObject - the target object that defines the context for the new UML2
pattern instance representationcreatedElements - any created elements will be returned in the created elements
out parameterstatus - the status generated| Method Detail |
public final Operation ensureAtLeastOneStaticOperation(Interface owningInterface,
String name)
owningInterface - the interface that contains the operationname - the name of the operation
public final Association ensureDirectedAssociation(Class owningClass,
Classifier associatedClassifier,
String roleName,
AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
owningClass - the class that owns the directed associationassociatedClassifier - the class the association is directed towardsroleName - the role of the associated classifieraggregationKind - the kind of aggregation for the end closest to the associated
classifiermultiplicityLowerBound - the lower bound of the multiplicitymultiplicityUpperBound - the upper bound of the multiplicity
public final Association ensureDirectedAssociation(Class owningClass,
String roleName1,
Classifier associatedClassifier,
String roleName2)
owningClass - the class that owns the directed associationroleName1 - the role of the owning classassociatedClassifier - the class the association is directed towardsroleName2 - the role of the associated classifier in this relationship
public final Implementation ensureInterfaceImplementation(Interface realizedInterface,
Class realizingClass)
realizedInterface - the interface being realizedrealizingClass - the class realizing the realized interface
public final void ensureInterfaceOperations(Interface realizedInterface,
Class realizingClass)
realizedInterface - the interface is the source of the operationsrealizingClass - the realizing class is the destination of the operation ensure
public final Operation ensureOperation(Class owningClass,
String name)
owningClass - the class owning the operationname - the name of the operation
public final Operation ensureOperation(Class owningClass,
String name,
VisibilityKind visibilityKind)
owningClass - the class owning the operationname - the name of the operationvisibilityKind - the visibility kind of the operation, public, private, etc
public final Operation ensureOperation(Class owningClass,
String name,
VisibilityKind visibilityKind,
boolean isStatic)
owningClass - the class owning the operationname - the name of the operationvisibilityKind - the visibility kind of the operation, public, private, etcisStatic - indicates whether the operation is static or not
public final Parameter ensureParameter(Operation owningOperation,
Type type,
ParameterDirectionKind directionKind)
owningOperation - the operation owning this parametertype - the type assigned to this paramaeter, any UML2 model elementdirectionKind - the direction kind of this parameter, in, out, return, etc
public final Parameter ensureParameter(Operation owningOperation,
String name,
Type type,
ParameterDirectionKind directionKind)
owningOperation - the operation owning this parametername - the name of the parametertype - the type assigned to this parameter, any UML2 model elementdirectionKind - the direction kind of this parameter, in, out, return, etc
public final Association ensureSharedAggregateAssociation(Class owningClass,
String roleName1,
Classifier ownedClassifier,
String roleName2)
owningClass - the class owning the shared aggregation associationroleName1 - the owning class role nameownedClassifier - the classifier aggregated in this shared aggregation
associationroleName2 - the role of the aggregated classifier
public final Property ensureStaticAttribute(Class owningClass,
String name,
Type type)
owningClass - the class owning the attributename - the name of the attributetype - the type assigned to the attribute, any UML2 model element
public final Property ensureStaticAttribute(Class owningClass,
String name,
Type type,
VisibilityKind visibilityKind)
owningClass - the class owning the attributename - the name of the attributetype - the type assigned to the attribute, any UML2 model elementvisibilityKind - the visibility kind of the attribute, public, private, etc
public final Operation ensureStaticOperation(Class owningClass,
String name)
owningClass - the class owning the operationname - the name of the operation
public final Operation ensureStaticOperation(Class owningClass,
String name,
VisibilityKind visibilityKind)
owningClass - the class owning the operationname - the name of the operationvisibilityKind - the visibility kind of the operation, public, private, etc
public final Operation ensureStaticOperation(Interface owningInterface,
String name)
owningInterface - the interface owning the static operationname - the name of the operation
public final Usage ensureUsageRelationship(Class owningClass,
Classifier usedClassifier)
owningClass - the class owning the usage relationshipusedClassifier - the classifier used by the owning class
|
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.