Class StringReplacementAlgo
java.lang.Object
com.sun.enterprise.admin.servermgmt.stringsubs.impl.algorithm.StringReplacementAlgo
- All Implemented Interfaces:
SubstitutionAlgorithm
Perform's String substitution by replacing the matching target sequence with the specified literal replacement
sequence.
-
Constructor Summary
ConstructorsConstructorDescriptionStringReplacementAlgo(Map<String, String> substitutionMap) ConstructStringReplacementAlgofor the given substitutable key/value pair. -
Method Summary
Modifier and TypeMethodDescriptionvoidsubstitute(Substitutable resolver) Perform's string substitution.
-
Constructor Details
-
StringReplacementAlgo
ConstructStringReplacementAlgofor the given substitutable key/value pair.- Parameters:
substitutionMap- Map of substitutable key/value pairs.
-
-
Method Details
-
substitute
Description copied from interface:SubstitutionAlgorithmPerform's string substitution.Reads the character stream from the given
Substitutableobject, perform substitution and writes it back to the object.- Specified by:
substitutein interfaceSubstitutionAlgorithm- Parameters:
resolver- Provide input and output stream.- Throws:
StringSubstitutionException- If any error occurs during substitution operation.
-