com.fasterxml.jackson.databind.jsonSchema.types
Class ValueTypeSchema

java.lang.Object
  extended by com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
      extended by com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
JsonSchema.JsonSchemaIdResolver
 
Constructor Summary
ValueTypeSchema()
           
 
Method Summary
 ValueTypeSchema asValueSchemaSchema()
          Attempt to return this JsonSchema as a ValueTypeSchema
 boolean equals(Object obj)
           
 Set<String> getEnums()
          enums
 com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat getFormat()
          format
 boolean isValueTypeSchema()
          determine if this JsonSchema is an ValueTypeSchema.
 void setEnums(Set<String> enums)
          enums
 void setFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat format)
          format
 
Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
asSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitle
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueTypeSchema

public ValueTypeSchema()
Method Detail

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.