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

public static class VisitorFieldValidator.AppendingValidatorContext
extends DelegatingValidatorContext


Constructor Summary
VisitorFieldValidator.AppendingValidatorContext(ValidatorContext parent, java.lang.Object object, java.lang.String field, java.lang.String message)
           
 
Method Summary
 void addActionError(java.lang.String anErrorMessage)
          Add an Action-level error message to this Action.
 void addFieldError(java.lang.String fieldName, java.lang.String errorMessage)
          Add an error message for a given field.
 java.lang.String getFullFieldName(java.lang.String fieldName)
          Translates a simple field name into a full field name in Ognl syntax
 java.lang.String getFullFieldNameFromParent(java.lang.String fieldName)
           
 
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, hasKey, 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
 

Constructor Detail

VisitorFieldValidator.AppendingValidatorContext

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

getFullFieldName

public java.lang.String getFullFieldName(java.lang.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 - field name in OGNL syntax
Returns:
field name in OGNL syntax

getFullFieldNameFromParent

public java.lang.String getFullFieldNameFromParent(java.lang.String fieldName)

addActionError

public void addActionError(java.lang.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
Parameters:
anErrorMessage - the error message

addFieldError

public void addFieldError(java.lang.String fieldName,
                          java.lang.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-2011 Apache Software Foundation. All Rights Reserved.