public class MapTypesSchema
extends com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
MapTypesSchema
class extends the ObjectSchema
class to provide additional information about the Java map being defined.Modifier and Type | Class and Description |
---|---|
static class |
MapTypesSchema.AdditionalProperties
The
AdditionalProperties class defines additional
properties used for a map to represent both the keys and values schemas. |
com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.Dependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.NoAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaDependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SimpleDependency
Constructor and Description |
---|
MapTypesSchema()
Instantiates a new
MapTypesSchema object. |
MapTypesSchema(com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema schema)
Instantiates a new
MapTypesSchema object. |
Modifier and Type | Method and Description |
---|---|
MapTypesSchema.AdditionalProperties |
getAdditionalProperties() |
com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getKeysSchema()
Gets the schema for the map keys.
|
com.fasterxml.jackson.databind.JavaType |
getKeysType()
Gets the type for the map keys.
|
com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getValuesSchema()
Gets the schema for the map values.
|
com.fasterxml.jackson.databind.JavaType |
getValuesType()
Gets the type for the map values.
|
void |
setAdditionalProperties(com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.AdditionalProperties additionalProperties) |
void |
setKeysSchema(com.fasterxml.jackson.module.jsonSchema.JsonSchema keys)
Sets the schema for the map keys.
|
void |
setKeysType(com.fasterxml.jackson.databind.JavaType keys)
Sets the type for the map keys.
|
void |
setValuesSchema(com.fasterxml.jackson.module.jsonSchema.JsonSchema values)
Sets the schema for the map values.
|
void |
setValuesType(com.fasterxml.jackson.databind.JavaType values)
Sets the type for the map values.
|
_equals, addSchemaDependency, addSimpleDependency, asObjectSchema, equals, getDependencies, getPatternProperties, getProperties, getType, isObjectSchema, putOptionalProperty, putOptionalProperty, putPatternProperty, putProperty, putProperty, rejectAdditionalProperties, setDependencies, setPatternProperties, setProperties
_equals, asContainerSchema, getEnums, getOneOf, isContainerTypeSchema, setEnums, setOneOf
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
public MapTypesSchema(com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema schema)
MapTypesSchema
object.schema
- the object schema representing the map type to copyIllegalArgumentException
- if the schema doesn't represent a mappublic MapTypesSchema()
MapTypesSchema
object.public MapTypesSchema.AdditionalProperties getAdditionalProperties()
getAdditionalProperties
in class com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
ObjectSchema.getAdditionalProperties()
public void setAdditionalProperties(com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.AdditionalProperties additionalProperties)
setAdditionalProperties
in class com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema
IllegalArgumentException
- if the properties doesn't represent
additional map propertiesObjectSchema.setAdditionalProperties(com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.AdditionalProperties)
public com.fasterxml.jackson.module.jsonSchema.JsonSchema getKeysSchema()
public void setKeysSchema(com.fasterxml.jackson.module.jsonSchema.JsonSchema keys)
keys
- the schema for the map keyspublic com.fasterxml.jackson.databind.JavaType getKeysType()
public void setKeysType(com.fasterxml.jackson.databind.JavaType keys)
keys
- the type for the map keyspublic com.fasterxml.jackson.module.jsonSchema.JsonSchema getValuesSchema()
public void setValuesSchema(com.fasterxml.jackson.module.jsonSchema.JsonSchema values)
values
- the schema for the map valuespublic com.fasterxml.jackson.databind.JavaType getValuesType()
public void setValuesType(com.fasterxml.jackson.databind.JavaType values)
values
- the type for the map valuesCopyright (C) 2015-2017 The Helenus Driver Project Authors.