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, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isSimpleTypeSchema, isStringSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setRequired
public UnionTypeSchema asUnionTypeSchema()
JsonSchema
UnionTypeSchema
asUnionTypeSchema
in class JsonSchema
public boolean equals(Object obj)
equals
in class JsonSchema
public ValueTypeSchema[] getElements()
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType
in class JsonSchema
public boolean isUnionTypeSchema()
JsonSchema
UnionTypeSchema
.isUnionTypeSchema
in class JsonSchema
public void setElements(ValueTypeSchema[] elements)
Copyright © 2014-2015 FasterXML. All Rights Reserved.