Class ParameterParser
java.lang.Object
com.aquima.interactions.rule.validation.ParameterParser
This class parses a parameter string using the format specified in the constructor.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionParameterParser
(String[] parameterNames) Constructs the parser with an array of parameter names that can be present in the parameter string. -
Method Summary
Modifier and TypeMethodDescriptionprotected static int
findEndTag
(String str) This method parses the specified parameter string and returns a map containing the values.static String[]
parseDefinition
(String paramStr) This method may be used to parse a parameter definition string.protected static String
validateName
(String name)
-
Constructor Details
-
Method Details
-
parse
This method parses the specified parameter string and returns a map containing the values. The map uses the parameter name as key.- Parameters:
parameterStr
- The parameter string that should be parsed.- Returns:
- Map containing the parameter names with their values (key=String, value=String).
-
parseDefinition
This method may be used to parse a parameter definition string.- Parameters:
paramStr
- The parameter definition string that should be parsed.- Returns:
- Array containing the parameter names as defined in the string.
-
validateName
-
findEndTag
-