Class NullSchema
- java.lang.Object
-
- com.fasterxml.jackson.module.jsonSchema.JsonSchema
-
- com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
-
- com.fasterxml.jackson.module.jsonSchema.types.NullSchema
-
public class NullSchema extends SimpleTypeSchema
This class represents aJsonSchema
as a null type
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
-
Constructor Summary
Constructors Constructor Description NullSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NullSchema
asNullSchema()
Attempt to return this JsonSchema as aNullSchema
boolean
equals(java.lang.Object obj)
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes
getType()
boolean
isNullSchema()
determine if this JsonSchema is anNullSchema
.-
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, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
-
-
-
Method Detail
-
asNullSchema
public NullSchema asNullSchema()
Description copied from class:JsonSchema
Attempt to return this JsonSchema as aNullSchema
- Overrides:
asNullSchema
in classJsonSchema
- Returns:
- this as a NullSchema if possible, or null otherwise
-
getType
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
- Specified by:
getType
in classJsonSchema
-
isNullSchema
public boolean isNullSchema()
Description copied from class:JsonSchema
determine if this JsonSchema is anNullSchema
.- Overrides:
isNullSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an NullSchema, false otherwise
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSimpleTypeSchema
-
-