org.apache.tapestry.valid
Class ValidationStrings

java.lang.Object
  extended by org.apache.tapestry.valid.ValidationStrings

public final class ValidationStrings
extends Object

Constants used for accessing validation message patterns.

Author:
Paul Ferraro

Field Summary
static String DATE_TOO_EARLY
           
static String DATE_TOO_LATE
           
static String INVALID_DATE
           
static String INVALID_EMAIL
           
static String INVALID_FIELD_EQUALITY
           
static String INVALID_NUMBER
           
static String PATTERN_MISMATCH
           
static String REGEX_MISMATCH
           
static String REQUIRED_FIELD
           
static String VALUE_TOO_LARGE
           
static String VALUE_TOO_LONG
           
static String VALUE_TOO_SHORT
           
static String VALUE_TOO_SMALL
           
 
Method Summary
static String getMessagePattern(String key, 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
 

Field Detail

REQUIRED_FIELD

public static final String REQUIRED_FIELD
See Also:
Constant Field Values

INVALID_DATE

public static final String INVALID_DATE
See Also:
Constant Field Values

INVALID_NUMBER

public static final String INVALID_NUMBER
See Also:
Constant Field Values

INVALID_EMAIL

public static final String INVALID_EMAIL
See Also:
Constant Field Values

REGEX_MISMATCH

public static final String REGEX_MISMATCH
See Also:
Constant Field Values

PATTERN_MISMATCH

public static final String PATTERN_MISMATCH
See Also:
Constant Field Values

VALUE_TOO_SHORT

public static final String VALUE_TOO_SHORT
See Also:
Constant Field Values

VALUE_TOO_LONG

public static final String VALUE_TOO_LONG
See Also:
Constant Field Values

VALUE_TOO_SMALL

public static final String VALUE_TOO_SMALL
See Also:
Constant Field Values

VALUE_TOO_LARGE

public static final String VALUE_TOO_LARGE
See Also:
Constant Field Values

DATE_TOO_EARLY

public static final String DATE_TOO_EARLY
See Also:
Constant Field Values

DATE_TOO_LATE

public static final String DATE_TOO_LATE
See Also:
Constant Field Values

INVALID_FIELD_EQUALITY

public static final String INVALID_FIELD_EQUALITY
See Also:
Constant Field Values
Method Detail

getMessagePattern

public static String getMessagePattern(String key,
                                       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.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.