public final class RegexPatterns extends Object
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
ALPHA_NUMERIC |
protected static Pattern |
ANY_DATE |
protected static Pattern |
ANY_DATE_TIME |
protected static Pattern |
ANY_TIME |
protected static Pattern |
DOUBLE |
protected static Pattern |
EMAIL |
protected static Pattern |
HEX |
protected static Pattern |
HOSTNAME_PATTERN |
protected static Pattern |
HTTPS_URL |
protected static Pattern |
INTEGER |
protected static Pattern |
IP_ADDRESS |
protected static Pattern |
ISO8601_WITH_OFFSET |
protected static Pattern |
NON_BLANK |
protected static Pattern |
NON_EMPTY |
protected static Pattern |
NUMBER |
protected static Pattern |
ONLY_ALPHA_UNICODE |
protected static Pattern |
POSITIVE_INT |
protected static Pattern |
TRUE_OR_FALSE |
protected static Pattern |
URL |
protected static Pattern |
UUID |
Constructor and Description |
---|
RegexPatterns() |
Modifier and Type | Method and Description |
---|---|
static RegexProperty |
aDouble() |
static RegexProperty |
alphaNumeric() |
static RegexProperty |
anInteger() |
static RegexProperty |
anyBoolean() |
protected static Pattern |
anyOf(String... values) |
static RegexProperty |
email() |
static RegexProperty |
hostname() |
static RegexProperty |
httpsUrl() |
static RegexProperty |
ipAddress() |
static RegexProperty |
iso8601WithOffset() |
static RegexProperty |
isoDate() |
static RegexProperty |
isoDateTime() |
static RegexProperty |
isoTime() |
static String |
multipartFile(Object name,
Object filename,
Object content,
Object contentType) |
static String |
multipartParam(Object name,
Object value) |
static RegexProperty |
nonBlank() |
static RegexProperty |
nonEmpty() |
static RegexProperty |
number() |
static RegexProperty |
onlyAlphaUnicode() |
static RegexProperty |
positiveInt() |
static RegexProperty |
url() |
static RegexProperty |
uuid() |
protected static final Pattern TRUE_OR_FALSE
protected static final Pattern ALPHA_NUMERIC
protected static final Pattern ONLY_ALPHA_UNICODE
protected static final Pattern NUMBER
protected static final Pattern INTEGER
protected static final Pattern POSITIVE_INT
protected static final Pattern DOUBLE
protected static final Pattern HEX
protected static final Pattern IP_ADDRESS
protected static final Pattern HOSTNAME_PATTERN
protected static final Pattern EMAIL
protected static final Pattern URL
protected static final Pattern HTTPS_URL
protected static final Pattern UUID
protected static final Pattern ANY_DATE
protected static final Pattern ANY_DATE_TIME
protected static final Pattern ANY_TIME
protected static final Pattern NON_EMPTY
protected static final Pattern NON_BLANK
protected static final Pattern ISO8601_WITH_OFFSET
public static String multipartFile(Object name, Object filename, Object content, Object contentType)
public static RegexProperty onlyAlphaUnicode()
public static RegexProperty alphaNumeric()
public static RegexProperty number()
public static RegexProperty positiveInt()
public static RegexProperty anyBoolean()
public static RegexProperty anInteger()
public static RegexProperty aDouble()
public static RegexProperty ipAddress()
public static RegexProperty hostname()
public static RegexProperty email()
public static RegexProperty url()
public static RegexProperty httpsUrl()
public static RegexProperty uuid()
public static RegexProperty isoDate()
public static RegexProperty isoDateTime()
public static RegexProperty isoTime()
public static RegexProperty iso8601WithOffset()
public static RegexProperty nonEmpty()
public static RegexProperty nonBlank()
Copyright © 2016–2019 Spring. All rights reserved.