|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agimatec.commons.util.PropertyReplacer
public class PropertyReplacer
Title: Agimatec GmbH
Description: Class to replace ${property} properties by a value in a Map. Idea and code based on Jakarta ANT's ProjectHelper.java.
Company: Agimatec GmbH
| Constructor Summary | |
|---|---|
PropertyReplacer(java.util.Map aProperties)
|
|
| Method Summary | |
|---|---|
java.util.Map |
getProperties()
|
java.lang.String |
replaceProperties(java.lang.String value)
Source based on ant's tools.ant.ProjectHelper.java Replace ${} style constructions in the given value with the string value of the corresponding data types. |
java.lang.String |
replaceProperties(java.lang.String value,
java.lang.String chars)
Replace in a simple style with flexible separator chars, e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyReplacer(java.util.Map aProperties)
| Method Detail |
|---|
public java.util.Map getProperties()
public java.lang.String replaceProperties(java.lang.String value,
java.lang.String chars)
value - - string to replace properties inchars - - a two-char string with begin+end char, default (if null) = "{}"public java.lang.String replaceProperties(java.lang.String value)
value - the string to be scanned for property references.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||