Package org.fugerit.java.core.util.regex
Class ParamFinder
- java.lang.Object
-
- org.fugerit.java.core.log.BasicLogObject
-
- org.fugerit.java.core.util.regex.ParamFinder
-
- All Implemented Interfaces:
LogObject
public class ParamFinder extends BasicLogObject
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALT1_POST
static String
ALT1_PRE
static String
DEFAULT_POST
static String
DEFAULT_PRE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParamFinder(String pre, String post, int preL, int postL)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count(CharSequence text, String param)
List<String>
getParamList(CharSequence text)
Set<String>
getParamSet(CharSequence text)
static ParamFinder
newFinder()
Creates a ParamFinder with default substitution ${param}static ParamFinder
newFinderAlt1()
Creates a ParamFinder with alternative substitution {param}String
substitute(CharSequence text, String param, String value)
String
substitute(CharSequence text, Properties params)
-
Methods inherited from class org.fugerit.java.core.log.BasicLogObject
getLogger
-
-
-
-
Field Detail
-
DEFAULT_PRE
public static final String DEFAULT_PRE
- See Also:
- Constant Field Values
-
DEFAULT_POST
public static final String DEFAULT_POST
- See Also:
- Constant Field Values
-
ALT1_PRE
public static final String ALT1_PRE
- See Also:
- Constant Field Values
-
ALT1_POST
public static final String ALT1_POST
- See Also:
- Constant Field Values
-
-
Method Detail
-
newFinder
public static ParamFinder newFinder()
Creates a ParamFinder with default substitution ${param}- Returns:
- the new ParamFinder
-
newFinderAlt1
public static ParamFinder newFinderAlt1()
Creates a ParamFinder with alternative substitution {param}- Returns:
- the new ParamFinder
-
getParamSet
public Set<String> getParamSet(CharSequence text)
-
getParamList
public List<String> getParamList(CharSequence text)
-
count
public int count(CharSequence text, String param)
-
substitute
public String substitute(CharSequence text, String param, String value)
-
substitute
public String substitute(CharSequence text, Properties params)
-
-