Package net.pwall.json.schema.parser
Class Parser
-
- All Implemented Interfaces:
public final class Parser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classParser.Optionspublic classParser.Companion
-
Field Summary
Fields Modifier and Type Field Description private final List<BasicOutput>examplesValidationErrorsprivate final List<BasicOutput>defaultValidationErrorsprivate Function4<String, URI, JSONPointer, JSONValue, JSONSchema.Validator>customValidationHandlerprivate Function1<String, FormatValidator.FormatChecker>nonstandardFormatHandlerprivate final JSONReaderjsonReaderprivate Parser.Optionsoptionspublic final static Parser.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description Parser(Parser.Options options, Function1<URI, InputStream> uriResolver)
-
Method Summary
-
-
Constructor Detail
-
Parser
Parser(Parser.Options options, Function1<URI, InputStream> uriResolver)
-
-
Method Detail
-
getExamplesValidationErrors
final List<BasicOutput> getExamplesValidationErrors()
-
getDefaultValidationErrors
final List<BasicOutput> getDefaultValidationErrors()
-
getCustomValidationHandler
final Function4<String, URI, JSONPointer, JSONValue, JSONSchema.Validator> getCustomValidationHandler()
-
setCustomValidationHandler
final Unit setCustomValidationHandler(Function4<String, URI, JSONPointer, JSONValue, JSONSchema.Validator> customValidationHandler)
-
getNonstandardFormatHandler
final Function1<String, FormatValidator.FormatChecker> getNonstandardFormatHandler()
-
setNonstandardFormatHandler
final Unit setNonstandardFormatHandler(Function1<String, FormatValidator.FormatChecker> nonstandardFormatHandler)
-
getJsonReader
final JSONReader getJsonReader()
-
getOptions
final Parser.Options getOptions()
-
setOptions
final Unit setOptions(Parser.Options options)
-
setExtendedResolver
final Unit setExtendedResolver(Function1<URI, InputDetails> extendedResolver)
-
parseFile
final JSONSchema parseFile(String filename)
-
parseURI
final JSONSchema parseURI(String uriString)
-
parse
final JSONSchema parse(File file)
-
parse
final JSONSchema parse(URI uri)
-
parse
final JSONSchema parse(Path path)
-
parse
final JSONSchema parse(String string, URI uri)
-
parseSchema
final JSONSchema parseSchema(JSONValue json, JSONPointer pointer, URI parentUri)
Parse schema.
- Parameters:
json- the schema JSONpointer- the JSON Pointer to the current location in the schema JSONparentUri- the parent URI for the schema
-
-
-
-