com.sapportals.htmlb.validation
Class StringValidator
java.lang.Object
com.sapportals.htmlb.validation.Validator
com.sapportals.htmlb.validation.DataTypeValidator
com.sapportals.htmlb.validation.StringValidator
- public class StringValidator
- extends DataTypeValidator
|
Method Summary |
String |
getErrorText(Locale locale)
returns a locale specific error text |
String |
getJavascript(Locale locale)
returns the java script function that's used to validate if input suits pattern
Note: the java script function can be locale dependent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringValidator
public StringValidator()
getJavascript
public String getJavascript(Locale locale)
- returns the java script function that's used to validate if input suits pattern
Note: the java script function can be locale dependent
- Specified by:
getJavascript in class Validator
- Parameters:
locale - the locale information
- Returns:
- a String representation of Javascript
getErrorText
public String getErrorText(Locale locale)
- returns a locale specific error text
- Specified by:
getErrorText in class Validator
- Parameters:
locale - the locale for which to format the value
- Returns:
- the locale specific error text which can contain the defined pattern
Copyright 2006 SAP AG Complete Copyright Notice