Package net.pwall.json.schema.validation
Class TypeValidator
-
- All Implemented Interfaces:
public final class TypeValidator extends JSONSchema.Validator
-
-
Field Summary
Fields Modifier and Type Field Description private final List<JSONSchema.Type>typesprivate final StringabsoluteLocationprivate final Stringdescriptionprivate final Stringtitleprivate final URIuriprivate final JSONPointerlocation
-
Constructor Summary
Constructors Constructor Description TypeValidator(URI uri, JSONPointer location, List<JSONSchema.Type> types)
-
Method Summary
Modifier and Type Method Description final List<JSONSchema.Type>getTypes()JSONPointerchildLocation(JSONPointer pointer)Booleanvalidate(JSONValue json, JSONPointer instanceLocation)BasicErrorEntrygetErrorEntry(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)Booleanequals(Object other)IntegerhashCode()-
Methods inherited from class net.pwall.json.schema.JSONSchema
createAnnotation, createBasicError, createBasicErrorEntry, createError, createSubSchemaBasicErrorEntry, createSubSchemaError, getAbsoluteLocation, getDescription, getLocation, getTitle, getUri, validate, validateBasic, validateBasic, validateDetailed, validateDetailed -
Methods inherited from class net.pwall.json.schema.JSONSchema.Validator
validateBasic, validateDetailed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TypeValidator
TypeValidator(URI uri, JSONPointer location, List<JSONSchema.Type> types)
-
-
Method Detail
-
getTypes
final List<JSONSchema.Type> getTypes()
-
childLocation
JSONPointer childLocation(JSONPointer pointer)
-
getErrorEntry
BasicErrorEntry getErrorEntry(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
-
-
-
-