| java.lang.Object com.opensymphony.xwork.validator.DelegatingValidatorContext
DelegatingValidatorContext | public class DelegatingValidatorContext implements ValidatorContext(Code) | | A default implementation of the
ValidatorContext interface.
author: Jason Carreira author: Rainer Hermanns |
Method Summary | |
public void | addActionError(String anErrorMessage) | public void | addActionMessage(String aMessage) | public void | addFieldError(String fieldName, String errorMessage) | public Collection | getActionErrors() | public Collection | getActionMessages() | public Map | getFieldErrors() | public String | getFullFieldName(String fieldName) | public Locale | getLocale() | public String | getText(String aTextName) | public String | getText(String aTextName, String defaultValue) | public String | getText(String aTextName, String defaultValue, String obj) | public String | getText(String aTextName, List args) | public String | getText(String key, String[] args) | public String | getText(String aTextName, String defaultValue, List args) | public String | getText(String key, String defaultValue, String[] args) | public String | getText(String key, String defaultValue, List args, OgnlValueStack stack) | public String | getText(String key, String defaultValue, String[] args, OgnlValueStack stack) | protected TextProvider | getTextProvider() | public ResourceBundle | getTexts(String aBundleName) | public ResourceBundle | getTexts() | protected ValidationAware | getValidationAware() | public boolean | hasActionErrors() | public boolean | hasActionMessages() | public boolean | hasErrors() | public boolean | hasFieldErrors() | public boolean | hasKey(String key) | protected static LocaleProvider | makeLocaleProvider(Object object) | public static TextProvider | makeTextProvider(Object object, LocaleProvider localeProvider) | protected static ValidationAware | makeValidationAware(Object object) | public void | setActionErrors(Collection errorMessages) | public void | setActionMessages(Collection messages) | public void | setFieldErrors(Map errorMap) | protected void | setTextProvider(TextProvider textProvider) | protected void | setValidationAware(ValidationAware validationAware) |
DelegatingValidatorContext | public DelegatingValidatorContext(ValidationAware validationAware, TextProvider textProvider, LocaleProvider localeProvider)(Code) | | Creates a new validation context given a ValidationAware object, and a text and locale provider. These objects
are used internally to set errors and get and set error text.
|
DelegatingValidatorContext | public DelegatingValidatorContext(Object object)(Code) | | Creates a new validation context given an object - usually an Action. The internal objects
(validation aware instance and a locale and text provider) are created based on the given action.
Parameters: object - the object to use for validation (usually an Action). |
DelegatingValidatorContext | public DelegatingValidatorContext(Class clazz)(Code) | | Create a new validation context given a Class definition. The locale provider, text provider and
the validation context are created based on the class.
Parameters: clazz - the class to initialize the context with. |
addActionError | public void addActionError(String anErrorMessage)(Code) | | |
addActionMessage | public void addActionMessage(String aMessage)(Code) | | |
getFieldErrors | public Map getFieldErrors()(Code) | | |
hasActionErrors | public boolean hasActionErrors()(Code) | | |
hasActionMessages | public boolean hasActionMessages()(Code) | | |
hasErrors | public boolean hasErrors()(Code) | | |
hasFieldErrors | public boolean hasFieldErrors()(Code) | | |
setFieldErrors | public void setFieldErrors(Map errorMap)(Code) | | |
|
|