|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Subject to change. A container of parameters. A parameter context binds together a set of parameters and keeps their values.
Parameter
Field Summary | |
static String |
versionId
|
Method Summary | |
Object |
get(Parameter param)
Gets the unmarshaled value of param . |
Object |
get(Parameter param,
Object dephalt)
Gets the unmarshaled value of param , returning
dephalt if param 's value is null. |
Parameter[] |
getParameters()
Returns all the parameters registered on the parameter context. |
void |
load(ParameterReader reader,
ErrorList errors)
Reads and unmarshals all values associated with the registered parameters from reader . |
void |
save(ParameterWriter writer)
Marshals and writes all values associated with the registered parameters to writer . |
void |
set(Parameter param,
Object value)
Sets the value of param to value . |
void |
validate(ErrorList errors)
Validates all values associated with the registered parameters. |
Field Detail |
public static final String versionId
Method Detail |
public Parameter[] getParameters()
Parameter[]
of all the parameters; it
cannot be nullpublic Object get(Parameter param)
param
. If the
loaded value is null, param.getDefaultValue()
is
returned.
param
- The named Parameter
whose value to
retrieve; it cannot be null
param
public Object get(Parameter param, Object dephalt)
param
, returning
dephalt
if param
's value is null.
param
- The Parameter
whose value to
retrieve; it cannot be nulldephalt
- The fallback default value; it may be null
param
or dephalt
if the former is nullpublic void set(Parameter param, Object value)
param
to value
.
param
- The Parameter
whose value to set; it
cannot be nullvalue
- The new value of param
; it may be
nullpublic void load(ParameterReader reader, ErrorList errors)
reader
. If any errors are
encountered, they are added to errors
.
reader
- The ParameterReader
from which to
fetch the values; it cannot be nullerrors
- The ErrorList
that captures any
errors while loading; it cannot be nullpublic void save(ParameterWriter writer)
writer
.
writer
- The ParameterWriter
to which values
are written; it cannot be nullpublic void validate(ErrorList errors)
errors
.
errors
- The ErrorList
that captures
validation errors; it cannot be null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |