Package io.github.qishr.cascara.schema.rule
Class MaxValueRule
java.lang.Object
io.github.qishr.cascara.schema.rule.MaxValueRule
All Implemented Interfaces:
ValidationRule
public class MaxValueRule
Constructor Summary
| Constructor | Description |
|---|---|
| MaxValueRule(double max) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public void | validate(AstNode node, String path, ValidationResult result) | |
| public void | validateValue(Object value, String path, ValidationResult result) | |
| public double | getMax() |
Method Details
validate
public void validate(AstNode node, String path, ValidationResult result)
Specified By:
validateValue
public void validateValue(Object value, String path, ValidationResult result)
Specified By:
getMax
public double getMax()