com.fasterxml.jackson.databind.jsonSchema.types
Class ValueTypeSchema
java.lang.Object
com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ValueTypeSchema
- Direct Known Subclasses:
- BooleanSchema, NumberSchema, StringSchema
public abstract class ValueTypeSchema
- extends SimpleTypeSchema
This class represents a JsonSchema
A primitive type.
| Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema |
asAnySchema, asArraySchema, asBooleanSchema, asContainerSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, minimalForFormat, set$ref, set$schema, setDisallow, setExtends, setId, setRequired |
ValueTypeSchema
public ValueTypeSchema()
asValueSchemaSchema
public ValueTypeSchema asValueSchemaSchema()
- Description copied from class:
JsonSchema
- Attempt to return this JsonSchema as a
ValueTypeSchema
- Overrides:
asValueSchemaSchema in class JsonSchema
- Returns:
- this as a ValueTypeSchema if possible, or null otherwise
equals
public boolean equals(Object obj)
- Overrides:
equals in class SimpleTypeSchema
getEnums
public Set<String> getEnums()
enums
- Returns:
- the enums
getFormat
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat getFormat()
format
- Returns:
- the format
isValueTypeSchema
public boolean isValueTypeSchema()
- Description copied from class:
JsonSchema
- determine if this JsonSchema is an
ValueTypeSchema.
- Overrides:
isValueTypeSchema in class JsonSchema
- Returns:
- true if this JsonSchema is an ValueTypeSchema, false otherwise
setEnums
public void setEnums(Set<String> enums)
enums
- Parameters:
enums - the enums to set
setFormat
public void setFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat format)
format
- Parameters:
format - the format to set
Copyright © 2012 fasterxml.com. All Rights Reserved.