|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.compoze.util.ObjectProperties
com.compoze.util.MutableProperties
public class MutableProperties
This class provides a properties object that can change the response for its
values based on a named configuration. An example listing of properties is
as follows:
# default property link.yahoo = http://www.yahoo.com/ # property used for named configuration "europe" europe-link.yahoo = http://www.europe.yahoo.com/
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
MutableProperties()
Constructor. |
|
MutableProperties(java.util.LinkedList configuration)
Constructor. |
|
MutableProperties(java.util.Properties defaults)
Constructor. |
|
MutableProperties(java.util.Properties defaults,
java.util.LinkedList configuration)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getProperty(java.lang.String sKey)
Get a property. |
java.lang.String |
getProperty(java.lang.String sKey,
java.lang.String sDefault)
Get a property. |
java.util.Enumeration |
propertyNames()
This method overrides the same method in java.util.Properties,
and returns property names without their mutable property prefixes. |
void |
setConfiguration(java.util.LinkedList configuration)
Set the current configuration. |
| Methods inherited from class com.compoze.util.ObjectProperties |
|---|
getBoolean, getBoolean, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getString, getString, getStringArray, getStringArray, getStringArray, replaceSubstitutions |
| Methods inherited from class java.util.Properties |
|---|
list, list, load, loadFromXML, save, setProperty, store, storeToXML, storeToXML |
| 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, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableProperties()
public MutableProperties(java.util.Properties defaults)
defaults - default propertiespublic MutableProperties(java.util.LinkedList configuration)
configuration - the list of configurations to set (in order of precedence)
public MutableProperties(java.util.Properties defaults,
java.util.LinkedList configuration)
defaults - default propertiesconfiguration - the list of configurations to set (in order of precedence)| Method Detail |
|---|
public java.util.Enumeration propertyNames()
java.util.Properties,
and returns property names without their mutable property prefixes.
propertyNames in class java.util.Propertiespublic void setConfiguration(java.util.LinkedList configuration)
configuration - the list of configurations to set (in order of precedence)public java.lang.String getProperty(java.lang.String sKey)
getProperty in class ObjectPropertiessKey - the key of the property
public java.lang.String getProperty(java.lang.String sKey,
java.lang.String sDefault)
getProperty in class ObjectPropertiessKey - the key of the propertysDefault - the default to return if a value for the
configuration is not found
|
Oracle | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||