com.sapportals.htmlb.validation

Class Validator

java.lang.Object
  extended bycom.sapportals.htmlb.validation.Validator
Direct Known Subclasses:
CancelButtonValidator, DataTypeValidator, LengthValidator, RequiredValidator

public abstract class Validator
extends Object


Constructor Summary
Validator()
           
 
Method Summary
abstract  String getErrorText(Locale locale)
          gets a locale specific error text
abstract  String getJavascript(Locale locale)
          gets a locale specific Javascript representation of the validator.
protected  ResourceBundle getResourceBundle(Locale locale)
          get a ResourceBundle for locale specific texts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Method Detail

getJavascript

public abstract String getJavascript(Locale locale)
gets a locale specific Javascript representation of the validator.

Parameters:
locale - the locale for which to format the value
Returns:
a String representation of Javascript

getErrorText

public abstract String getErrorText(Locale locale)
gets a locale specific error text

Parameters:
locale - the locale for which to format the value
Returns:
a String

getResourceBundle

protected ResourceBundle getResourceBundle(Locale locale)
get a ResourceBundle for locale specific texts.

Parameters:
locale - the locale for the bundle or null if the default locale from the request should be used.
Returns:
the ResourceBundle
See Also:
ResourceBundle


Copyright 2006 SAP AG Complete Copyright Notice