| java.util.Properties org.java.plugin.util.ExtendedProperties
getProperty | public String getProperty(String key)(Code) | | Any parameter like ${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: abcdefgh
Note also that call props.get("param3") returns:
Alphabet starts with: ${param1}${param2}
So the
java.util.Map.get(java.lang.Object) works as usual and
returns raw (not expanded with substituted parameters) property value.
See Also: java.util.Properties.getProperty(java.lang.String) |
getSubset | public ExtendedProperties getSubset(String prefix)(Code) | | Parameters: prefix - string, each property key should start with (this prefixwill NOT be included into new key) sub-properties |
getSubset | public ExtendedProperties getSubset(String prefix, String newPrefix)(Code) | | Parameters: prefix - string, each property key should start with Parameters: newPrefix - new prefix to be added to each key instead of existingprefix sub-properties |
|
|