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

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.ContainerTypeSchema
Direct Known Subclasses:
ArraySchema, ObjectSchema

public abstract class ContainerTypeSchema
extends SimpleTypeSchema

This class encapsulates the functionality of container type JsonSchema Array and Object

Author:
jphelan

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
JsonSchema.JsonSchemaIdResolver
 
Constructor Summary
ContainerTypeSchema()
           
 
Method Summary
 ContainerTypeSchema asContainerSchema()
          Attempt to return this JsonSchema as a ContainerTypeSchema
 boolean equals(Object obj)
           
 Set<String> getEnums()
          enums
 boolean isContainerTypeSchema()
          determine if this JsonSchema is an ContainerTypeSchema.
 void setEnums(Set<String> enums)
          enums
 
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, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, 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

ContainerTypeSchema

public ContainerTypeSchema()
Method Detail

asContainerSchema

public ContainerTypeSchema asContainerSchema()
Description copied from class: JsonSchema
Attempt to return this JsonSchema as a ContainerTypeSchema

Overrides:
asContainerSchema in class JsonSchema
Returns:
this as an ContainerTypeSchema 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

isContainerTypeSchema

public boolean isContainerTypeSchema()
Description copied from class: JsonSchema
determine if this JsonSchema is an ContainerTypeSchema.

Overrides:
isContainerTypeSchema in class JsonSchema
Returns:
true if this JsonSchema is an ContainerTypeSchema, false otherwise

setEnums

public void setEnums(Set<String> enums)
enums

Parameters:
enums - the enums to set


Copyright © 2012 fasterxml.com. All Rights Reserved.