com.opensymphony.xwork2.validator.validators
Class VisitorFieldValidator.AppendingValidatorContext

java.lang.Object
  extended by com.opensymphony.xwork2.validator.DelegatingValidatorContext
      extended by com.opensymphony.xwork2.validator.validators.VisitorFieldValidator.AppendingValidatorContext
All Implemented Interfaces:
LocaleProvider, TextProvider, ValidationAware, ValidatorContext
Enclosing class:
VisitorFieldValidator

private class VisitorFieldValidator.AppendingValidatorContext
extends DelegatingValidatorContext


Field Summary
(package private)  String field
           
(package private)  String message
           
(package private)  Object o
           
(package private)  ValidatorContext parent
           
 
Constructor Summary
VisitorFieldValidator.AppendingValidatorContext(ValidatorContext parent, Object object, String field, String message)
           
 
Method Summary
 void addActionError(String anErrorMessage)
          Add an Action-level error message to this Action.
 void addFieldError(String fieldName, String errorMessage)
          Add an error message for a given field.
 String getFullFieldName(String fieldName)
          Translates a simple field name into a full field name in Ognl syntax
 
Methods inherited from class com.opensymphony.xwork2.validator.DelegatingValidatorContext
addActionMessage, getActionErrors, getActionMessages, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getValidationAware, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, makeLocaleProvider, makeTextProvider, makeValidationAware, setActionErrors, setActionMessages, setFieldErrors, setTextProvider, setValidationAware
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

o

Object o

field

String field

message

String message

parent

ValidatorContext parent
Constructor Detail

VisitorFieldValidator.AppendingValidatorContext

public VisitorFieldValidator.AppendingValidatorContext(ValidatorContext parent,
                                                       Object object,
                                                       String field,
                                                       String message)
Method Detail

getFullFieldName

public String getFullFieldName(String fieldName)
Translates a simple field name into a full field name in Ognl syntax

Specified by:
getFullFieldName in interface ValidatorContext
Overrides:
getFullFieldName in class DelegatingValidatorContext
Parameters:
fieldName -
Returns:
field name in OGNL syntax

addActionError

public void addActionError(String anErrorMessage)
Description copied from interface: ValidationAware
Add an Action-level error message to this Action.

Specified by:
addActionError in interface ValidationAware
Overrides:
addActionError in class DelegatingValidatorContext

addFieldError

public void addFieldError(String fieldName,
                          String errorMessage)
Description copied from interface: ValidationAware
Add an error message for a given field.

Specified by:
addFieldError in interface ValidationAware
Overrides:
addFieldError in class DelegatingValidatorContext
Parameters:
fieldName - name of field
errorMessage - the error message


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