Package io.github.qishr.cascara.schema.rule
Class FormatRule
java.lang.Object
io.github.qishr.cascara.schema.rule.AbstractValidationRule
io.github.qishr.cascara.schema.rule.FormatRule
All Implemented Interfaces:
ValidationRule
public class FormatRule
extends AbstractValidationRule
Constructor Summary
| Constructor | Description |
|---|---|
| FormatRule(String format) | |
| FormatRule(ScalarDescriptor<?> scalarDescriptor) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | validate(AstNode node, String path, Reporter reporter) | |
| public boolean | validateValue(Object value, String path, Reporter reporter) | |
| public ScalarDescriptor<?> | getScalarDescriptor() | |
| public String | getFormat() |
Methods inherited from AbstractValidationRule
error, error
Method Details
validate
public boolean validate(AstNode node, String path, Reporter reporter)
Specified By:
validateValue
public boolean validateValue(Object value, String path, Reporter reporter)
Specified By:
getScalarDescriptor
public ScalarDescriptor<?> getScalarDescriptor()
getFormat
public String getFormat()