Home » xwork-2.1.5 » com.opensymphony » xwork2 » validator » [javadoc | source]
com.opensymphony.xwork2.validator
public class: DelegatingValidatorContext [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.validator.DelegatingValidatorContext

All Implemented Interfaces:
    ValidatorContext

Direct Known Subclasses:
    AppendingValidatorContext

A default implementation of the ValidatorContext interface.
Constructor:
 public DelegatingValidatorContext(Object object) 
    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).
 public DelegatingValidatorContext(Class clazz) 
    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.
 public DelegatingValidatorContext(ValidationAware validationAware,
    TextProvider textProvider,
    LocaleProvider localeProvider) 
    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.
Method from com.opensymphony.xwork2.validator.DelegatingValidatorContext Summary:
addActionError,   addActionMessage,   addFieldError,   getActionErrors,   getActionMessages,   getFieldErrors,   getFullFieldName,   getLocale,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getText,   getTextProvider,   getTexts,   getTexts,   getValidationAware,   hasActionErrors,   hasActionMessages,   hasErrors,   hasFieldErrors,   hasKey,   makeLocaleProvider,   makeTextProvider,   makeValidationAware,   setActionErrors,   setActionMessages,   setFieldErrors,   setTextProvider,   setValidationAware
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.validator.DelegatingValidatorContext Detail:
 public  void addActionError(String anErrorMessage) 
 public  void addActionMessage(String aMessage) 
 public  void addFieldError(String fieldName,
    String errorMessage) 
 public Collection<String> getActionErrors() 
 public Collection<String> getActionMessages() 
 public Map<String> 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,
    List<Object> args) 
 public String getText(String key,
    String[] args) 
 public String getText(String aTextName,
    String defaultValue,
    String obj) 
 public String getText(String aTextName,
    String defaultValue,
    List<Object> args) 
 public String getText(String key,
    String defaultValue,
    String[] args) 
 public String getText(String key,
    String defaultValue,
    List<Object> args,
    ValueStack stack) 
 public String getText(String key,
    String defaultValue,
    String[] args,
    ValueStack stack) 
 protected TextProvider getTextProvider() 
 public ResourceBundle getTexts() 
 public ResourceBundle getTexts(String aBundleName) 
 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<String> errorMessages) 
 public  void setActionMessages(Collection<String> messages) 
 public  void setFieldErrors(Map<String> errorMap) 
 protected  void setTextProvider(TextProvider textProvider) 
 protected  void setValidationAware(ValidationAware validationAware)