public class ModelValueProvider extends java.lang.Object implements IModelValueProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANY_CONFIG
Constant for no configuration selected.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
values
The values.
|
Constructor and Description |
---|
ModelValueProvider()
Create a new provider.
|
ModelValueProvider(java.util.Map<java.lang.String,java.lang.Object> values)
Create a new provider.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getValue(java.lang.String configname)
Get the value.
|
java.util.Map<java.lang.String,java.lang.Object> |
getValues()
Get the values.
|
void |
setValue(java.lang.Object value)
Set the value.
|
void |
setValue(java.lang.String configname,
java.lang.Object value)
Set the value.
|
void |
setValues(java.util.Map<java.lang.String,java.lang.Object> values)
Set the values.
|
public static final java.lang.String ANY_CONFIG
protected java.util.Map<java.lang.String,java.lang.Object> values
public ModelValueProvider()
public ModelValueProvider(java.util.Map<java.lang.String,java.lang.Object> values)
public java.lang.Object getValue(java.lang.String configname)
getValue
in interface IModelValueProvider
public void setValue(java.lang.Object value)
value
- The value to set.public void setValue(java.lang.String configname, java.lang.Object value)
value
- The value to set.public java.util.Map<java.lang.String,java.lang.Object> getValues()
public void setValues(java.util.Map<java.lang.String,java.lang.Object> values)
values
- The values to set.