|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.org.ogsadai.config.SimpleKeyValueProperties
public class SimpleKeyValueProperties
Simple implementation of a key-value properties set.
| Constructor Summary | |
|---|---|
SimpleKeyValueProperties()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addKeyValueEventListener(KeyValueEventListener listener)
Add a listener to those to be notified of state changed. |
void |
clear(Key key)
Remove property with specific key. |
void |
clearRegexp(java.lang.String regexp)
Remove keys from the properties based on a supplied regular expression for matching keys. |
boolean |
containsKey(Key key)
Returns true if this properties set has a entry for this specified key. |
java.lang.Object |
get(Key key)
Return the value associated with a specific key. |
Key[] |
getKeys()
Return the keys of all the values. |
Key[] |
getKeysRegexp(java.lang.String regexp)
Return all the keys that match a given regular expression. |
void |
put(Key key,
java.lang.Object value)
Add a key-value to the set. |
void |
put(KeyValueProperties keyValueProperties)
Puts all the entries in the given key-value properties store into this key-value properties store. |
void |
putIndexed(Key key,
java.lang.Object[] values)
Put the values of the array in successive keys where each value is entered with a separate key formed from the given key with a postfix of 1..N where N = values.length. |
void |
removeKeyValueEventListener(KeyValueEventListener listener)
Remove a listener from those to be notified of state changed. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleKeyValueProperties()
| Method Detail |
|---|
public boolean containsKey(Key key)
containsKey in interface KeyValuePropertieskey - keys whose value in the properties set is to be tested.
public Key[] getKeys()
getKeys in interface KeyValueProperties
public java.lang.Object get(Key key)
throws KeyValueUnknownException
get in interface KeyValuePropertieskey - Key
KeyValueUnknownException - If there is no value with the given key.
public Key[] getKeysRegexp(java.lang.String regexp)
throws java.util.regex.PatternSyntaxException
getKeysRegexp in interface KeyValuePropertiesregexp - Regular expression.
java.util.regex.PatternSyntaxException - If the regular expression is not valid.
public void put(Key key,
java.lang.Object value)
put in interface KeyValuePropertieskey - Keyvalue - Value
public void putIndexed(Key key,
java.lang.Object[] values)
putIndexed in interface KeyValuePropertieskey - Key prefixvalues - Valuespublic void put(KeyValueProperties keyValueProperties)
put in interface KeyValuePropertieskeyValueProperties - the key-value properties to be added.public void clear(Key key)
clear in interface KeyValuePropertieskey - Key prefix
public void clearRegexp(java.lang.String regexp)
throws java.util.regex.PatternSyntaxException
clearRegexp in interface KeyValuePropertiesregexp - Pattern for keys to remove
java.util.regex.PatternSyntaxException - If the regular expression is not valid.public void addKeyValueEventListener(KeyValueEventListener listener)
addKeyValueEventListener in interface KeyValueEventDispatcherlistener - the listener to be addedpublic void removeKeyValueEventListener(KeyValueEventListener listener)
removeKeyValueEventListener in interface KeyValueEventDispatcherlistener - the listener to be removedpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||