public class UnionTypeSchema extends JsonSchema
JsonSchema as a Union Type Schema:
"An array of two or more simple type definitions. Each
item in the array MUST be a simple type definition or a schema.
The instance value is valid if it is of the same type as one of
the simple type definitions, or valid by one of the schemas, in| Modifier and Type | Field and Description |
|---|---|
protected ValueTypeSchema[] |
elements |
| Constructor and Description |
|---|
UnionTypeSchema() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_equals(UnionTypeSchema that) |
UnionTypeSchema |
asUnionTypeSchema()
Attempt to return this JsonSchema as an
UnionTypeSchema |
boolean |
equals(Object obj) |
ValueTypeSchema[] |
getElements() |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes |
getType() |
boolean |
isUnionTypeSchema()
determine if this JsonSchema is an
UnionTypeSchema. |
void |
setElements(ValueTypeSchema[] elements) |
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asContainerSchema, asContainerTypeSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asSimpleTypeSchema, asStringSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isSimpleTypeSchema, isStringSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequiredprotected ValueTypeSchema[] elements
public boolean isUnionTypeSchema()
JsonSchemaUnionTypeSchema.isUnionTypeSchema in class JsonSchemapublic UnionTypeSchema asUnionTypeSchema()
JsonSchemaUnionTypeSchemaasUnionTypeSchema in class JsonSchemapublic com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic ValueTypeSchema[] getElements()
public void setElements(ValueTypeSchema[] elements)
public boolean equals(Object obj)
equals in class JsonSchemaprotected boolean _equals(UnionTypeSchema that)
Copyright © 2024 FasterXML. All rights reserved.