|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basecmp.core.util.ReplaceTransformer
com.basecmp.core.util.ConstantReplaceTransformer
Transformer implementation that effectivley executes a replaceAll with the replacement for occurence of the regular expression on the toString()-version of input-object. Created on 14.05.2006
| Constructor Summary | |
ConstantReplaceTransformer(java.lang.String regex,
java.lang.String replacement)
Mainconstructor. |
|
| Method Summary | |
java.lang.String |
getReplacement(java.lang.String[] matchingGroups)
Delivers always the replacement given at instantiation. |
| Methods inherited from class com.basecmp.core.util.ReplaceTransformer |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstantReplaceTransformer(java.lang.String regex,
java.lang.String replacement)
regex - The regular expression (JDK-style) which is used by the
transformation.replacement - The replacement used for each match of the regular expresison.| Method Detail |
public java.lang.String getReplacement(java.lang.String[] matchingGroups)
getReplacement in class ReplaceTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||