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 aJsonSchemaas an integer type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.IntegerdivisibleByThis 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)IntegerSchemaasIntegerSchema()Attempt to return this JsonSchema as anIntegerSchemabooleanequals(java.lang.Object obj)java.lang.IntegergetDivisibleBy()com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypesgetType()booleanisIntegerSchema()determine if this JsonSchema is anIntegerSchema.voidsetDivisibleBy(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:JsonSchemadetermine if this JsonSchema is anIntegerSchema.- Overrides:
isIntegerSchemain classJsonSchema- Returns:
- true if this JsonSchema is an IntegerSchema, false otherwise
-
getType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
- Overrides:
getTypein classNumberSchema
-
asIntegerSchema
public IntegerSchema asIntegerSchema()
Description copied from class:JsonSchemaAttempt to return this JsonSchema as anIntegerSchema- Overrides:
asIntegerSchemain 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:
equalsin classNumberSchema
-
_equals
protected boolean _equals(IntegerSchema that)
-
-