|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.gdata.server.registry.configuration.ComponentConfiguration
public class ComponentConfiguration
Simple configuration class storing properties as key with defined property
values as values in a Map. As a map cannot
contain duplicate keys the first use of a key can not be replaced. If a key
is used twice a IllegalArgumentException will be thrown.
Map| Constructor Summary | |
|---|---|
ComponentConfiguration()
Creates a new ComponentConfiguration object and initializes the internal map. |
|
| Method Summary | |
|---|---|
boolean |
contains(String key)
|
String |
get(String key)
Returns the value of the key or null if the key is not set. |
void |
set(String key,
String value)
Stores a key / value pair as a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentConfiguration()
| Method Detail |
|---|
public void set(String key,
String value)
key - -
the property as a keyvalue - -
the value for the keyMap.put(Object, Object)public String get(String key)
null if the key is not set.
key - - the key
null if the key is not set.Map.get(java.lang.Object)public boolean contains(String key)
key - - a string key
true if the key is set, otherwise falseMap.containsKey(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||