Class DependentFieldRequiredValidator

java.lang.Object
com.opensymphony.xwork2.validator.validators.ValidatorSupport
com.atlassian.bamboo.ww2.validators.DependentFieldRequiredValidator
All Implemented Interfaces:
com.opensymphony.xwork2.validator.ShortCircuitableValidator, com.opensymphony.xwork2.validator.Validator

public class DependentFieldRequiredValidator extends com.opensymphony.xwork2.validator.validators.ValidatorSupport
  • Field Summary

    Fields inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport

    defaultMessage, EMPTY_STRING, messageKey, stack, textProviderFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    void
    setFieldName1(String fieldName1)
     
    void
    setFieldName2(String fieldName2)
     
    void
    validate(Object object)
     

    Methods inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport

    addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getValidatorContext, getValidatorType, isShortCircuit, parse, setDefaultMessage, setMessageKey, setMessageParameters, setShortCircuit, setTextProviderFactory, setValidatorContext, setValidatorType, setValueStack

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DependentFieldRequiredValidator

      public DependentFieldRequiredValidator()
  • Method Details

    • validate

      public void validate(Object object) throws com.opensymphony.xwork2.validator.ValidationException
      Throws:
      com.opensymphony.xwork2.validator.ValidationException
    • getFieldName1

      public String getFieldName1()
    • setFieldName1

      public void setFieldName1(String fieldName1)
    • getFieldName2

      public String getFieldName2()
    • setFieldName2

      public void setFieldName2(String fieldName2)