com.ibm.wbiserver.brules.mgmt

Interface ParameterValue

All Superinterfaces:
BusinessRuleChangeDetector, BusinessRuleValidateable, java.io.Serializable

  1. public interface ParameterValue
  2. extends java.io.Serializable, BusinessRuleValidateable, BusinessRuleChangeDetector
This interface represents the value for one template parameter.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. Parameter
getParameter()
Get the parameter for this value.
  1. java.lang.String
getValue()
Get the parameter value.
  1. void
setValue(java.lang.String newValue)
Set the parameter value.
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable
validate
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector
hasChanges

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

getParameter

  1. Parameter getParameter()
Get the parameter for this value.
Returns:
The parameter for this value.

getValue

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

  1. void setValue(java.lang.String newValue)
  2. 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.