|
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.PatternParameterDelegate
The pattern parameter delegate class specializes the abstract pattern delegate abstract class. A pattern parameter delegate enables a pattern parameter to delegate some of its behavior to another pattern definition. This class acts as an adapter, adapting the pattern parameter expand-related method interface to the pattern service's pattern manipulation interfaces.
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 | |
PatternParameterDelegate(AbstractPatternParameter parameter,
PatternDefinitionUsage usage)
Constructs a pattern parameter delegate given a pattern parameter and a pattern definition usage. |
|
PatternParameterDelegate(AbstractPatternParameter parameter,
PatternDefinitionUsage usage,
PatternParameterMapping.Provider provider)
Constructs a pattern parameter delegate given a pattern parameter and a pattern definition usage. |
Method Summary | |
boolean |
expand(PatternParameterValue.Added value)
The expand method turns around and invokes another expand method variant that takes the more general pattern parameter value. |
boolean |
expand(PatternParameterValue.Maintained value)
The expand method turns around and invokes another expand method variant that takes the more general pattern parameter value. |
boolean |
expand(PatternParameterValue.Removed value)
The removed variant of the expand method takes a single pattern parameter value object and adapts this call into the appropriate pattern service interface calls. |
boolean |
expand(PatternParameterValue.Replaced value)
The replaced variant of the expand method takes a single pattern parameter value object and adapts this call into the appropriate pattern service interface calls. |
boolean |
expand(PatternParameterValue value)
The general expand method takes a single pattern parameter value object and adapts this call into the appropriate pattern service interface calls. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PatternParameterDelegate(AbstractPatternParameter parameter, PatternDefinitionUsage usage)
parameter
- the pattern parameter to be associated with this pattern
parameter delegateusage
- the pattern definition usage that defines the pattern
definition to use for delegationpublic PatternParameterDelegate(AbstractPatternParameter parameter, PatternDefinitionUsage usage, PatternParameterMapping.Provider provider)
parameter
- the pattern parameter to be associated with this pattern
parameterusage
- the pattern definition usage that defines the pattern
definition to use for delegationprovider
- the mapping provider that will be called back for mapping to
take place.Method Detail |
public boolean expand(PatternParameterValue value)
value
- the value involved in the pattern expansion
public boolean expand(PatternParameterValue.Added value)
value
- the value to be forwarded to the more general expand method
public boolean expand(PatternParameterValue.Maintained value)
value
- the value to be forwarded to the more general expand method
public boolean expand(PatternParameterValue.Removed value)
value
- the value involved in the pattern expansion
public boolean expand(PatternParameterValue.Replaced value)
value
- the value involved in the pattern expansion
|
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.