|
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.AbstractPatternDelegate
com.ibm.xtools.patterns.framework.PatternDependencyDelegate
A pattern dependency delegate specializes an abstract pattern delegate and provides a concrete implementation of a pattern dependency delegate that requires an abstract pattern dependency and a pattern definition usage instance to be constructed. A pattern dependency delegate enables pattern dependency implementations to delegate some of the behavior that a dependency is responsible for off into another pattern (or transform or arbitrary code). For now only pattern delegates are supported. It is typically not necessary to override any of the included methods in this class but it is possible if needed for specializing delegate behavior.fs The default behavior is that of adaptation; that is, this code delegates the behavior that a dependency typically implements (responding to the update methods for example) and translates these method calls into the appropriate pattern service calls to satisfy the intended resultant behavior. The dependency update interface is adapted so update calls can be delegates to the different interface that the pattern service exposes.
AbstractPatternDelegate
,
PatternParameterDelegate
Nested Class Summary | |
static class |
com.ibm.xtools.patterns.framework.AbstractPatternDelegate.Adapter
An adapter provider allows for stepping through of all the pattern parameter mappings in order to adapt the outer state to the inner state and adapt this call on to the interface of the pattern service calls. |
Constructor Summary | |
PatternDependencyDelegate(AbstractPatternDependency dependency,
PatternDefinitionUsage usage)
Constructs a pattern dependency delegate using the specified dependency and pattern definition usage. |
|
PatternDependencyDelegate(AbstractPatternDependency dependency,
PatternDefinitionUsage usage,
PatternParameterMapping.Provider provider)
Constructs a pattern dependency delegate using the specified dependency and pattern definition usage. |
Method Summary | |
boolean |
update(PatternParameterValue.Added dependent,
PatternParameterValue.Maintained dependency)
The update method is delegated to the more general update method variant. |
boolean |
update(PatternParameterValue.Maintained dependent,
PatternParameterValue.Added dependency)
The update method is delegated to the more general update method variant. |
boolean |
update(PatternParameterValue.Maintained dependent,
PatternParameterValue.Maintained dependency)
The update method is delegated to the more general update method variant. |
boolean |
update(PatternParameterValue.Maintained dependent,
PatternParameterValue.Removed dependency)
The update method adapts the maintained removed value state combination into the respectively matched pattern service method invocations. |
boolean |
update(PatternParameterValue.Maintained dependent,
PatternParameterValue.Replaced dependency)
The update method adapts the maintained replaced value state combination into the respectively matched pattern service method invocations. |
boolean |
update(PatternParameterValue.Removed dependent,
PatternParameterValue.Maintained dependency)
The update method adapts the removed maintained value state combination into the respectively matched pattern service method invocations. |
boolean |
update(PatternParameterValue.Replaced dependent,
PatternParameterValue.Maintained dependency)
The update method adapts the replaced maintained value state combination into the respectively matched pattern service method invocations. |
boolean |
update(PatternParameterValue dependent,
PatternParameterValue dependency)
The general update method is called if the pattern parameter values are not more specifically typed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PatternDependencyDelegate(AbstractPatternDependency dependency, PatternDefinitionUsage usage)
dependency
- the dependency to associated with this delegate, a dependency
can have zero to many delegates associatedusage
- the pattern definition usage specifies which pattern
definition to delegate pattern behavior topublic PatternDependencyDelegate(AbstractPatternDependency dependency, PatternDefinitionUsage usage, PatternParameterMapping.Provider provider)
dependency
- the dependency to associated with this delegate, a dependency
can have zero to many delegates associatedusage
- the pattern definition usage specifies which pattern
definition to delegate pattern behavior toprovider
- the pattern parameter mapping provider to use for this
delegate, the provider allows for the definition of target
parameter values via parameter mapping and literal
specificationMethod Detail |
public boolean update(PatternParameterValue dependent, PatternParameterValue dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
public boolean update(PatternParameterValue.Added dependent, PatternParameterValue.Maintained dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
update(PatternParameterValue, PatternParameterValue)
public boolean update(PatternParameterValue.Maintained dependent, PatternParameterValue.Added dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
update(PatternParameterValue, PatternParameterValue)
public boolean update(PatternParameterValue.Maintained dependent, PatternParameterValue.Maintained dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
update(PatternParameterValue, PatternParameterValue)
public boolean update(PatternParameterValue.Maintained dependent, PatternParameterValue.Removed dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
public boolean update(PatternParameterValue.Maintained dependent, PatternParameterValue.Replaced dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
public boolean update(PatternParameterValue.Removed dependent, PatternParameterValue.Maintained dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
public boolean update(PatternParameterValue.Replaced dependent, PatternParameterValue.Maintained dependency)
dependent
- the dependent parameter value in the dependencydependency
- the dependency parameter value in the dependency
|
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.