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
public abstract class SimpleTypeSchema extends JsonSchema
This class encapsulates the functionality ofJsonSchemasimple types
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdefaultdefaultThis attribute defines the default value of the instance when the instance is undefined.protected LinkDescriptionObject[]linksThis attribute is a string that provides a links related to description of the instance property.protected java.lang.StringpathStartThis attribute is a URI that defines what the instance's URI MUST start with in order to validate.protected java.lang.StringtitleThis 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)SimpleTypeSchemaasSimpleTypeSchema()Attempt to return this JsonSchema as aSimpleTypeSchemabooleanequals(java.lang.Object obj)java.lang.StringgetDefault()LinkDescriptionObject[]getLinks()java.lang.StringgetPathStart()java.lang.StringgetTitle()booleanisSimpleTypeSchema()determine if this JsonSchema is anSimpleTypeSchema.voidsetDefault(java.lang.String defaultdefault)voidsetLinks(LinkDescriptionObject[] links)voidsetPathStart(java.lang.String pathStart)voidsetTitle(java.lang.String title)-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.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:JsonSchemaAttempt to return this JsonSchema as aSimpleTypeSchema- Overrides:
asSimpleTypeSchemain 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:JsonSchemadetermine if this JsonSchema is anSimpleTypeSchema.- Overrides:
isSimpleTypeSchemain 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:
equalsin classJsonSchema
-
_equals
protected boolean _equals(SimpleTypeSchema that)
-
-