Class RegexPatterns
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.RegexPatterns
-
public final class RegexPatterns extends Object
Contains most common regular expression patterns.- Since:
- 1.0.0
- Author:
- Marcin Grzejszczak, Tim Ysewyn
-
-
Field Summary
Fields Modifier and Type Field Description protected static PatternALPHA_NUMERICprotected static PatternANY_DATEprotected static PatternANY_DATE_TIMEprotected static PatternANY_TIMEprotected static PatternDOUBLEprotected static PatternEMAILprotected static PatternHEXprotected static PatternHOSTNAME_PATTERNprotected static PatternHTTPS_URLprotected static PatternINTEGERprotected static PatternIP_ADDRESSprotected static PatternISO8601_WITH_OFFSETprotected static PatternNON_BLANKprotected static PatternNON_EMPTYprotected static PatternNUMBERprotected static PatternONLY_ALPHA_UNICODEprotected static PatternPOSITIVE_INTprotected static PatternTRUE_OR_FALSEprotected static PatternURLprotected static PatternUUIDprotected static PatternUUID4
-
Constructor Summary
Constructors Constructor Description RegexPatterns()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RegexPropertyaDouble()static RegexPropertyalphaNumeric()static RegexPropertyanInteger()static RegexPropertyanyBoolean()protected static PatternanyOf(String... values)static RegexPropertyemail()static RegexPropertyhostname()static RegexPropertyhttpsUrl()static RegexPropertyipAddress()static RegexPropertyiso8601WithOffset()static RegexPropertyisoDate()static RegexPropertyisoDateTime()static RegexPropertyisoTime()static StringmultipartFile(Object name, Object filename, Object content, Object contentType)static StringmultipartParam(Object name, Object value)static RegexPropertynonBlank()static RegexPropertynonEmpty()static RegexPropertynumber()static RegexPropertyonlyAlphaUnicode()static RegexPropertypositiveInt()static RegexPropertyurl()static RegexPropertyuuid()static RegexPropertyuuid4()
-
-
-
Field Detail
-
TRUE_OR_FALSE
protected static final Pattern TRUE_OR_FALSE
-
ALPHA_NUMERIC
protected static final Pattern ALPHA_NUMERIC
-
ONLY_ALPHA_UNICODE
protected static final Pattern ONLY_ALPHA_UNICODE
-
NUMBER
protected static final Pattern NUMBER
-
INTEGER
protected static final Pattern INTEGER
-
POSITIVE_INT
protected static final Pattern POSITIVE_INT
-
DOUBLE
protected static final Pattern DOUBLE
-
HEX
protected static final Pattern HEX
-
IP_ADDRESS
protected static final Pattern IP_ADDRESS
-
HOSTNAME_PATTERN
protected static final Pattern HOSTNAME_PATTERN
-
EMAIL
protected static final Pattern EMAIL
-
URL
protected static final Pattern URL
-
HTTPS_URL
protected static final Pattern HTTPS_URL
-
UUID
protected static final Pattern UUID
-
UUID4
protected static final Pattern UUID4
-
ANY_DATE
protected static final Pattern ANY_DATE
-
ANY_DATE_TIME
protected static final Pattern ANY_DATE_TIME
-
ANY_TIME
protected static final Pattern ANY_TIME
-
NON_EMPTY
protected static final Pattern NON_EMPTY
-
NON_BLANK
protected static final Pattern NON_BLANK
-
ISO8601_WITH_OFFSET
protected static final Pattern ISO8601_WITH_OFFSET
-
-
Method Detail
-
multipartFile
public static String multipartFile(Object name, Object filename, Object content, Object contentType)
-
onlyAlphaUnicode
public static RegexProperty onlyAlphaUnicode()
-
alphaNumeric
public static RegexProperty alphaNumeric()
-
number
public static RegexProperty number()
-
positiveInt
public static RegexProperty positiveInt()
-
anyBoolean
public static RegexProperty anyBoolean()
-
anInteger
public static RegexProperty anInteger()
-
aDouble
public static RegexProperty aDouble()
-
ipAddress
public static RegexProperty ipAddress()
-
hostname
public static RegexProperty hostname()
-
email
public static RegexProperty email()
-
url
public static RegexProperty url()
-
httpsUrl
public static RegexProperty httpsUrl()
-
uuid
public static RegexProperty uuid()
-
uuid4
public static RegexProperty uuid4()
-
isoDate
public static RegexProperty isoDate()
-
isoDateTime
public static RegexProperty isoDateTime()
-
isoTime
public static RegexProperty isoTime()
-
iso8601WithOffset
public static RegexProperty iso8601WithOffset()
-
nonEmpty
public static RegexProperty nonEmpty()
-
nonBlank
public static RegexProperty nonBlank()
-
-