org.apache.commons.validator

## Class ISBNValidator

- java.lang.Object
- - org.apache.commons.validator.ISBNValidator

- Deprecated.
  Use the new ISBNValidator in the routines package

      @Deprecated
      public class ISBNValidator
      extends Object

  A class for validating 10 digit ISBN codes. Based on this algorithm NOTE: This has been replaced by the new `ISBNValidator`.
  Since:
    Validator 1.2.0
  Version:
    $Revision$

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ISBNValidator()` Deprecated. Default Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isValid(String isbn)` Deprecated. If the ISBN is formatted with space or dash separators its format is validated.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ISBNValidator

          public ISBNValidator()

      Deprecated.
      Default Constructor.

  - ### Method Detail

    - #### isValid

          public boolean isValid(String isbn)

      Deprecated.
      If the ISBN is formatted with space or dash separators its format is validated. Then the digits in the number are weighted, summed, and divided by 11 according to the ISBN algorithm. If the result is zero, the ISBN is valid. This method accepts formatted or raw ISBN codes.
      Parameters:
        `isbn` - Candidate ISBN number to be validated. `null` is considered invalid.
      Returns:
        true if the string is a valid ISBN code.

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.