Class TrueSchema


public class TrueSchema extends EmptySchema
Author:
erosb
  • Constructor Details

  • Method Details

    • builder

      public static TrueSchema.Builder builder()
    • describeTo

      public void describeTo(JSONPrinter writer)
      Description copied from class: Schema
      Describes the instance as a JSONObject to writer.

      First it adds the "title , "description" and "id" properties then calls Schema.describePropertiesTo(JSONPrinter), which will add the subclass-specific properties.

      It is used by Schema.toString() to serialize the schema instance into its JSON representation.

      Overrides:
      describeTo in class Schema
      Parameters:
      writer - it will receive the schema description
    • toString

      public String toString()
      Overrides:
      toString in class Schema
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class EmptySchema