com.ibm.wbiserver.brules.mgmt
Interface ParameterValue
- All Superinterfaces:
- BusinessRuleChangeDetector, BusinessRuleValidateable, java.io.Serializable
public interface ParameterValue
- extends java.io.Serializable, BusinessRuleValidateable, BusinessRuleChangeDetector
This interface represents the value for one template parameter.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
Parameter |
getParameter()
Get the parameter for this value. |
java.lang.String |
getValue()
Get the parameter value. |
void |
setValue(java.lang.String newValue)
Set the parameter value. |
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
getParameter
Parameter getParameter()
- Get the parameter for this value.
- Returns:
- The parameter for this value.
getValue
java.lang.String getValue()
- Get the parameter value. This is a
String
that can be directly converted to
the type of the parameter.
- Returns:
- The parameter value
setValue
void setValue(java.lang.String newValue)
throws ValidationException
- Set the parameter value. The specified value is checked to
ensure that it is valid for this parameter given the parameter's data type and any
defined constraints. The value must be convertible, using standard Java methods, to
the type of the parameter. For example, if the type of the parameter is double, then
it must be possible to convert the value to a Java double using the
Double.valueOf()
method. Note that for boolean types the only allowed
values are the strings "true" and "false", all lower case. The converted value is
checked to ensure that it does not violate any constraints specified for the
parameter.
- Parameters:
newValue
- The new value for this parameter as a String
. This value
should be directly convertible to the type of the parameter using standard Java methods.
- Throws:
ValidationException
- if any validation errors are detected as specified above.
ChangesNotAllowedException
- if changes to this object are temporarily
disallowed while other changes are being published.