createTemplateInstanceExpression
TemplateInstanceExpression createTemplateInstanceExpression(java.util.List<ParameterValue> parameterValues)
throws ValidationException
Create a template instance expression based on this condition value
template and having the specified values for its parameters. The
parameter values are checked to ensure that all parameters for this
template have a value and that all of the parameters in the parameter
value list correspond to parameters defined on this template. If any
errors are detected, a ValidationException
is thrown.
- Parameters:
parameterValues
- The template parameter values for the new template instance.
New ParameterValue
objects can be created using
the
createParameterValue
method on the Parameter
class. Must not be null
or empty. Also, the elements within the list must not be null.
The order of the parameter values in the list does not need to
match the order of the parameters in the template, however, if
the order is different, the parameter values will be reordered
when they are stored to match the order of the parameters in
the template.
- Returns:
- The new template instance expression representing the new
condition value.
- Throws:
ValidationException
- if any validation errors are detected as defined above.
ChangesNotAllowedException
- if changes related to this object are temporarily disallowed
while other changes are being published.
java.lang.IllegalArgumentException
- if parameterValues
is null, or if
parameterValues
contains any null elements.