Class Schema


  • public class Schema
    extends java.lang.Object
    A schema defined by an object. "Object" refers to the type in the definition, not the type of data it validates.
    • Method Detail

      • isFalse

        public java.lang.Boolean isFalse()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isExclusiveMinimumBoolean

        public boolean isExclusiveMinimumBoolean()
      • isExclusiveMaximumBoolean

        public boolean isExclusiveMaximumBoolean()
      • getSchemaObject

        public java.lang.Object getSchemaObject()
      • getUri

        public java.net.URI getUri()
      • getResourceUri

        public java.lang.Object getResourceUri()
      • getMultipleOf

        public java.lang.Number getMultipleOf()
      • getMaximum

        public java.lang.Number getMaximum()
      • getExclusiveMaximum

        public java.lang.Number getExclusiveMaximum()
      • getMinimum

        public java.lang.Number getMinimum()
      • getExclusiveMinimum

        public java.lang.Number getExclusiveMinimum()
      • getDivisibleBy

        public java.lang.Number getDivisibleBy()
      • getMaxLength

        public java.lang.Number getMaxLength()
      • getMinLength

        public java.lang.Number getMinLength()
      • getPattern

        public java.lang.String getPattern()
      • getFormat

        public java.lang.String getFormat()
      • getContentEncoding

        public java.lang.String getContentEncoding()
      • getContentMediaType

        public java.lang.String getContentMediaType()
      • getPrefixItems

        public java.util.List<Schema> getPrefixItems()
      • getAdditionalItems

        public Schema getAdditionalItems()
      • getUnevaluatedItems

        public Schema getUnevaluatedItems()
      • getItems

        public Schema getItems()
      • getItemsTuple

        public java.util.List<Schema> getItemsTuple()
      • getMaxItems

        public java.lang.Number getMaxItems()
      • getMinItems

        public java.lang.Number getMinItems()
      • getContains

        public Schema getContains()
      • isUniqueItems

        public boolean isUniqueItems()
      • getMinContains

        public java.lang.Number getMinContains()
      • getMaxContains

        public java.lang.Number getMaxContains()
      • getMaxProperties

        public java.lang.Number getMaxProperties()
      • getMinProperties

        public java.lang.Number getMinProperties()
      • getRequiredProperties

        public java.util.Collection<java.lang.String> getRequiredProperties()
      • isRequired

        public boolean isRequired()
      • getAdditionalProperties

        public Schema getAdditionalProperties()
      • getUnevaluatedProperties

        public Schema getUnevaluatedProperties()
      • getProperties

        public java.util.Map<java.lang.String,​Schema> getProperties()
      • getPatternPropertiesPatterns

        public java.util.Collection<java.lang.String> getPatternPropertiesPatterns()
      • getPatternPropertiesSchema

        public java.util.Collection<Schema> getPatternPropertiesSchema()
      • getDependentRequired

        public java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> getDependentRequired()
      • getDependentSchemas

        public java.util.Map<java.lang.String,​Schema> getDependentSchemas()
      • getPropertyNames

        public Schema getPropertyNames()
      • hasConst

        public boolean hasConst()
      • getConst

        public java.lang.Object getConst()
      • getEnums

        public java.util.List<java.lang.Object> getEnums()
      • getExplicitTypes

        public java.util.Collection<java.lang.String> getExplicitTypes()
      • getTypesSchema

        public java.util.Collection<Schema> getTypesSchema()
      • getIf

        public Schema getIf()
      • getThen

        public Schema getThen()
      • getElse

        public Schema getElse()
      • getAllOf

        public java.util.Collection<Schema> getAllOf()
      • getAnyOf

        public java.util.Collection<Schema> getAnyOf()
      • getOneOf

        public java.util.Collection<Schema> getOneOf()
      • getNot

        public Schema getNot()
      • getRef

        public Schema getRef()
      • isRecursiveAnchor

        public boolean isRecursiveAnchor()
      • getRecursiveRef

        public Schema getRecursiveRef()
      • getDynamicAnchorsInResource

        public java.util.Map<java.lang.String,​Schema> getDynamicAnchorsInResource()
      • getDynamicRefURI

        public java.net.URI getDynamicRefURI()
      • getDefaultDynamicRef

        public Schema getDefaultDynamicRef()
      • getDynamicAnchor

        public java.lang.String getDynamicAnchor()
      • getDisallow

        public java.util.Collection<java.lang.String> getDisallow()
      • getDisallowSchemas

        public java.util.Collection<Schema> getDisallowSchemas()
      • getDefault

        public java.lang.Object getDefault()
      • getExamples

        public java.util.List<java.lang.Object> getExamples()
      • getTitle

        public java.lang.String getTitle()
      • getDescription

        public java.lang.String getDescription()
      • getParent

        public Schema getParent()
      • setParent

        protected void setParent​(Schema parent)
      • getMetaSchema

        public java.net.URI getMetaSchema()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getSubSchemas

        public java.util.Map<java.net.URI,​Schema> getSubSchemas()
      • validateExamples

        public void validateExamples​(Validator validator,
                                     java.util.function.Consumer<ValidationError> errorConsumer)
      • validateExamplesRecursive

        public void validateExamplesRecursive​(Validator validator,
                                              java.util.function.Consumer<ValidationError> errorConsumer)