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
public abstract class SimpleTypeSchema extends JsonSchema
This class encapsulates the functionality ofJsonSchema
simple types
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
defaultdefault
This attribute defines the default value of the instance when the instance is undefined.protected LinkDescriptionObject[]
links
This attribute is a string that provides a links related to description of the instance property.protected java.lang.String
pathStart
This attribute is a URI that defines what the instance's URI MUST start with in order to validate.protected java.lang.String
title
This attribute is a string that provides a short description of the instance property.
-
Constructor Summary
Constructors Constructor Description SimpleTypeSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
_equals(SimpleTypeSchema that)
SimpleTypeSchema
asSimpleTypeSchema()
Attempt to return this JsonSchema as aSimpleTypeSchema
boolean
equals(java.lang.Object obj)
java.lang.String
getDefault()
LinkDescriptionObject[]
getLinks()
java.lang.String
getPathStart()
java.lang.String
getTitle()
boolean
isSimpleTypeSchema()
determine if this JsonSchema is anSimpleTypeSchema
.void
setDefault(java.lang.String defaultdefault)
void
setLinks(LinkDescriptionObject[] links)
void
setPathStart(java.lang.String pathStart)
void
setTitle(java.lang.String title)
-
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 Detail
-
defaultdefault
protected java.lang.String defaultdefault
This attribute defines the default value of the instance when the instance is undefined.
-
title
protected java.lang.String title
This attribute is a string that provides a short description of the instance property.
-
pathStart
protected java.lang.String pathStart
This attribute is a URI that defines what the instance's URI MUST start with in order to validate.
-
links
protected LinkDescriptionObject[] links
This attribute is a string that provides a links related to description of the instance property.
-
-
Method Detail
-
asSimpleTypeSchema
public SimpleTypeSchema 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
public java.lang.String getDefault()
-
getTitle
public java.lang.String getTitle()
-
getPathStart
public java.lang.String getPathStart()
-
getLinks
public LinkDescriptionObject[] getLinks()
-
setLinks
public void setLinks(LinkDescriptionObject[] links)
-
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
public void setDefault(java.lang.String defaultdefault)
-
setTitle
public void setTitle(java.lang.String title)
-
setPathStart
public void setPathStart(java.lang.String pathStart)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classJsonSchema
-
_equals
protected boolean _equals(SimpleTypeSchema that)
-
-