Class IntegerSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.JsonSchema
com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema
com.fasterxml.jackson.module.jsonSchema.types.NumberSchema
com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema
This class represents a
JsonSchema
as an integer type-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Integer
This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_equals
(IntegerSchema that) Attempt to return this JsonSchema as anIntegerSchema
boolean
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getType()
boolean
determine if this JsonSchema is anIntegerSchema
.void
setDivisibleBy
(Integer divisibleBy) Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.NumberSchema
_equals, asNumberSchema, getExclusiveMaximum, getExclusiveMinimum, getMaximum, getMinimum, getMultipleOf, isNumberSchema, setExclusiveMaximum, setExclusiveMinimum, setMaximum, setMinimum, setMultipleOf
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.ValueTypeSchema
_equals, asValueSchemaSchema, asValueTypeSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormat
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asContainerSchema, asContainerTypeSchema, asNullSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isNullSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Field Details
-
divisibleBy
This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.
-
-
Constructor Details
-
IntegerSchema
public IntegerSchema()
-
-
Method Details
-
isIntegerSchema
public boolean isIntegerSchema()Description copied from class:JsonSchema
determine if this JsonSchema is anIntegerSchema
.- Overrides:
isIntegerSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an IntegerSchema, false otherwise
-
getType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()- Overrides:
getType
in classNumberSchema
-
asIntegerSchema
Description copied from class:JsonSchema
Attempt to return this JsonSchema as anIntegerSchema
- Overrides:
asIntegerSchema
in classJsonSchema
- Returns:
- this as an IntegerSchema if possible, or null otherwise
-
getDivisibleBy
-
setDivisibleBy
-
equals
- Overrides:
equals
in classNumberSchema
-
_equals
-