public class ValidationRuleManager extends Object
| Constructor and Description |
|---|
ValidationRuleManager(org.apache.commons.chain.Catalog catalog)
Creates a new instance with a given catalog.
|
| Modifier and Type | Method and Description |
|---|---|
ValidationRule |
findApplicableRule(String location)
Finds an applicable rule for the given location.
|
ValidationRule |
findRuleByCaption(String caption)
Finds a rule given its caption.
|
ValidationRule |
findRuleByName(String name)
Finds a validation rule by name.
|
List<ValidationRule> |
getValidators()
Gets the list of available validators.
|
public ValidationRuleManager(org.apache.commons.chain.Catalog catalog)
catalog - the rule catalogpublic List<ValidationRule> getValidators()
public ValidationRule findApplicableRule(String location)
location - the location to validatepublic ValidationRule findRuleByName(String name)
name - the rule namepublic ValidationRule findRuleByCaption(String caption)
caption - the rule captionCopyright © 2019. All rights reserved.