|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.ant.website.PropertySub
A property substitution object matches property templates with values and replaces them. A propeprty template has the syntax:
${xxx}
Where 'xxx' is the property name. This object contains a Properties
object which matches property names to values. All found propertyes will be
substituted.
| Constructor Summary | |
PropertySub()
Create new substitution with an empty property set. |
|
PropertySub(java.util.Properties props)
Create substitution using an existing set of properties. |
|
| Method Summary | |
java.util.Properties |
getProperties()
Get a reference to the property collection used by this class. |
java.lang.String |
substitute(java.lang.String source)
Do substitution. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertySub(java.util.Properties props)
props - Properties to be replaces during substitutionpublic PropertySub()
| Method Detail |
public java.lang.String substitute(java.lang.String source)
substitute in interface Substitutionpublic java.util.Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||