Package net.pwall.json.schema.subschema
Class AdditionalPropertiesSchema
-
- All Implemented Interfaces:
public final class AdditionalPropertiesSchema extends JSONSchema.SubSchema
-
-
Field Summary
Fields Modifier and Type Field Description private final JSONSchemaschemaprivate final StringabsoluteLocationprivate final Stringdescriptionprivate final Stringtitleprivate final URIuriprivate final JSONPointerlocation
-
Constructor Summary
Constructors Constructor Description AdditionalPropertiesSchema(JSONSchema.General parent, URI uri, JSONPointer location, JSONSchema schema)
-
Method Summary
Modifier and Type Method Description final JSONSchemagetSchema()JSONPointerchildLocation(JSONPointer pointer)Booleanvalidate(JSONValue json, JSONPointer instanceLocation)BasicOutputvalidateBasic(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)DetailedOutputvalidateDetailed(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)Booleanequals(Object other)Compare two AdditionalPropertiesSchemaobjects for equality.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AdditionalPropertiesSchema
AdditionalPropertiesSchema(JSONSchema.General parent, URI uri, JSONPointer location, JSONSchema schema)
-
-
Method Detail
-
getSchema
final JSONSchema getSchema()
-
childLocation
JSONPointer childLocation(JSONPointer pointer)
-
validateBasic
BasicOutput validateBasic(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
-
validateDetailed
DetailedOutput validateDetailed(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
-
equals
Boolean equals(Object other)
Compare two
AdditionalPropertiesSchemaobjects for equality.This will report two objects as equal even if the
parentis different, because including the parent in the comparison leads to infinite recursion. This should be a reasonable approach, since the function will mostly be called as a nested equality comparison on the parent object.- Parameters:
other- the other object- Returns:
trueif the two objects are equal, subject to the above note.
-
-
-
-