Class RadixTreeSubstitutionAlgo
java.lang.Object
com.sun.enterprise.admin.servermgmt.stringsubs.impl.algorithm.RadixTreeSubstitutionAlgo
- All Implemented Interfaces:
SubstitutionAlgorithm
Perform's string substitution by constructing the
RadixTree of change-value pair.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRadixTreeSubstitutionAlgo(Map<String, String> substitutionMap) ConstructRadixTreeSubstitutionAlgofor the given substitutable key/value pair by constructing the radix tree for the same. -
Method Summary
Modifier and TypeMethodDescriptionvoidsubstitute(Substitutable substitutable) Perform's string substitution.
-
Constructor Details
-
RadixTreeSubstitutionAlgo
ConstructRadixTreeSubstitutionAlgofor the given substitutable key/value pair by constructing the radix tree for the same.- 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:
substitutable- Provide input and output stream.- Throws:
StringSubstitutionException- If any error occurs during substitution operation.
-