Package edu.odu.cs.cowem.documents
Class PropertySubstitutions
- java.lang.Object
-
- edu.odu.cs.cowem.documents.PropertySubstitutions
-
- All Implemented Interfaces:
TextSubstitutions
public class PropertySubstitutions extends java.lang.Object implements TextSubstitutions
Provides substitution of @name@ tokens by named values from a property set.
-
-
Constructor Summary
Constructors Constructor Description PropertySubstitutions(java.util.Properties properties0)Create a substitution set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringapply(java.lang.String target)Apply substitutions.
-
-
-
Method Detail
-
apply
public final java.lang.String apply(java.lang.String target)
Apply substitutions.- Specified by:
applyin interfaceTextSubstitutions- Parameters:
target- original string- Returns:
- original after applying substitutions.
-
-