Class IntegerSchema
- java.lang.Object
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.ValueTypeSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.NumberSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.IntegerSchema
-
public class IntegerSchema extends NumberSchema
This class represents aJsonSchema
as an integer type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Integer
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.-
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.ValueTypeSchema
enums, format
-
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
-
Constructor Summary
Constructors Constructor Description IntegerSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
_equals(IntegerSchema that)
IntegerSchema
asIntegerSchema()
Attempt to return this JsonSchema as anIntegerSchema
boolean
equals(java.lang.Object obj)
java.lang.Integer
getDivisibleBy()
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getType()
boolean
isIntegerSchema()
determine if this JsonSchema is anIntegerSchema
.void
setDivisibleBy(java.lang.Integer divisibleBy)
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.NumberSchema
_equals, asNumberSchema, getExclusiveMaximum, getExclusiveMinimum, getMaximum, getMinimum, getMultipleOf, isNumberSchema, setExclusiveMaximum, setExclusiveMinimum, setMaximum, setMinimum, setMultipleOf
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.ValueTypeSchema
_equals, asValueSchemaSchema, asValueTypeSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormat
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.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
-
-
-
-
Method Detail
-
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
public IntegerSchema 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
public java.lang.Integer getDivisibleBy()
-
setDivisibleBy
public void setDivisibleBy(java.lang.Integer divisibleBy)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classNumberSchema
-
_equals
protected boolean _equals(IntegerSchema that)
-
-