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
the array."| Constructor and Description |
|---|
UnionTypeSchema() |
| Modifier and Type | Method and Description |
|---|---|
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) |
asAnySchema, asArraySchema, asBooleanSchema, asContainerSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asSimpleTypeSchema, asStringSchema, asValueSchemaSchema, enrichWithBeanProperty, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isSimpleTypeSchema, isStringSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDisallow, setExtends, setId, setRequiredpublic UnionTypeSchema asUnionTypeSchema()
JsonSchemaUnionTypeSchemaasUnionTypeSchema in class JsonSchemapublic boolean equals(Object obj)
equals in class JsonSchemapublic ValueTypeSchema[] getElements()
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic boolean isUnionTypeSchema()
JsonSchemaUnionTypeSchema.isUnionTypeSchema in class JsonSchemapublic void setElements(ValueTypeSchema[] elements)
Copyright © 2012-2013 FasterXML. All Rights Reserved.