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."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, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asSimpleTypeSchema, asStringSchema, asValueSchemaSchema, 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, setRequired
protected ValueTypeSchema[] elements
public boolean isUnionTypeSchema()
JsonSchema
UnionTypeSchema
.isUnionTypeSchema
in class JsonSchema
public UnionTypeSchema asUnionTypeSchema()
JsonSchema
UnionTypeSchema
asUnionTypeSchema
in class JsonSchema
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType
in class JsonSchema
public ValueTypeSchema[] getElements()
public void setElements(ValueTypeSchema[] elements)
public boolean equals(Object obj)
equals
in class JsonSchema
protected boolean _equals(UnionTypeSchema that)
Copyright © 2014–2016 FasterXML. All rights reserved.