Class Ismn
java.lang.Object
no.unit.nva.model.instancetypes.artistic.music.Ismn
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
REGISTRANTS
-
validDelimiters
-
FORMATTED_ISMN_TEMPLATE
- See Also:
-
INVALID_ISMN_TEMPLATE
- See Also:
-
EVEN_MULTIPLIER
public static final int EVEN_MULTIPLIER- See Also:
-
ODD_MULTIPLIER
public static final int ODD_MULTIPLIER- See Also:
-
ISMN_10_PREFIX
public static final char ISMN_10_PREFIX- See Also:
-
UNSET
public static final int UNSET- See Also:
-
PREFIX_CALCULATED_DEFAULT
public static final int PREFIX_CALCULATED_DEFAULT- See Also:
-
REGISTRANT_ITEM_LENGTH
public static final int REGISTRANT_ITEM_LENGTH- See Also:
-
STARTING_STATE
public static final int STARTING_STATE- See Also:
-
VALUE_FIELD
- See Also:
-
FORMATTED_FIELD
- See Also:
-
-
Constructor Details
-
Ismn
Provides a parsed, validated ISMN 10 or ISMN 13.The method parses the prefix, publisher identifier part, item identifier part and check bit and validates these.
In essence, this constructor demonstrates why semantically meaningful identifiers are a terrible idea.
- Parameters:
ismn- A string representation of an ISMN.- Throws:
InvalidIsmnException- If the parsing or validation fails.
-
-
Method Details