Class CrestBooleanSchema

  • All Implemented Interfaces:
    WithExampleSchema<Boolean>

    public class CrestBooleanSchema
    extends com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema
    implements WithExampleSchema<Boolean>
    An extension to the Jackson BooleanSchema that includes the custom CREST JSON Schema attributes.
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema

        enums, format
      • Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema

        defaultdefault, links, pathStart, title
    • Constructor Detail

      • CrestBooleanSchema

        public CrestBooleanSchema()
    • Method Detail

      • setWritePolicy

        public void setWritePolicy​(WritePolicy policy)
      • getReadPolicy

        public ReadPolicy getReadPolicy()
      • setReadPolicy

        public void setReadPolicy​(ReadPolicy readPolicy)
      • getErrorOnWritePolicyFailure

        public Boolean getErrorOnWritePolicyFailure()
      • setErrorOnWritePolicyFailure

        public void setErrorOnWritePolicyFailure​(Boolean errorOnWritePolicyFailure)
      • getReturnOnDemand

        public Boolean getReturnOnDemand()
      • setReturnOnDemand

        public void setReturnOnDemand​(Boolean returnOnDemand)
      • getPropertyOrder

        public Integer getPropertyOrder()
      • setPropertyOrder

        public void setPropertyOrder​(Integer order)
      • validate

        public void validate​(JsonValue object)
                      throws javax.validation.ValidationException
        Throws:
        javax.validation.ValidationException
      • getReadonly

        public Boolean getReadonly()
        Gets read-only property. This method overrides the superclass' definition of "readOnly" being all lower-case, via the JsonProperty annotation.
        Overrides:
        getReadonly in class com.fasterxml.jackson.module.jsonSchema.JsonSchema
        Returns:
        true if property is read-only, otherwise false or null