|
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,
org.eclipse.core.runtime.MultiStatus status)
Pass-through to super constructor |
| Method Summary | |
org.eclipse.uml2.Operation |
ensureAtLeastOneStaticOperation(org.eclipse.uml2.Interface owningInterface,
String name)
Ensure at least one static operation exists. |
org.eclipse.uml2.Association |
ensureDirectedAssociation(org.eclipse.uml2.Class owningClass,
org.eclipse.uml2.Classifier associatedClassifier,
String roleName,
org.eclipse.uml2.AggregationKind aggregationKind,
int multiplicityLowerBound,
int multiplicityUpperBound)
Ensure a directed association exists. |
org.eclipse.uml2.Association |
ensureDirectedAssociation(org.eclipse.uml2.Class owningClass,
String roleName1,
org.eclipse.uml2.Classifier associatedClassifier,
String roleName2)
Ensure a directed association exists. |
org.eclipse.uml2.Implementation |
ensureInterfaceImplementation(org.eclipse.uml2.Interface realizedInterface,
org.eclipse.uml2.Class realizingClass)
Ensure an interface implementation exists. |
void |
ensureInterfaceOperations(org.eclipse.uml2.Interface realizedInterface,
org.eclipse.uml2.Class realizingClass)
Ensure that operations that are defined on the interface are realized by the class. |
org.eclipse.uml2.Operation |
ensureOperation(org.eclipse.uml2.Class owningClass,
String name)
Ensure an operation exists within the given class. |
org.eclipse.uml2.Operation |
ensureOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensure an operation exists within the given class. |
org.eclipse.uml2.Operation |
ensureOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.VisibilityKind visibilityKind,
boolean isStatic)
Ensure an operation exists within the given class. |
org.eclipse.uml2.Parameter |
ensureParameter(org.eclipse.uml2.Operation owningOperation,
String name,
org.eclipse.uml2.Type type,
org.eclipse.uml2.ParameterDirectionKind directionKind)
Ensure a parameter exists within the given operation. |
org.eclipse.uml2.Parameter |
ensureParameter(org.eclipse.uml2.Operation owningOperation,
org.eclipse.uml2.Type type,
org.eclipse.uml2.ParameterDirectionKind directionKind)
Ensure a parameter exists within the given operation. |
org.eclipse.uml2.Association |
ensureSharedAggregateAssociation(org.eclipse.uml2.Class owningClass,
String roleName1,
org.eclipse.uml2.Classifier ownedClassifier,
String roleName2)
Ensure a shared aggregation association exists. |
org.eclipse.uml2.Property |
ensureStaticAttribute(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.Type type)
Ensure a static attribute exists within the given class. |
org.eclipse.uml2.Property |
ensureStaticAttribute(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.Type type,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensure a static attribute exists within the given class. |
org.eclipse.uml2.Operation |
ensureStaticOperation(org.eclipse.uml2.Class owningClass,
String name)
Ensure a static operation exists within the given class. |
org.eclipse.uml2.Operation |
ensureStaticOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
Ensure a static operation exists within the given class. |
org.eclipse.uml2.Operation |
ensureStaticOperation(org.eclipse.uml2.Interface owningInterface,
String name)
Ensure a static operation exists within the given interface. |
org.eclipse.uml2.Usage |
ensureUsageRelationship(org.eclipse.uml2.Class owningClass,
org.eclipse.uml2.Classifier usedClassifier)
|
boolean |
unapplyPattern(org.eclipse.uml2.TemplateableElement tinstance,
ArrayList pae_list)
Unapply pattern; not fully implemented yet, part of patterns traceability features |
| 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,
org.eclipse.core.runtime.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 org.eclipse.uml2.Operation ensureAtLeastOneStaticOperation(org.eclipse.uml2.Interface owningInterface,
String name)
owningInterface - the interface that contains the operationname - the name of the operation
public final org.eclipse.uml2.Association ensureDirectedAssociation(org.eclipse.uml2.Class owningClass,
org.eclipse.uml2.Classifier associatedClassifier,
String roleName,
org.eclipse.uml2.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 org.eclipse.uml2.Association ensureDirectedAssociation(org.eclipse.uml2.Class owningClass,
String roleName1,
org.eclipse.uml2.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 org.eclipse.uml2.Implementation ensureInterfaceImplementation(org.eclipse.uml2.Interface realizedInterface,
org.eclipse.uml2.Class realizingClass)
realizedInterface - the interface being realizedrealizingClass - the class realizing the realized interface
public final void ensureInterfaceOperations(org.eclipse.uml2.Interface realizedInterface,
org.eclipse.uml2.Class realizingClass)
realizedInterface - the interface is the source of the operationsrealizingClass - the realizing class is the destination of the operation ensure
public final org.eclipse.uml2.Operation ensureOperation(org.eclipse.uml2.Class owningClass,
String name)
owningClass - the class owning the operationname - the name of the operation
public final org.eclipse.uml2.Operation ensureOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
owningClass - the class owning the operationname - the name of the operationvisibilityKind - the visibility kind of the operation, public, private, etc
public final org.eclipse.uml2.Operation ensureOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.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 org.eclipse.uml2.Parameter ensureParameter(org.eclipse.uml2.Operation owningOperation,
org.eclipse.uml2.Type type,
org.eclipse.uml2.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 org.eclipse.uml2.Parameter ensureParameter(org.eclipse.uml2.Operation owningOperation,
String name,
org.eclipse.uml2.Type type,
org.eclipse.uml2.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 org.eclipse.uml2.Association ensureSharedAggregateAssociation(org.eclipse.uml2.Class owningClass,
String roleName1,
org.eclipse.uml2.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 org.eclipse.uml2.Property ensureStaticAttribute(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.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 org.eclipse.uml2.Property ensureStaticAttribute(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.Type type,
org.eclipse.uml2.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 org.eclipse.uml2.Operation ensureStaticOperation(org.eclipse.uml2.Class owningClass,
String name)
owningClass - the class owning the operationname - the name of the operation
public final org.eclipse.uml2.Operation ensureStaticOperation(org.eclipse.uml2.Class owningClass,
String name,
org.eclipse.uml2.VisibilityKind visibilityKind)
owningClass - the class owning the operationname - the name of the operationvisibilityKind - the visibility kind of the operation, public, private, etc
public final org.eclipse.uml2.Operation ensureStaticOperation(org.eclipse.uml2.Interface owningInterface,
String name)
owningInterface - the interface owning the static operationname - the name of the operation
public final org.eclipse.uml2.Usage ensureUsageRelationship(org.eclipse.uml2.Class owningClass,
org.eclipse.uml2.Classifier usedClassifier)
owningClass - the class owning the usage relationshipusedClassifier - the classifier used by the owning class
public boolean unapplyPattern(org.eclipse.uml2.TemplateableElement tinstance,
ArrayList pae_list)
unapplyPattern in class AbstractPatternInstance
|
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.