Class ContainerTypeSchema
- java.lang.Object
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
-
- com.fasterxml.jackson.module.jsonSchema.jakarta.types.ContainerTypeSchema
-
- Direct Known Subclasses:
ArraySchema
,ObjectSchema
public abstract class ContainerTypeSchema extends SimpleTypeSchema
This class encapsulates the functionality of container typeJsonSchema
Array and Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
enums
This provides an enumeration of all possible values that are valid for the instance property.protected java.util.Set<java.lang.Object>
oneOf
This provides an enumeration of all possible values that are valid for the instance property.-
Fields inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
-
Constructor Summary
Constructors Constructor Description ContainerTypeSchema()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
_equals(ContainerTypeSchema that)
ContainerTypeSchema
asContainerSchema()
Deprecated.Since 2.7ContainerTypeSchema
asContainerTypeSchema()
Attempt to return this JsonSchema as aContainerTypeSchema
boolean
equals(java.lang.Object obj)
java.util.Set<java.lang.String>
getEnums()
java.util.Set<java.lang.Object>
getOneOf()
boolean
isContainerTypeSchema()
determine if this JsonSchema is anContainerTypeSchema
.void
setEnums(java.util.Set<java.lang.String> enums)
void
setOneOf(java.util.Set<java.lang.Object> oneOf)
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
-
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
-
-
-
Field Detail
-
enums
protected java.util.Set<java.lang.String> enums
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
-
oneOf
protected java.util.Set<java.lang.Object> oneOf
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
-
-
Method Detail
-
asContainerSchema
@Deprecated public ContainerTypeSchema asContainerSchema()
Deprecated.Since 2.7- Overrides:
asContainerSchema
in classJsonSchema
-
asContainerTypeSchema
public ContainerTypeSchema asContainerTypeSchema()
Description copied from class:JsonSchema
Attempt to return this JsonSchema as aContainerTypeSchema
- Overrides:
asContainerTypeSchema
in classJsonSchema
- Returns:
- this as an ContainerTypeSchema if possible, or null otherwise
- Since:
- 2.7
-
getEnums
public java.util.Set<java.lang.String> getEnums()
-
isContainerTypeSchema
public boolean isContainerTypeSchema()
Description copied from class:JsonSchema
determine if this JsonSchema is anContainerTypeSchema
.- Overrides:
isContainerTypeSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an ContainerTypeSchema, false otherwise
-
setEnums
public void setEnums(java.util.Set<java.lang.String> enums)
-
getOneOf
public java.util.Set<java.lang.Object> getOneOf()
-
setOneOf
public void setOneOf(java.util.Set<java.lang.Object> oneOf)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSimpleTypeSchema
-
_equals
protected boolean _equals(ContainerTypeSchema that)
-
-