|
JPF 0.10 | ||||||||||
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.java.plugin.util.ExtendedProperties
This implementation supports parameters substitution in property value.
getProperty(String)
,
Serialized FormField Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
ExtendedProperties()
|
|
ExtendedProperties(java.util.Properties defs)
|
Method Summary | |
java.lang.String |
getProperty(java.lang.String key)
Any parameter like ${propertyName} in property value will
be replaced with the value of property with name
propertyName .
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
|
ExtendedProperties |
getSubset(java.lang.String prefix)
|
ExtendedProperties |
getSubset(java.lang.String prefix,
java.lang.String newPrefix)
|
Methods inherited from class java.util.Properties |
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()
Properties.Properties()
public ExtendedProperties(java.util.Properties defs)
Properties.Properties(java.util.Properties)
Method Detail |
public java.lang.String getProperty(java.lang.String key)
${propertyName}
in property value will
be replaced with the value of property with name
propertyName
.
For example, for the following set of properties:
param1=abcd param2=efgh param3=Alphabet starts with: ${param1}${param2}The call
props.getProperty("param3")
returns:
Alphabet starts with: abcdefghNote also that call
props.get("param3")
returns:
Alphabet starts with: ${param1}${param2}So the
Map.get(java.lang.Object)
works as usual and
returns raw (not expanded with substituted parameters) property value.
Properties.getProperty(java.lang.String)
public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
Properties.getProperty(java.lang.String, java.lang.String)
public ExtendedProperties getSubset(java.lang.String prefix)
prefix
- string, each property key should start with (this prefix
will NOT be included into new key)
public ExtendedProperties getSubset(java.lang.String prefix, java.lang.String newPrefix)
prefix
- string, each property key should start withnewPrefix
- new prefix to be added to each key instead of existing
prefix
|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |