Enum ISBNValidatorBuilder.HyphenationOption
java.lang.Object
java.lang.Enum<ISBNValidatorBuilder.HyphenationOption>
de.creativecouple.validation.isbn.ISBNValidatorBuilder.HyphenationOption
- All Implemented Interfaces:
Serializable,Comparable<ISBNValidatorBuilder.HyphenationOption>,java.lang.constant.Constable
- Enclosing class:
- ISBNValidatorBuilder
public static enum ISBNValidatorBuilder.HyphenationOption
extends Enum<ISBNValidatorBuilder.HyphenationOption>
Options for handling hyphenation in ISBN strings.
- ANY matches all kinds of hyphenation, even wrong hyphenation.
- CORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit.
- NONE matches only compact ISBN strings, without any hyphenation.
- CORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANY matches all kinds of hyphenation, even wrong hyphenation.CORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit.CORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.NONE matches only compact ISBN strings, without any hyphenation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ANY
ANY matches all kinds of hyphenation, even wrong hyphenation. -
CORRECT
CORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit. -
NONE
NONE matches only compact ISBN strings, without any hyphenation. -
CORRECT_OR_NONE
CORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-