Class SimpleTypeSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.JsonSchema
com.fasterxml.jackson.module.jsonSchema.types.SimpleTypeSchema
- Direct Known Subclasses:
AnySchema, ContainerTypeSchema, NullSchema, ReferenceSchema, ValueTypeSchema
This class encapsulates the functionality of
JsonSchema simple types-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThis 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 StringThis attribute is a URI that defines what the instance's URI MUST start with in order to validate.protected StringThis 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 aSimpleTypeSchemabooleangetLinks()getTitle()booleandetermine if this JsonSchema is anSimpleTypeSchema.voidsetDefault(String defaultdefault) voidsetLinks(LinkDescriptionObject[] links) voidsetPathStart(String pathStart) voidMethods inherited from class 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:JsonSchemaAttempt to return this JsonSchema as aSimpleTypeSchema- Overrides:
asSimpleTypeSchemain classJsonSchema- Returns:
- this as a SimpleTypeSchema if possible, or null otherwise
-
getDefault
-
getTitle
-
getPathStart
-
getLinks
-
setLinks
-
isSimpleTypeSchema
public boolean isSimpleTypeSchema()Description copied from class:JsonSchemadetermine if this JsonSchema is anSimpleTypeSchema.- Overrides:
isSimpleTypeSchemain classJsonSchema- Returns:
- true if this JsonSchema is an SimpleTypeSchema, false otherwise
-
setDefault
-
setTitle
-
setPathStart
-
equals
- Overrides:
equalsin classJsonSchema
-
_equals
-