Package org.ocpsoft.rewrite.param
Class DefaultParameterStore
java.lang.Object
org.ocpsoft.rewrite.param.DefaultParameterStore
- All Implemented Interfaces:
Iterable<Map.Entry<String,,Parameter<?>>> ParameterStore
Parameter store which retains the order, bindings, and names of parameters contained within.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturntrueif thisParameterStorecontains aParameterwith the given name, otherwise returnfalse.Parameter<?>Get theParameterwith the given name.Parameter<?>Retrieve theParameterwith the given name, otherwise use the default, if supplied.static ParameterStoregetInstance(EvaluationContext context) Retrieve the currentParameterStorefrom the givenEvaluationContextinstance.booleanisEmpty()iterator()intsize()Return the number ofParameterinstances in thisParameterStore.Parameter<?>toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DefaultParameterStore
public DefaultParameterStore()
-
-
Method Details
-
get
Description copied from interface:ParameterStoreRetrieve theParameterwith the given name, otherwise use the default, if supplied.- Specified by:
getin interfaceParameterStore
-
get
Description copied from interface:ParameterStoreGet theParameterwith the given name.- Specified by:
getin interfaceParameterStore
-
isEmpty
public boolean isEmpty()Description copied from interface:ParameterStore- Specified by:
isEmptyin interfaceParameterStore
-
store
-
size
public int size()Description copied from interface:ParameterStoreReturn the number ofParameterinstances in thisParameterStore.- Specified by:
sizein interfaceParameterStore
-
iterator
-
contains
Description copied from interface:ParameterStoreReturntrueif thisParameterStorecontains aParameterwith the given name, otherwise returnfalse.- Specified by:
containsin interfaceParameterStore
-
toString
-
getInstance
Retrieve the currentParameterStorefrom the givenEvaluationContextinstance.- Throws:
IllegalStateException- If theParameterValueStorecould not be located.
-