| Package | Description |
|---|---|
| de.jformchecker | |
| de.jformchecker.criteria | |
| de.jformchecker.elements |
| Modifier and Type | Method and Description |
|---|---|
List<Criterion> |
FormCheckerElement.getCriteria() |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNumberComparingCriterion
provides some utils for criterias, that compare numbers (currentyl: min/max)
|
class |
Accept
Checks that value is equal to one of the acceptable values.
|
class |
AcceptString
Checks if string is equal to one of the passed in strings.
|
class |
And
Performs an AND over all criteria on the given value.
|
class |
CaseInsensitiveRegex
Checks if a string matches a regular expression in a case insensitive way.
|
class |
Email
Checks that the value conforms to the email address format.
|
class |
ExactLength
Checks that the length of the value is equal to the given length.
|
class |
Length
Checks that the length of the value is within the given range.
|
class |
Max
Checks that the value is less than or equal to the given
Comparable. |
class |
MaxLength
Checks that value is not greater than the specified maximum.
|
class |
Min
Checks that value is greater than or equal to the given
Comparable. |
class |
MinLength
Checks that value is not less than the specified minimum.
|
class |
Number
Checks that value is a number.
|
class |
Or
Performs an OR over all criteria on the given value.
|
class |
PostcodeCA
Checks that the value conforms to a valid Canadian postcode.
|
class |
Range
Checks that value is within the given range.
|
class |
Regex
Checks if a string matches a regular expression.
|
class |
StartsWith
Checks if value starts with the given string.
|
class |
StrongPassword |
class |
ZipCode
Checks that the value conforms to the U.S.
|
| Modifier and Type | Method and Description |
|---|---|
static Criterion |
Criteria.accept(String... values) |
static Criterion |
Criteria.and(Criterion... criteria) |
static Criterion |
Criteria.emailAddress() |
static Criterion |
Criteria.exactLength(int length) |
Criterion |
AcceptString.ignoreCase()
Specifies string comparison to be case-insensitive.
|
static Criterion |
Criteria.length(int min,
int max) |
static Criterion |
Criteria.max(int max) |
static Criterion |
Criteria.maxLength(int max) |
static Criterion |
Criteria.min(int min) |
static Criterion |
Criteria.minLength(int min) |
static Criterion |
Criteria.number() |
static Criterion |
Criteria.or(Criterion... criteria) |
static Criterion |
Criteria.postcodeCA() |
static Criterion |
Criteria.range(int min,
int max) |
static Criterion |
Criteria.regex(String pattern) |
static Criterion |
Criteria.startsWith(String... prefix) |
static Criterion |
Criteria.strongPassword(int minLength) |
static Criterion |
Criteria.zipcode() |
| Modifier and Type | Method and Description |
|---|---|
static Criterion |
Criteria.and(Criterion... criteria) |
static Criterion |
Criteria.or(Criterion... criteria) |
| Modifier and Type | Method and Description |
|---|---|
List<Criterion> |
AbstractInput.getCriteria() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractInput.addCriteria(Criterion c) |
T |
AbstractInput.setCriterias(Criterion... criteria) |
Copyright © 2017. All rights reserved.