Class AdditionalPropertiesSchema

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final JSONSchema getSchema()
      JSONPointer childLocation(JSONPointer pointer)
      Boolean validate(JSONValue json, JSONPointer instanceLocation)
      BasicOutput validateBasic(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
      DetailedOutput validateDetailed(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
      Boolean equals(Object other) Compare two AdditionalPropertiesSchema objects for equality.
      Integer hashCode()
      • 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
    • Method Detail

      • validate

         Boolean validate(JSONValue json, JSONPointer instanceLocation)
      • validateBasic

         BasicOutput validateBasic(JSONPointer relativeLocation, JSONValue json, JSONPointer instanceLocation)
      • equals

         Boolean equals(Object other)

        Compare two AdditionalPropertiesSchema objects for equality.

        This will report two objects as equal even if the parent is 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:

        true if the two objects are equal, subject to the above note.