|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>>
com.fatwire.agent.Properties
public class Properties
Properties class.
This class is used to hold properties of runtime components, e.g. connector, provider, etc. Properties are an associative collection of name-value pairs. A single name can have several corresponding values.
Constructor Summary | |
---|---|
Properties()
|
Method Summary | |
---|---|
java.lang.String |
getPropertyValue(java.lang.String name)
Retrieves property value by its name. |
java.lang.String |
getPropertyValue(java.lang.String name,
java.lang.String defaultValue)
Retrieves property value by its name. |
java.util.List<java.lang.String> |
getPropertyValues(java.lang.String name)
Retrieves property values by the name. |
void |
setPropertyValue(java.lang.String name,
java.lang.String value)
Sets property value. |
void |
setPropertyValues(java.lang.String name,
java.util.List<java.lang.String> values)
Sets property values. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public Properties()
Method Detail |
---|
public java.lang.String getPropertyValue(java.lang.String name) throws NotFoundException
key
- key to search for.
NotFoundException
- if the requested value is not present.public java.lang.String getPropertyValue(java.lang.String name, java.lang.String defaultValue)
key
- key to search for.defaultValue
- value to return in case key is absent.
An absence of values treated as an empty value.public void setPropertyValue(java.lang.String name, java.lang.String value)
key
- property key.value
- property value.public java.util.List<java.lang.String> getPropertyValues(java.lang.String name) throws NotFoundException
key
- key to search for.
NotFoundException
- if the supplied key was not found.public void setPropertyValues(java.lang.String name, java.util.List<java.lang.String> values)
key
- property key.values
- property values.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |