public class Config
extends java.util.Properties
Modifier and Type | Method and Description |
---|---|
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.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
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()
toString
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public static void main(java.lang.String[] args)
Copyright ? 2003 Apache Software Foundation. All rights reserved.