|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basecmp.core.util.ReplaceTransformer
Skeleton Transformer implementation that executes a replace-operation with the regular expression given at instantiation on the toString()-version of input-object. Created on 14.05.2006
| Constructor Summary | |
ReplaceTransformer(java.lang.String regex)
Mainconstructor. |
|
| Method Summary | |
abstract java.lang.String |
getReplacement(java.lang.String[] matchingGroups)
Delivers for the given groups of a regular-expression-match a replacement, which is used by the transform-method. |
java.lang.Object |
transform(java.lang.Object input)
Converts the given input-object using toString() and searches this string-version using the regular expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReplaceTransformer(java.lang.String regex)
regex - The regular expression (JDK-style) which is used by the
transformation.| Method Detail |
public abstract java.lang.String getReplacement(java.lang.String[] matchingGroups)
public java.lang.Object transform(java.lang.Object input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||