Package io.github.qishr.cascara.schema.rule
Class MaxLengthRule
java.lang.Object
io.github.qishr.cascara.schema.rule.MaxLengthRule
All Implemented Interfaces:
ValidationRule
public class MaxLengthRule
Constructor Summary
| Constructor | Description |
|---|---|
| MaxLengthRule(int 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 int | 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 int getMax()