com.fasterxml.jackson.databind.jsonSchema.types
Class StringSchema
java.lang.Object
com.fasterxml.jackson.databind.jsonSchema.types.JsonSchema
com.fasterxml.jackson.databind.jsonSchema.types.SimpleTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.ValueTypeSchema
com.fasterxml.jackson.databind.jsonSchema.types.StringSchema
public class StringSchema
- extends ValueTypeSchema
This represents a JsonSchema as a String
- Author:
- jphelan
| 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 |
StringSchema
public StringSchema()
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.