net.sf.mmm.util.text.base
Class TransformerRule
java.lang.Object
net.sf.mmm.util.text.base.TransformerRule
- Direct Known Subclasses:
- SuffixTransformerRule
public abstract class TransformerRule
- extends Object
This is the abstract base class for a rule used to
replace a given string.
- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformerRule
public TransformerRule()
transform
public abstract String transform(String string,
String stringLowerCase)
- Parameters:
string - is the original string to modify.stringLowerCase - is the string in
lower-case.
- Returns:
- the replaced
string or null if this rule
does NOT apply and the string should NOT be replaced. - See Also:
Singularizer.transform(String)
Copyright © 2001-2010 mmm-Team. All Rights Reserved.