Class ValidationMethods
- java.lang.Object
-
- com.broadleafcommerce.metadata.dsl.core.utils.ValidationMethods
-
public final class ValidationMethods extends Object
- Author:
- Nick Crum (ncrum)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultValidationMethod
isAfter(String messageKey)
static DefaultValidationMethod
isAtLeast(String messageKey)
static DefaultValidationMethod
method(String name)
static DefaultValidationMethod
moreThan(String messageKey)
static DefaultValidationMethod
positive(String messageKey)
static DefaultValidationMethod
regex(String messageKey)
static DefaultValidationMethod
urlAbsoluteOrRelative(String messageKey)
Use when absolute or relative URLs are allowed.static DefaultValidationMethod
urlPath(String messageKey)
Use when only relative URLs are allowed.
-
-
-
Method Detail
-
method
public static DefaultValidationMethod method(String name)
-
urlPath
public static DefaultValidationMethod urlPath(String messageKey)
Use when only relative URLs are allowed.
-
urlAbsoluteOrRelative
public static DefaultValidationMethod urlAbsoluteOrRelative(String messageKey)
Use when absolute or relative URLs are allowed.
-
regex
public static DefaultValidationMethod regex(String messageKey)
-
positive
public static DefaultValidationMethod positive(String messageKey)
-
isAfter
public static DefaultValidationMethod isAfter(String messageKey)
-
isAtLeast
public static DefaultValidationMethod isAtLeast(String messageKey)
-
moreThan
public static DefaultValidationMethod moreThan(String messageKey)
-
-