|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.util.ConfigurationSet
public final class ConfigurationSet
A ConfigurationSet
is a ModifiableMap
and consists of a set of Configuration
s.
The map associations are the union of the associations of the
individual configurations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.grogra.util.ModifiableMap |
---|
ModifiableMap.Producer |
Nested classes/interfaces inherited from interface de.grogra.util.Map |
---|
Map.Chain |
Field Summary |
---|
Fields inherited from interface de.grogra.util.Map |
---|
DEFAULT_VALUE, EMPTY_MAP |
Constructor Summary | |
---|---|
ConfigurationSet(java.lang.String name)
Creates a new configuration set with the given name . |
Method Summary | |
---|---|
void |
add(Configurable c)
Adds the configurations of c to this set by invoking
Configurable.addConfigurations(ConfigurationSet) on
c . |
void |
add(Configuration c)
Adds c to this set. |
java.lang.Object |
get(java.lang.Object key,
java.lang.Object defaultValue)
Returns the value associated with key . |
KeyDescription[] |
getKeyDescriptions()
Returns the union of the KeyDescription s of the
contained configurations. |
java.lang.String |
getName()
Returns the name of this set. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps key to value . |
int |
size()
Returns the number of configurations. |
void |
writeBack()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationSet(java.lang.String name)
name
.
name
- the name for this setMethod Detail |
---|
public void add(Configurable c)
c
to this set by invoking
Configurable.addConfigurations(ConfigurationSet)
on
c
. If this method is invoke more than once with the same
c
, only the first invocation has an effect.
c
- a configurable objectpublic void add(Configuration c)
c
to this set.
c
- the configuration to be addedpublic java.lang.Object get(java.lang.Object key, java.lang.Object defaultValue)
Map
key
. If there is
no value associated with key
, defaultValue
is returned.
get
in interface Map
key
- a key for the mapdefaultValue
- the default value
defaultValue
public KeyDescription[] getKeyDescriptions()
KeyDescription
s of the
contained configurations.
public java.lang.String getName()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
ModifiableMap
key
to value
. Following invocations
of the get
-method with key
as key will
return value
.
put
in interface ModifiableMap
key
- a keyvalue
- the value to be associated with key
null
public int size()
public void writeBack()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |