|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Configuration
Represent the results of processing a properties file. Contains zero or more properties that can be retrieved by their key.
| Method Summary | |
|---|---|
int |
getInteger(java.lang.String key)
Get the value of a property with a given key as a number (int). |
int |
getInteger(java.lang.String key,
int defaultValue)
Get the value of a property with a given key. |
java.util.Iterator<java.lang.String> |
getKeys()
Get an iterator over all the keys in the configuration |
java.lang.String |
getString(java.lang.String key)
Get the value of a property with a given key. |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Get the value of a property with a given key. |
java.net.URI |
getURI(java.lang.String key)
Get the value of a property with a given key as a URI. |
java.net.URI |
getURI(java.lang.String key,
java.net.URI defaultValue)
Get the value of a property with a given key as a URI. |
| Method Detail |
|---|
java.lang.String getString(java.lang.String key)
key - Determines which property to get the value for.
java.util.NoSuchElementException - if the given key is not in the properties file.
java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - Determines which property to get the value for.defaultValue - Returned if the key is not found.
int getInteger(java.lang.String key)
key - Determines which property to get the value for.
java.util.NoSuchElementException - If the given key is not in the properties file.
ConversionException - If the String value of the property cannot be converted to an 'int'
int getInteger(java.lang.String key,
int defaultValue)
key - Determines which property to get the value for.defaultValue - Returned if the key is not found.
ConversionException - If the String value of the property cannot be converted to an 'int'java.net.URI getURI(java.lang.String key)
key - Determines which property to get the value for.
java.util.NoSuchElementException - If the given key is not in the properties file.
ConversionException - If the String value of the property cannot be converted to a URI
java.net.URI getURI(java.lang.String key,
java.net.URI defaultValue)
key - Determines which property to get the value for.defaultValue - Returned if the key is not found.
java.util.NoSuchElementException - If the given key is not in the properties file.
ConversionException - If the String value of the property cannot be converted to a URIjava.util.Iterator<java.lang.String> getKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||