public class DefaultParameterValueStore extends Object implements ParameterValueStore, Iterable<Map.Entry<Parameter<?>,String>>
ParameterValueStore| Constructor and Description |
|---|
DefaultParameterValueStore()
Create a new, empty
DefaultParameterValueStore instance. |
DefaultParameterValueStore(DefaultParameterValueStore instance)
Create a new
DefaultParameterValueStore instance, copying all Parameter and value pairs from the
given instance. |
| Modifier and Type | Method and Description |
|---|---|
static ParameterValueStore |
getInstance(EvaluationContext context)
Retrieve the current
ParameterValueStore from the given EvaluationContext instance. |
boolean |
isValid(Rewrite event,
EvaluationContext context,
Parameter<?> param,
String value)
Validate the given
Parameter and value. |
Iterator<Map.Entry<Parameter<?>,String>> |
iterator() |
String |
retrieve(Parameter<?> parameter)
Retrieve the currenet value for the given
Parameter. |
boolean |
submit(Rewrite event,
EvaluationContext context,
Parameter<?> param,
String value)
Submit the given
Parameter and value. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic DefaultParameterValueStore()
DefaultParameterValueStore instance.public DefaultParameterValueStore(DefaultParameterValueStore instance)
DefaultParameterValueStore instance, copying all Parameter and value pairs from the
given instance.public String retrieve(Parameter<?> parameter)
ParameterValueStoreParameter. (May be null if no value has been set,
or if the value is null.)retrieve in interface ParameterValueStorepublic boolean submit(Rewrite event, EvaluationContext context, Parameter<?> param, String value)
ParameterValueStoreParameter and value. Return false if the value does not match configured
Constraint instances, or does not match an already submitted value; otherwise, return true..submit in interface ParameterValueStorepublic boolean isValid(Rewrite event, EvaluationContext context, Parameter<?> param, String value)
ParameterValueStoreParameter and value. Return false if the value does not match configured
Constraint instances, or does not match an already submitted value; otherwise, return true.isValid in interface ParameterValueStorepublic static ParameterValueStore getInstance(EvaluationContext context) throws IllegalStateException
ParameterValueStore from the given EvaluationContext instance.IllegalStateException - If the ParameterValueStore could not be located.Copyright © 2018 OCPsoft. All rights reserved.