Package io.github.qishr.cascara.schema.rule
Interface ValidationRule
java.lang.Object
io.github.qishr.cascara.schema.rule.ValidationRule
All Known Implementing Classes:
MinItemsRule, FormatRule, FileExtensionRule, RequiredRule, MaxItemsRule, MaxLengthRule, EnumRule, MaxValueRule, TypeRule, MinValueRule, UniqueItemsRule, MinLengthRule, RegexRule
public interface ValidationRule
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract boolean | validate(AstNode node, String path, Reporter reporter) | Validates a node and adds errors to the result if necessary. |
| public default boolean | validateValue(Object value, String path, Reporter reporter) |
Method Details
validate
public abstract boolean validate(AstNode node, String path, Reporter reporter)
Validates a node and adds errors to the result if necessary.
validateValue
public default boolean validateValue(Object value, String path, Reporter reporter)