Package org.wso2.config.mapper
Class Validator
java.lang.Object
org.wso2.config.mapper.Validator
Validate the configuration according to the given set of rules. Rules will be specified in the configured file in
the following format.
{ "key_to_validate": [ { "if": { "dependent_key1": "value1" "dependent_key2": "value2" }, "regex": ".+", "error_message": "key_to_validate should not be empty" }, { "if": { "dependent_key1": "value3" * "dependent_key2": "value4" }, "regex": ".*", } ] }
-
Method Summary
-
Method Details
-
validate
- Throws:
ConfigParserException
-