Enum ISBNValidatorBuilder.HyphenationOption
- java.lang.Object
-
- java.lang.Enum<ISBNValidatorBuilder.HyphenationOption>
-
- de.creativecouple.validation.isbn.ISBNValidatorBuilder.HyphenationOption
-
- All Implemented Interfaces:
Serializable,Comparable<ISBNValidatorBuilder.HyphenationOption>
- 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYANY matches all kinds of hyphenation, even wrong hyphenation.CORRECTCORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit.CORRECT_OR_NONECORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.NONENONE matches only compact ISBN strings, without any hyphenation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ISBNValidatorBuilder.HyphenationOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static ISBNValidatorBuilder.HyphenationOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final ISBNValidatorBuilder.HyphenationOption ANY
ANY matches all kinds of hyphenation, even wrong hyphenation.
-
CORRECT
public static final ISBNValidatorBuilder.HyphenationOption CORRECT
CORRECT matches only well-hyphenated ISBNs with respect to prefix/group/publisher/title/checkdigit.
-
NONE
public static final ISBNValidatorBuilder.HyphenationOption NONE
NONE matches only compact ISBN strings, without any hyphenation.
-
CORRECT_OR_NONE
public static final ISBNValidatorBuilder.HyphenationOption CORRECT_OR_NONE
CORRECT_OR_NONE matches both well-hyphenated and compact ISBN strings.
-
-
Method Detail
-
values
public static ISBNValidatorBuilder.HyphenationOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ISBNValidatorBuilder.HyphenationOption c : ISBNValidatorBuilder.HyphenationOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ISBNValidatorBuilder.HyphenationOption valueOf(String name)
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
-
-