| Java API Reference | Class Hierarchy | All Classes | All Fields and Methods |
com.ibm.xtools.patterns.framework
+-- AbstractParameterArgument +-- PatternParameterValue
abstract public Class PatternParameterValue
extends AbstractParameterArgument
The pattern parameter value class is a key abstraction in the framework.
| Constructor summary |
|---|
| PatternParameterValue() The default constructor for PatternParameterValue class that is provided automatically by the compiler. |
| Method summary | |
|---|---|
| void | accept(PatternParameterValue.Consumer consumer) An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed. |
| AbstractParameterArgument | getArgument() Gets the current argument as a singular value, if multiple arguments are stored only the first is returned. |
| AbstractParameterArgument | getArguments() Gets the current arguments as a multivalue. |
| String | getImage() |
| IPatternMetatype | getMetatype() |
| AbstractPatternInstance | getOwningInstance() Get the owning instance. |
| AbstractPatternParameter | getOwningParameter() Get the owning parameter. |
| Object | getValue() Gets the current value as a singular value, if multiple values are stored only the first is returned. |
| Object | getValues() Gets the current value as a multivalue. |
| boolean | hasValue() Determine if this pattern parameter value has a value. |
| boolean | hasValues() Determine if this pattern parameter value has values or a value. |
| boolean | isValueFor(AbstractPatternParameter parameter) Determines if the parameter given has the value as specified by this instance. |
Constructor detail
public PatternParameterValue()
The default constructor for PatternParameterValue class that is provided automatically by the compiler.
Method detail
abstract public void accept(PatternParameterValue.Consumer consumer)
An abstract method that is implemented in the subclasses such as added, removed, maintained or proposed.
Parameters:
| consumer | - the callback interface |
public AbstractParameterArgument getArgument()
Gets the current argument as a singular value, if multiple arguments are stored only the first is returned.
Returns:
the first element of the arguments array |
public AbstractParameterArgument getArguments()
Gets the current arguments as a multivalue.
Returns:
returns the arguments as an array |
public IPatternMetatype getMetatype()
Returns:
an IPatternMetatype object. representing the metatype value
|
public AbstractPatternInstance getOwningInstance()
Get the owning instance.
Returns:
the owning instance for this pattern parameter value |
public AbstractPatternParameter getOwningParameter()
Get the owning parameter.
Returns:
the owning parameter for this pattern parameter value |
public Object getValue()
Gets the current value as a singular value, if multiple values are stored only the first is returned.
Returns:
the object value of the first element of the arguments array |
public Object getValues()
Gets the current value as a multivalue.
Returns:
returns the values as an Object array |
public boolean hasValue()
Determine if this pattern parameter value has a value.
Returns:
indicates whether or not a value exists |
public boolean hasValues()
Determine if this pattern parameter value has values or a value.
Returns:
indicates whether or not values exist |
public boolean isValueFor(AbstractPatternParameter parameter)
Determines if the parameter given has the value as specified by this instance.
Parameters:
| parameter | - the parameter to check if this is a value for |
Returns:
true if this is a value for the given parameter |