Java API ReferenceClass Hierarchy | All Classes | All Fields and Methods

com.ibm.xtools.patterns.framework

Class PatternParameterValue.Added

+-- 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.

Enclosing Class:


Constructor summary
PatternParameterValue.Added(AbstractPatternInstance owningInstance, AbstractPatternParameter parameter, AbstractParameterArgument argument)

Constructs a new added value.

Method summary
voidaccept(PatternParameterValue.Consumer consumer)

An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed.

PatternParameterValue.MaintainedasMaintained()

Produces a new maintained value from this added value's state.

voidenumerate(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

PatternParameterValue.Added

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

accept

public void accept(PatternParameterValue.Consumer consumer)

An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed.

Parameters:

consumer
-

asMaintained

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

enumerate

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


Feedback