Package | Description |
---|---|
com.github.fge.jsonschema.exceptions |
Exceptions and exception provider
|
com.github.fge.jsonschema.keyword.syntax |
Keyword syntax checkers
|
com.github.fge.jsonschema.keyword.syntax.common |
Keyword syntax checkers common to both draft v3 and draft v4
|
com.github.fge.jsonschema.keyword.syntax.draftv3 |
Keyword syntax checkers specific to draft v3
|
com.github.fge.jsonschema.keyword.syntax.draftv4 |
Keyword syntax checkers specific to draft v4
|
com.github.fge.jsonschema.keyword.syntax.helpers |
Keyword syntax checker helper classes
|
com.github.fge.jsonschema.load |
Schema loading and preloading classes
|
com.github.fge.jsonschema.processing |
Core processing interface and building utility classes
|
com.github.fge.jsonschema.processors.ref | |
com.github.fge.jsonschema.processors.syntax | |
com.github.fge.jsonschema.report |
Processing report infrastructure
|
com.github.fge.jsonschema.walk |
Schema walker, listener and processor
|
Modifier and Type | Class and Description |
---|---|
class |
InvalidSchemaException
Exception thrown by the validation process when a JSON Schema is invalid
|
class |
JsonReferenceException
Exception associated with all JSON Reference exceptions
|
class |
SchemaWalkingException |
Modifier and Type | Method and Description |
---|---|
ProcessingException |
ExceptionProvider.doException(ProcessingMessage message)
Return an exception associated with a message
|
Modifier and Type | Method and Description |
---|---|
void |
SyntaxChecker.checkSyntax(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree)
Check the syntax for this keyword
|
void |
AbstractSyntaxChecker.checkSyntax(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree)
Main syntax checking function
|
protected abstract void |
AbstractSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree)
Method which all syntax checkers extending this class must implement
|
Modifier and Type | Method and Description |
---|---|
protected void |
PatternSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
ExclusiveMinimumSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
ExclusiveMaximumSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
EnumSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
AdditionalSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
PatternPropertiesSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
Modifier and Type | Method and Description |
---|---|
protected void |
DraftV3DependenciesSyntaxChecker.checkDependency(ProcessingReport report,
String name,
SchemaTree tree) |
protected void |
ExtendsSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV3PropertiesSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV3ItemsSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
Modifier and Type | Method and Description |
---|---|
protected void |
DraftV4DependenciesSyntaxChecker.checkDependency(ProcessingReport report,
String name,
SchemaTree tree) |
protected void |
RequiredSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
NotSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV4TypeSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV4PropertiesSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV4ItemsSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
protected void |
DefinitionsSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
DependenciesSyntaxChecker.checkDependency(ProcessingReport report,
String name,
SchemaTree tree)
Check one dependency which is not a schema dependency
|
protected void |
URISyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
void |
TypeOnlySyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
SchemaOrSchemaArraySyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
SchemaMapSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
SchemaArraySyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
PositiveIntegerSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
DraftV3TypeKeywordSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
DivisorSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected void |
DependenciesSyntaxChecker.checkValue(Collection<JsonPointer> pointers,
ProcessingReport report,
SchemaTree tree) |
protected abstract void |
SchemaOrSchemaArraySyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree)
Perform extra check on the keyword
|
protected abstract void |
SchemaMapSyntaxChecker.extraChecks(ProcessingReport report,
SchemaTree tree)
Perform extra checks on the value
|
Modifier and Type | Method and Description |
---|---|
SchemaTree |
SchemaLoader.get(URI uri)
Get a schema tree from the given URI
|
JsonNode |
URIManager.getContent(URI uri)
Get the content at a given URI as a
JsonNode |
Modifier and Type | Method and Description |
---|---|
static <IN extends MessageProvider,OUT extends MessageProvider> |
ProcessingResult.of(Processor<IN,OUT> processor,
ProcessingReport report,
IN input)
Build a result out of a processor, a report and an input
|
OUT |
Processor.process(ProcessingReport report,
IN input)
Process the input
|
OUT |
CachingProcessor.process(ProcessingReport report,
IN input) |
Modifier and Type | Method and Description |
---|---|
SchemaHolder |
RefResolver.process(ProcessingReport report,
SchemaHolder input) |
Modifier and Type | Method and Description |
---|---|
SchemaHolder |
SyntaxProcessor.process(ProcessingReport report,
SchemaHolder input) |
Modifier and Type | Method and Description |
---|---|
ProcessingException |
ProcessingMessage.asException()
Build an exception out of this message
|
ProcessingException |
SimpleExceptionProvider.doException(ProcessingMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
ProcessingReport.debug(ProcessingMessage message)
Log a message with a level of
LogLevel.DEBUG |
void |
ForwardingReport.debug(ProcessingMessage message) |
void |
AbstractProcessingReport.debug(ProcessingMessage message) |
protected void |
AbstractProcessingReport.dispatch(ProcessingMessage message)
Main dispatch method
|
void |
ProcessingReport.error(ProcessingMessage message)
Log a message with a level of
LogLevel.ERROR |
void |
ForwardingReport.error(ProcessingMessage message) |
void |
AbstractProcessingReport.error(ProcessingMessage message) |
void |
ProcessingReport.fatal(ProcessingMessage message)
Log a message with a level of
LogLevel.FATAL |
void |
ForwardingReport.fatal(ProcessingMessage message) |
void |
AbstractProcessingReport.fatal(ProcessingMessage message) |
void |
ProcessingReport.info(ProcessingMessage message)
Log a message with a level of
LogLevel.INFO |
void |
ForwardingReport.info(ProcessingMessage message) |
void |
AbstractProcessingReport.info(ProcessingMessage message) |
void |
ProcessingReport.mergeWith(ProcessingReport other)
Merge another report into this report
|
void |
ForwardingReport.mergeWith(ProcessingReport other) |
void |
AbstractProcessingReport.mergeWith(ProcessingReport other) |
void |
ProcessingReport.warn(ProcessingMessage message)
Log a message with a level of
LogLevel.WARNING |
void |
ForwardingReport.warn(ProcessingMessage message) |
void |
AbstractProcessingReport.warn(ProcessingMessage message) |
Modifier and Type | Method and Description |
---|---|
void |
SchemaListener.onExit()
Method called when the walking process is done walking the tree
|
void |
SchemaListener.onInit(SchemaTree tree)
Method called before schema walking commences
|
void |
SchemaListener.onNewTree(SchemaTree oldTree,
SchemaTree newTree)
Method called when the walking process changes trees
|
void |
SchemaListener.onPopd()
Method called when the walking process exits a subtree
|
void |
SchemaListener.onPushd(JsonPointer pointer)
Method called when the walker changes pointer into the current tree
|
void |
SchemaListener.onWalk(SchemaTree tree)
Method called when the current tree node is walked
|
ValueHolder<T> |
SchemaWalkerProcessor.process(ProcessingReport report,
SchemaHolder input) |
<T> void |
SimpleSchemaWalker.resolveTree(SchemaListener<T> listener,
ProcessingReport report) |
abstract <T> void |
SchemaWalker.resolveTree(SchemaListener<T> listener,
ProcessingReport report)
Change the current tree to another tree, if any
|
<T> void |
ResolvingSchemaWalker.resolveTree(SchemaListener<T> listener,
ProcessingReport report) |
<T> void |
SchemaWalker.walk(SchemaListener<T> listener,
ProcessingReport report)
Walk a tree with a listener
|
Copyright © 2013. All Rights Reserved.