|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.PropertyUtils.PropertyExpansionMacro
Property expansion template that resolves property names into values using specified properties. If no properties are given to the constructor, system properties are used. The input to the macro has the following syntax:
name[,defaultValue]For instance: "temp.dir,/tmp". If this template resolves against system properties (e.g. if no-arg constructor is used), two special-purpose names are supported: "/" resolves to File.separator, and ":" resolves to File.pathSeparator. This allows to use shortcuts like "${/}" and "${:}" in configuration files.
Constructor Summary | |
PropertyUtils.PropertyExpansionMacro()
Creates a new property expansion macro template that resolves against system properties. |
|
PropertyUtils.PropertyExpansionMacro(java.util.Properties props)
Creates a new property expansion macro template that resolves against specified properties. |
Method Summary | |
java.lang.String |
process(java.lang.String input)
Returns property value for the specified property name, possibly using specified default value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyUtils.PropertyExpansionMacro()
public PropertyUtils.PropertyExpansionMacro(java.util.Properties props)
props
- the properties to resolve againstMethod Detail |
public java.lang.String process(java.lang.String input)
process
in interface PropertyUtils.Macro
input
- the property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |