public class SimpleFiller extends Object implements Filler
Filler
for which tags can be added programmatically.
Note that if a tag already exists, the setValue(String, Object)
treats it as a nested cast instead.
The class makes no concurrency guarantees on values. It's up to you!
Modifier and Type | Field and Description |
---|---|
Map<String,Iterable<? extends Filler>> |
iterableValues |
Map<String,?> |
values |
Constructor and Description |
---|
SimpleFiller() |
SimpleFiller(Map<String,?> values) |
SimpleFiller(Map<String,?> values,
Map<String,Iterable<? extends Filler>> iterableValues) |
Modifier and Type | Method and Description |
---|---|
void |
addIterableValue(String tag,
Object value) |
Iterable<? extends Filler> |
getFillers(String iteratorKey) |
Object |
getValue(String key) |
void |
setIterableValue(String iteratorKey,
Filler filler) |
void |
setIterableValue(String iteratorKey,
Iterable<? extends Filler> values) |
void |
setValue(String key,
Object value) |
public void setIterableValue(String iteratorKey, Iterable<? extends Filler> values)
public Object getValue(String key) throws CastException
getValue
in interface Filler
CastException
public Iterable<? extends Filler> getFillers(String iteratorKey) throws CastException
getFillers
in interface Filler
CastException
Copyright © 2009-2015 Three Crickets LLC.