Deprecated List (Apache Commons Validator 1.11.0 API)
Description: deprecated elements

# Deprecated API

## Contents

- Classes
- Fields
- Methods
- Constructors

- Deprecated Classes
  Class
  Description
  org.apache.commons.validator.CreditCardValidator
  Use the new CreditCardValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.DateValidator
  Use the new DateValidator, CalendarValidator or TimeValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.EmailValidator
  Use the new EmailValidator in the routines package. This class will be removed in a future release.
  org.apache.commons.validator.ISBNValidator
  Use the new ISBNValidator in the routines package
  org.apache.commons.validator.UrlValidator
  Use the new UrlValidator in the routines package. This class will be removed in a future release.

- Deprecated Fields
  Field
  Description
  org.apache.commons.validator.Field.hMsgs
  Subclasses should use getMsgMap() instead.
  org.apache.commons.validator.Field.hVars
  Subclasses should use getVarMap() instead.
  org.apache.commons.validator.Form.hFields
  Subclasses should use getFieldMap() instead.
  org.apache.commons.validator.routines.CreditCardValidator.MASTERCARD_PRE_OCT2016
  for use until Oct 2016 only
  org.apache.commons.validator.routines.CreditCardValidator.MASTERCARD_VALIDATOR_PRE_OCT2016
  for use until Oct 2016 only
  org.apache.commons.validator.Validator.classLoader
  Use `Validator.getClassLoader()`, will be private in the next major version.
  org.apache.commons.validator.Validator.fieldName
  Use `Validator.getFieldName()`, will be private in the next major version.
  org.apache.commons.validator.Validator.formName
  Use `Validator.getFormName()`, will be private in the next major version.
  org.apache.commons.validator.Validator.onlyReturnErrors
  Use `Validator.getOnlyReturnErrors()`, will be private in the next major version.
  org.apache.commons.validator.Validator.page
  Use `Validator.getPage()`, will be private in the next major version.
  org.apache.commons.validator.Validator.parameters
  Use `Validator.getParameters()`, will be private in the next major version.
  org.apache.commons.validator.Validator.resources
  Use `Validator.getResources()`, will be private in the next major version.
  org.apache.commons.validator.Validator.useContextClassLoader
  Use `Validator.getUseContextClassLoader()`, will be private in the next major version.
  org.apache.commons.validator.ValidatorResources.defaultLocale
  org.apache.commons.validator.ValidatorResources.hActions
  Subclasses should use getActions() instead.
  org.apache.commons.validator.ValidatorResources.hConstants
  Subclasses should use getConstants() instead.
  org.apache.commons.validator.ValidatorResources.hFormSets
  Subclasses should use getFormSets() instead.

- Deprecated Methods
  Method
  Description
  org.apache.commons.validator.util.ValidatorUtils.copyFastHashMap(FastHashMap)
  This method is not part of Validator's public API. Validator will use it internally until FastHashMap references are removed. Use copyMap() instead.
  org.apache.commons.validator.ValidatorAction.setClassname(String)
  Use `ValidatorAction.setClassName(String)`.
  org.apache.commons.validator.ValidatorResult.getActionMap()
  Use getActions() to return the set of actions the isValid(name) and getResult(name) methods to determine the contents of ResultStatus.

- Deprecated Constructors
  Constructor
  Description
  org.apache.commons.validator.GenericTypeValidator()
  Will be private in the next major version.
  org.apache.commons.validator.GenericValidator()
  Will be private in the next major version.
  org.apache.commons.validator.util.ValidatorUtils()
  Will be private in the next major version.
  org.apache.commons.validator.ValidatorResult.ResultStatus(ValidatorResult, boolean, Object)
  Use `ResultStatus(boolean, Object)` instead