org.stringtree.fetcher
Class MapFetcher
java.lang.Object
org.stringtree.fetcher.MapFetcher
- All Implemented Interfaces:
- Container, Fetcher, Listable, Repository, Storer
- Direct Known Subclasses:
- SpecFileFetcher, SystemPropertiesFetcher, WikiFormatterContext
public class MapFetcher
- extends java.lang.Object
- implements Repository, Listable, Container
Field Summary |
private boolean |
locked
|
protected java.util.Map |
values
|
Fields inherited from interface org.stringtree.Storer |
STORE |
Fields inherited from interface org.stringtree.Listable |
LIST |
Method Summary |
void |
clear()
|
boolean |
contains(java.lang.String name)
|
java.util.Map |
getMap()
|
java.lang.Object |
getObject(java.lang.String key)
|
java.util.Iterator |
list()
|
void |
lock()
|
void |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map map)
|
void |
remove(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected java.util.Map values
locked
private boolean locked
MapFetcher
public MapFetcher(java.util.Map values,
boolean locked)
MapFetcher
public MapFetcher(java.util.Map values)
MapFetcher
public MapFetcher()
getObject
public java.lang.Object getObject(java.lang.String key)
- Specified by:
getObject
in interface Fetcher
put
public void put(java.lang.String key,
java.lang.Object value)
- Specified by:
put
in interface Storer
putAll
public void putAll(java.util.Map map)
remove
public void remove(java.lang.String name)
- Specified by:
remove
in interface Storer
clear
public void clear()
- Specified by:
clear
in interface Storer
lock
public void lock()
- Specified by:
lock
in interface Storer
list
public java.util.Iterator list()
- Specified by:
list
in interface Listable
contains
public boolean contains(java.lang.String name)
- Specified by:
contains
in interface Container
getMap
public java.util.Map getMap()