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

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
              extended by com.fasterxml.jackson.databind.jsonSchema.types.StringSchema

public class StringSchema
extends ValueTypeSchema

This represents a JsonSchema as a String

Author:
jphelan

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
JsonSchema.JsonSchemaIdResolver
 
Constructor Summary
StringSchema()
           
 
Method Summary
 StringSchema asStringSchema()
          Attempt to return this JsonSchema as a StringSchema
 boolean equals(Object obj)
           
 Integer getMaxLength()
          maxLength
 Integer getMinLength()
          minLength
 String getPattern()
          pattern
 com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
           
 boolean isStringSchema()
          determine if this JsonSchema is an StringSchema.
 void setMaxLength(Integer maxLength)
          maxLength
 void setMinLength(Integer minLength)
          minLength
 void setPattern(String pattern)
          pattern
 
Methods inherited from class com.fasterxml.jackson.databind.jsonSchema.types.ValueTypeSchema
asValueSchemaSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormat
 
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, asUnionTypeSchema, get$ref, get$schema, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isContainerTypeSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, 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

StringSchema

public StringSchema()
Method Detail

asStringSchema

public StringSchema asStringSchema()
Description copied from class: JsonSchema
Attempt to return this JsonSchema as a StringSchema

Overrides:
asStringSchema in class JsonSchema
Returns:
this as a StringSchema if possible, or null otherwise

equals

public boolean equals(Object obj)
Overrides:
equals in class ValueTypeSchema

getMaxLength

public Integer getMaxLength()
maxLength

Returns:
the maxLength

getMinLength

public Integer getMinLength()
minLength

Returns:
the minLength

getPattern

public String getPattern()
pattern

Returns:
the pattern

getType

public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
Specified by:
getType in class JsonSchema

isStringSchema

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

Overrides:
isStringSchema in class JsonSchema
Returns:
true if this JsonSchema is an StringSchema, false otherwise

setMaxLength

public void setMaxLength(Integer maxLength)
maxLength

Parameters:
maxLength - the maxLength to set

setMinLength

public void setMinLength(Integer minLength)
minLength

Parameters:
minLength - the minLength to set

setPattern

public void setPattern(String pattern)
pattern

Parameters:
pattern - the pattern to set


Copyright © 2012 fasterxml.com. All Rights Reserved.