public final class LineageValidator extends Object
SCHEMA, SEMANTIC,
REFERENCE, IDENTITY, in the order of the registry group validationStages. It stops at
the first stage that reports a finding, as the reference runner does (conformance/run.py,
validate_bytes).
A validator is immutable and may be shared between threads.
| Modifier and Type | Class and Description |
|---|---|
static class |
LineageValidator.Result
The outcome of a validation.
|
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
STAGES
The stages in order.
|
| Constructor and Description |
|---|
LineageValidator(SchemaStage schema,
SemanticStage semantic) |
| Modifier and Type | Method and Description |
|---|---|
static LineageValidator |
standard(SourceTextProvider sources)
A validator with the shipped schema and registry, the given source text provider, and the FOLD-V1
PROJECTOR checks of Projector. |
static LineageValidator |
standard(SourceTextProvider sources,
SemanticStage.FoldCheck fold)
A validator with the shipped schema and registry, the given source text provider, and the given FOLD-V1
checks (null to skip them; a document with an ExplainGraph then gets a note saying so).
|
LineageValidator.Result |
validate(byte[] data)
Validates the bytes of a lineage document.
|
public LineageValidator(SchemaStage schema, SemanticStage semantic)
public static LineageValidator standard(SourceTextProvider sources)
PROJECTOR checks of Projector.public static LineageValidator standard(SourceTextProvider sources, SemanticStage.FoldCheck fold)
public LineageValidator.Result validate(byte[] data)
FoldLimitException - when folding a statement needs more work than
the FOLD-V1 kernel allows; the document was then not validated