Package jadex.bridge.modelinfo
Class ModelValueProvider
- java.lang.Object
-
- jadex.bridge.modelinfo.ModelValueProvider
-
- All Implemented Interfaces:
IModelValueProvider
public class ModelValueProvider extends java.lang.Object implements IModelValueProvider
Default model value provider.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ModelValueProvider()
Create a new provider.ModelValueProvider(java.util.Map<java.lang.String,java.lang.Object> values)
Create a new provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
ANY_CONFIG
public static final java.lang.String ANY_CONFIG
Constant for no configuration selected.- See Also:
- Constant Field Values
-
values
protected java.util.Map<java.lang.String,java.lang.Object> values
The values.
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.String configname)
Get the value.- Specified by:
getValue
in interfaceIModelValueProvider
- Returns:
- The value.
-
setValue
public void setValue(java.lang.Object value)
Set the value.- Parameters:
value
- The value to set.
-
setValue
public void setValue(java.lang.String configname, java.lang.Object value)
Set the value.- Parameters:
value
- The value to set.
-
getValues
public java.util.Map<java.lang.String,java.lang.Object> getValues()
Get the values.- Returns:
- the values.
-
setValues
public void setValues(java.util.Map<java.lang.String,java.lang.Object> values)
Set the values.- Parameters:
values
- The values to set.
-
-