| Java API Reference | Class Hierarchy | All Classes | All Fields and Methods |
com.ibm.xtools.patterns.framework
+-- AbstractParameterArgument +-- PatternParameterValue +-- PatternParameterValue.Added
final static public Class PatternParameterValue.Added
extends PatternParameterValue
The added subclass of pattern parameter value represents the state of when a pattern parameter value is added.
| Constructor summary |
|---|
| PatternParameterValue.Added(AbstractPatternInstance owningInstance, AbstractPatternParameter parameter, AbstractParameterArgument argument) Constructs a new added value. |
| Method summary | |
|---|---|
| void | accept(PatternParameterValue.Consumer consumer) An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed. |
| PatternParameterValue.Maintained | asMaintained() Produces a new maintained value from this added value's state. |
| void | enumerate(PatternParameterValue.Added.Consumer consumer) Enumerate through all the individual items that compose the value, for example step through each held object that comprises the value and allow the consumer interface to consume each one individually. |
| Methods inherited from PatternParameterValue | |
|---|---|
| accept, getArgument, getArguments, getImage, getMetatype, getOwningInstance, getOwningParameter, getValue, getValues, hasValue, hasValues, isValueFor | |
Constructor detail
public PatternParameterValue.Added(AbstractPatternInstance owningInstance, AbstractPatternParameter parameter, AbstractParameterArgument argument)
Constructs a new added value.
Parameters:
| owningInstance | - the instance that owns the argument |
| parameter | - the parameter that owns the argument |
| argument | - the parameter argument in the added state |
Method detail
public void accept(PatternParameterValue.Consumer consumer)
An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed.
Parameters:
| consumer | - |
public PatternParameterValue.Maintained asMaintained()
Produces a new maintained value from this added value's state.
Returns:
a new pattern parameter value with different identity as a different instance but with the same state underneath |
public void enumerate(PatternParameterValue.Added.Consumer consumer)
Enumerate through all the individual items that compose the value, for example step through each held object that comprises the value and allow the consumer interface to consume each one individually.
Parameters:
| consumer | - the callback interface that will be called for each object value wrapped by this value instance |