Package org.everit.json.schema
Class StringSchema
java.lang.Object
org.everit.json.schema.Schema
org.everit.json.schema.StringSchema
String schema validator.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.everit.json.schema.Schema
schemaLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringSchema.Builderbuilder()protected booleanSince we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.booleaninthashCode()booleanMethods inherited from class org.everit.json.schema.Schema
definesProperty, describeTo, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, toString, validate
-
Constructor Details
-
StringSchema
public StringSchema() -
StringSchema
Constructor.- Parameters:
builder- the builder object containing validation criteria
-
-
Method Details
-
builder
-
getMaxLength
-
getMinLength
-
getPattern
-
equals
-
getFormatValidator
-
hashCode
public int hashCode() -
canEqual
Description copied from class:SchemaSince we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.http://www.artima.com/lejava/articles/equality.html
-
requireString
public boolean requireString()
-