public class StringSchema extends Schema
String schema validator.| Modifier and Type | Class and Description |
|---|---|
static class |
StringSchema.Builder
Builder class for
StringSchema. |
| Constructor and Description |
|---|
StringSchema() |
StringSchema(StringSchema.Builder builder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static StringSchema.Builder |
builder() |
protected boolean |
canEqual(Object other)
Since 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.
|
boolean |
equals(Object o) |
FormatValidator |
getFormatValidator() |
Integer |
getMaxLength() |
Integer |
getMinLength() |
Pattern |
getPattern() |
int |
hashCode() |
void |
validate(Object subject)
Performs the schema validation.
|
definesProperty, describeTo, getDescription, getId, getTitle, toStringpublic StringSchema()
public StringSchema(StringSchema.Builder builder)
builder - the builder object containing validation criteriapublic static StringSchema.Builder builder()
public Integer getMaxLength()
public Integer getMinLength()
public Pattern getPattern()
public void validate(Object subject)
Schemapublic FormatValidator getFormatValidator()
Copyright © 2017 Everit Kft.. All rights reserved.