public class StringSchema extends ValueTypeSchema
JsonSchema as a StringJsonSchema.JsonSchemaIdResolver| Constructor and Description |
|---|
StringSchema() |
| Modifier and Type | Method and Description |
|---|---|
StringSchema |
asStringSchema()
Attempt to return this JsonSchema as a
StringSchema |
boolean |
equals(Object obj) |
Integer |
getMaxLength()
|
Integer |
getMinLength()
|
String |
getPattern()
|
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes |
getType() |
boolean |
isStringSchema()
determine if this JsonSchema is an
StringSchema. |
void |
setMaxLength(Integer maxLength)
|
void |
setMinLength(Integer minLength)
|
void |
setPattern(String pattern)
|
asValueSchemaSchema, getEnums, getFormat, isValueTypeSchema, setEnums, setFormatasSimpleTypeSchema, getDefault, getDescription, getTitle, isSimpleTypeSchema, setDefault, setDescription, setTitleasAnySchema, 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, setRequiredpublic StringSchema asStringSchema()
JsonSchemaStringSchemaasStringSchema in class JsonSchemapublic boolean equals(Object obj)
equals in class ValueTypeSchemapublic Integer getMaxLength()
public Integer getMinLength()
public String getPattern()
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
getType in class JsonSchemapublic boolean isStringSchema()
JsonSchemaStringSchema.isStringSchema in class JsonSchemapublic void setMaxLength(Integer maxLength)
maxLength - the maxLength to setpublic void setMinLength(Integer minLength)
minLength - the minLength to setpublic void setPattern(String pattern)
pattern - the pattern to setCopyright © 2012 fasterxml.com. All Rights Reserved.