org.apache.tapestry.valid
Class ValidationStrings
java.lang.Object
org.apache.tapestry.valid.ValidationStrings
- public final class ValidationStrings
- extends java.lang.Object
Constants used for accessing validation message patterns.
- Author:
- Paul Ferraro
Method Summary |
static java.lang.String |
getMessagePattern(java.lang.String key,
java.util.Locale locale)
Fetches the appropriate validation message pattern from the appropriate localized resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REQUIRED_FIELD
public static final java.lang.String REQUIRED_FIELD
- See Also:
- Constant Field Values
INVALID_DATE
public static final java.lang.String INVALID_DATE
- See Also:
- Constant Field Values
INVALID_NUMBER
public static final java.lang.String INVALID_NUMBER
- See Also:
- Constant Field Values
INVALID_EMAIL
public static final java.lang.String INVALID_EMAIL
- See Also:
- Constant Field Values
REGEX_MISMATCH
public static final java.lang.String REGEX_MISMATCH
- See Also:
- Constant Field Values
VALUE_TOO_SHORT
public static final java.lang.String VALUE_TOO_SHORT
- See Also:
- Constant Field Values
VALUE_TOO_LONG
public static final java.lang.String VALUE_TOO_LONG
- See Also:
- Constant Field Values
VALUE_TOO_SMALL
public static final java.lang.String VALUE_TOO_SMALL
- See Also:
- Constant Field Values
VALUE_TOO_LARGE
public static final java.lang.String VALUE_TOO_LARGE
- See Also:
- Constant Field Values
DATE_TOO_EARLY
public static final java.lang.String DATE_TOO_EARLY
- See Also:
- Constant Field Values
DATE_TOO_LATE
public static final java.lang.String DATE_TOO_LATE
- See Also:
- Constant Field Values
INVALID_FIELD_EQUALITY
public static final java.lang.String INVALID_FIELD_EQUALITY
- See Also:
- Constant Field Values
getMessagePattern
public static java.lang.String getMessagePattern(java.lang.String key,
java.util.Locale locale)
- Fetches the appropriate validation message pattern from the appropriate localized resource.
This method should be called with the locale of the current request.