|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.apache.juddi.util.Config
This class provides read access to key/value pairs loaded from a properties file.
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Method Summary | |
static void |
addProperties(java.util.Properties props)
Returns a reference to the singleton Properties instance. |
static boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue)
Get a configuration property as a boolean primitive. |
static java.lang.String |
getDiscoveryURL()
|
static int |
getIntProperty(java.lang.String key,
int defaultValue)
Get a configuration property as an int primitive. |
static long |
getLongProperty(java.lang.String key,
long defaultValue)
Get a configuration property as an long primitive. |
static int |
getMaxNameElementsAllowed()
|
static int |
getMaxNameLengthAllowed()
|
static java.lang.String |
getOperator()
|
static java.util.Properties |
getProperties()
Returns a reference to the singleton Properties instance. |
static java.lang.String |
getStringProperty(java.lang.String key)
Retrieves a configuration property as a String object. |
static java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue)
Retrieves a configuration property as a String object. |
static java.net.URL |
getURLProperty(java.lang.String key,
java.net.URL defaultValue)
Get a configuration property as a URL object. |
static void |
main(java.lang.String[] args)
|
static void |
setStringProperty(java.lang.String name,
java.lang.String value)
Sets a property value in jUDDI's property registry. |
java.lang.String |
toString()
Returns a String containing a pipe-delimited ('|') list of name/value pairs. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void addProperties(java.util.Properties props)
public static java.util.Properties getProperties()
public static java.lang.String getOperator()
public static java.lang.String getDiscoveryURL()
public static int getMaxNameLengthAllowed()
public static int getMaxNameElementsAllowed()
public static java.lang.String getStringProperty(java.lang.String key, java.lang.String defaultValue)
key
- Name of the property to be returned.
public static int getIntProperty(java.lang.String key, int defaultValue)
key
- Name of the numeric property to be returned.
public static long getLongProperty(java.lang.String key, long defaultValue)
key
- Name of the numeric property to be returned.
public static boolean getBooleanProperty(java.lang.String key, boolean defaultValue)
key
- Name of the numeric property to be returned.
public static java.net.URL getURLProperty(java.lang.String key, java.net.URL defaultValue)
key
- Name of the url property to be returned.
public static java.lang.String getStringProperty(java.lang.String key)
key
- Name of the property to be returned.
public static void setStringProperty(java.lang.String name, java.lang.String value)
name
- Name of the property to be returned.value
- Property value as a string.public java.lang.String toString()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |