Class SimpleTypeSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
- Direct Known Subclasses:
AnySchema
,ContainerTypeSchema
,NullSchema
,ReferenceSchema
,ValueTypeSchema
This class encapsulates the functionality of
JsonSchema
simple types-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
This attribute defines the default value of the instance when the instance is undefined.protected LinkDescriptionObject[]
This attribute is a string that provides a links related to description of the instance property.protected String
This attribute is a URI that defines what the instance's URI MUST start with in order to validate.protected String
This attribute is a string that provides a short description of the instance property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_equals
(SimpleTypeSchema that) Attempt to return this JsonSchema as aSimpleTypeSchema
boolean
getLinks()
getTitle()
boolean
determine if this JsonSchema is anSimpleTypeSchema
.void
setDefault
(String defaultdefault) void
setLinks
(LinkDescriptionObject[] links) void
setPathStart
(String pathStart) void
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asContainerSchema, asContainerTypeSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Field Details
-
defaultdefault
This attribute defines the default value of the instance when the instance is undefined. -
title
This attribute is a string that provides a short description of the instance property. -
pathStart
This attribute is a URI that defines what the instance's URI MUST start with in order to validate. -
links
This attribute is a string that provides a links related to description of the instance property.
-
-
Constructor Details
-
SimpleTypeSchema
public SimpleTypeSchema()
-
-
Method Details
-
asSimpleTypeSchema
Description copied from class:JsonSchema
Attempt to return this JsonSchema as aSimpleTypeSchema
- Overrides:
asSimpleTypeSchema
in classJsonSchema
- Returns:
- this as a SimpleTypeSchema if possible, or null otherwise
-
getDefault
-
getTitle
-
getPathStart
-
getLinks
-
setLinks
-
isSimpleTypeSchema
public boolean isSimpleTypeSchema()Description copied from class:JsonSchema
determine if this JsonSchema is anSimpleTypeSchema
.- Overrides:
isSimpleTypeSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an SimpleTypeSchema, false otherwise
-
setDefault
-
setTitle
-
setPathStart
-
equals
- Overrides:
equals
in classJsonSchema
-
_equals
-