Class NumberSchema
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
- Direct Known Subclasses:
IntegerSchema
This class represents a
JsonSchema
as a number type-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Boolean
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute.private Boolean
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute.private Double
This attribute defines the maximum value of the instance propertyprivate Double
This attribute defines the minimum value of the instance propertyprivate Double
The value of the instance needs to be a multiple of this attributeFields 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
(NumberSchema that) Attempt to return this JsonSchema as aNumberSchema
boolean
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getType()
boolean
determine if this JsonSchema is anNumberSchema
.void
setExclusiveMaximum
(Boolean exclusiveMaximum) void
setExclusiveMinimum
(Boolean exclusiveMinimum) void
setMaximum
(Double maximum) void
setMinimum
(Double minimum) void
setMultipleOf
(Double multipleOf) 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, asIntegerSchema, asNullSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Field Details
-
exclusiveMaximum
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute. -
exclusiveMinimum
This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute. -
maximum
This attribute defines the maximum value of the instance property -
minimum
This attribute defines the minimum value of the instance property -
multipleOf
The value of the instance needs to be a multiple of this attribute
-
-
Constructor Details
-
NumberSchema
public NumberSchema()
-
-
Method Details
-
asNumberSchema
Description copied from class:JsonSchema
Attempt to return this JsonSchema as aNumberSchema
- Overrides:
asNumberSchema
in classJsonSchema
- Returns:
- this as a NumberSchema if possible, or null otherwise
-
getExclusiveMaximum
-
getExclusiveMinimum
-
getMaximum
-
getMinimum
-
getMultipleOf
-
getType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()- Specified by:
getType
in classJsonSchema
-
isNumberSchema
public boolean isNumberSchema()Description copied from class:JsonSchema
determine if this JsonSchema is anNumberSchema
.- Overrides:
isNumberSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an NumberSchema, false otherwise
-
setExclusiveMaximum
-
setExclusiveMinimum
-
setMaximum
-
setMinimum
-
setMultipleOf
-
equals
- Overrides:
equals
in classValueTypeSchema
-
_equals
-