public class DefaultParameterStore extends Object implements ParameterStore
Parameter store which retains the order, bindings, and names of parameters contained within.| Constructor and Description |
|---|
DefaultParameterStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String name)
Return
true if this ParameterStore contains a Parameter with the given name,
otherwise return false. |
Parameter<?> |
get(String name)
Get the
Parameter with the given name. |
Parameter<?> |
get(String name,
Parameter<?> deflt)
Retrieve the
Parameter with the given name, otherwise use the default, if supplied. |
static ParameterStore |
getInstance(EvaluationContext context)
Retrieve the current
ParameterStore from the given EvaluationContext instance. |
boolean |
isEmpty()
|
Iterator<Map.Entry<String,Parameter<?>>> |
iterator() |
int |
size()
Return the number of
Parameter instances in this ParameterStore. |
Parameter<?> |
store(Parameter<?> value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Parameter<?> get(String name, Parameter<?> deflt)
ParameterStoreParameter with the given name, otherwise use the default, if supplied.get in interface ParameterStorepublic Parameter<?> get(String name)
ParameterStoreParameter with the given name.get in interface ParameterStorepublic boolean isEmpty()
ParameterStoreisEmpty in interface ParameterStorepublic int size()
ParameterStoreParameter instances in this ParameterStore.size in interface ParameterStorepublic boolean contains(String name)
ParameterStoretrue if this ParameterStore contains a Parameter with the given name,
otherwise return false.contains in interface ParameterStorepublic static ParameterStore getInstance(EvaluationContext context) throws IllegalStateException
ParameterStore from the given EvaluationContext instance.IllegalStateException - If the ParameterValueStore could not be located.Copyright © 2021 OCPsoft. All rights reserved.