Package sunlabs.brazil.properties
Class SubstPropsHandler.Resub
- java.lang.Object
-
- sunlabs.brazil.properties.SubstPropsHandler.Resub
-
- All Implemented Interfaces:
SubstPropsHandler.Convert
- Enclosing class:
- SubstPropsHandler
public static class SubstPropsHandler.Resub extends java.lang.Object implements SubstPropsHandler.Convert
Do a regexp substitution on a value. This takes the following initialization parameters:- match
- A Regular expression that matches the string value.
- sub
- The regular expression substitution to perform. All occurances of "match" are substututed.
-
-
Constructor Summary
Constructors Constructor Description Resub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaninit(java.lang.String prefix, java.util.Properties p)This is called once at creation time to provide this class with configuration information.java.lang.Stringmap(java.lang.String value)Map the value.
-
-
-
Method Detail
-
init
public boolean init(java.lang.String prefix, java.util.Properties p)Description copied from interface:SubstPropsHandler.ConvertThis is called once at creation time to provide this class with configuration information. Any configuration parameters required in "p" are prefixed with [prefix].- Specified by:
initin interfaceSubstPropsHandler.Convert
-
map
public java.lang.String map(java.lang.String value)
Description copied from interface:SubstPropsHandler.ConvertMap the value.- Specified by:
mapin interfaceSubstPropsHandler.Convert
-
-