Class ValidationRuleSet
- java.lang.Object
-
- io.apicurio.datamodels.validation.ValidationRuleSet
-
public class ValidationRuleSet extends Object
The full set of validation rules.- Author:
- eric.wittmann@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static ValidationRuleSetinstance
-
Constructor Summary
Constructors Constructor Description ValidationRuleSet()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationRuleMetaData>getAllRules()Gets all of the registered rules.List<ValidationRule>getRulesFor(ModelType type)Gets the actual rule instances (visitors) that should be applied to the given document.static ValidationRuleMetaDatamd(String code, String name, String type, String entity, ModelType[] versions, boolean specMandated, String messageTemplate, Class<?> ruleClass)
-
-
-
Field Detail
-
instance
public static ValidationRuleSet instance
-
-
Method Detail
-
md
public static ValidationRuleMetaData md(String code, String name, String type, String entity, ModelType[] versions, boolean specMandated, String messageTemplate, Class<?> ruleClass)
-
getAllRules
public List<ValidationRuleMetaData> getAllRules()
Gets all of the registered rules.
-
getRulesFor
public List<ValidationRule> getRulesFor(ModelType type)
Gets the actual rule instances (visitors) that should be applied to the given document.
-
-