public class SimpleValueFetcher extends java.lang.Object implements IValueFetcher
Modifier and Type | Field and Description |
---|---|
protected IValueFetcher |
parent
The parent fetcher if any.
|
protected java.util.Map |
values
The values.
|
Constructor and Description |
---|
SimpleValueFetcher()
Create a new fetcher.
|
SimpleValueFetcher(IValueFetcher parent)
Create a new fetcher.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
fetchValue(java.lang.String name)
Fetch a value via its name.
|
void |
setValue(java.lang.String key,
java.lang.Object value)
Set a value.
|
void |
setValues(java.util.Map<java.lang.String,java.lang.Object> values)
Set values.
|
protected java.util.Map values
protected IValueFetcher parent
public SimpleValueFetcher()
public SimpleValueFetcher(IValueFetcher parent)
public java.lang.Object fetchValue(java.lang.String name)
fetchValue
in interface IValueFetcher
name
- The name.public void setValue(java.lang.String key, java.lang.Object value)
key
- The key.value
- The value.public void setValues(java.util.Map<java.lang.String,java.lang.Object> values)
values
- The values map.