com.servingxml.components.regex
Class MatchAndReplace

java.lang.Object
  extended by com.servingxml.components.regex.MatchAndReplace
All Implemented Interfaces:
Stringable, StringFactory

public class MatchAndReplace
extends java.lang.Object
implements StringFactory

The MatchAndReplace class implements the StringFactory interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.servingxml.components.string.StringFactory
StringFactory.UninitializedStringFactory
 
Nested classes/interfaces inherited from interface com.servingxml.components.string.Stringable
Stringable.EmptyStringable
 
Field Summary
 
Fields inherited from interface com.servingxml.components.string.StringFactory
UNINITIALIZED
 
Fields inherited from interface com.servingxml.components.string.Stringable
EMPTY, EMPTY_ARRAY
 
Constructor Summary
MatchAndReplace(PatternMatcher patternMatcher, Stringable stringFactory, java.lang.String replaceWith)
           
 
Method Summary
 java.lang.String createString(ServiceContext context, Flow flow)
           
 void createString(ServiceContext context, Flow flow, java.lang.StringBuilder stringBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchAndReplace

public MatchAndReplace(PatternMatcher patternMatcher,
                       Stringable stringFactory,
                       java.lang.String replaceWith)
Method Detail

createString

public java.lang.String createString(ServiceContext context,
                                     Flow flow)
Specified by:
createString in interface Stringable
Specified by:
createString in interface StringFactory

createString

public void createString(ServiceContext context,
                         Flow flow,
                         java.lang.StringBuilder stringBuilder)
Specified by:
createString in interface StringFactory