|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--java.util.Properties
|
+--edu.ucsb.adl.middleware.ExtendedProperties
Extends class java.util.Properties to support macro
substitution in property values.
Specifically, property values are interpreted literally except for at-sign-delimited operators, which are interpreted as follows:
@@@P@@P@", the trailing at-sign may be
omitted. For example, in the following property list,
a: iggledy
b: @a
c: h@b@-p@b@@@disorder.com
the value of property c is
"higgledy-piggledy@disorder.com".
$Log: ExtendedProperties.java,v $ Revision 1.1 2004/09/21 17:16:55 gjanee Initial revision
| Field Summary |
| Fields inherited from class java.util.Properties |
defaults |
| Constructor Summary | |
ExtendedProperties()
Creates an empty property list. |
|
ExtendedProperties(java.util.Properties defaults)
Creates an empty property list with the specified defaults. |
|
| Method Summary | |
java.lang.String |
getProperty(java.lang.String property)
Returns the value of a property. |
java.lang.String |
getPropertySafe(java.lang.String property)
Identical to getProperty, but throws an exception
instead of returning null. |
| Methods inherited from class java.util.Properties |
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, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExtendedProperties()
public ExtendedProperties(java.util.Properties defaults)
defaults - Default property values.| Method Detail |
public java.lang.String getProperty(java.lang.String property)
getProperty in class java.util.Propertiesproperty - The property name.
null if the property is
not found or if a property directly or indirectly referred to
by the property value is not found.
public java.lang.String getPropertySafe(java.lang.String property)
throws InternalErrorException
getProperty, but throws an exception
instead of returning null.
property - The property name.
InternalErrorException - If the property is not found or if a property directly or
indirectly referred to by the property value is not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||