public class ISNI extends StandardNumber implements java.lang.Cloneable, java.lang.Comparable<ISNI>
ISO 27729 International Standard Name Identifier (ISNI).
The International Standard Name Identifier (ISNI) is a method for uniquely identifying the public identities of contributors to media content such as books, TV programmes, and newspaper articles. Such an identifier consists of 16 numerical digits divided into four blocks.
Checksum calculation is in accordance to ISO/IEC 7064:2003, MOD 11-2.
type, value
Modifier | Constructor and Description |
---|---|
|
ISNI() |
protected |
ISNI(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a clone if the implementation is cloneable.
|
int |
compareTo(ISNI isni) |
ISNI |
createChecksum(boolean createWithChecksum)
Indicate that a correct check sum should be computed.
|
boolean |
equals(java.lang.Object object) |
java.lang.String |
format()
Format this number.
|
static StandardNumber |
getInstance(java.lang.Package thePackage,
java.lang.ClassLoader classLoader,
java.lang.String type) |
static StandardNumber |
getInstance(java.lang.String type) |
java.util.Collection<java.lang.String> |
getTypedVariants() |
int |
hashCode() |
boolean |
isValid()
Check this number for validity.
|
ISNI |
normalize()
Normalize the value by removing all unwanted characters or
replacing characters with the ones required for verification.
|
java.lang.String |
normalizedValue()
Returns the value representation of the standard number.
|
ISNI |
reset() |
ISNI |
verify()
Verify the number.
|
set, type
public ISNI createChecksum(boolean createWithChecksum)
StandardNumber
Indicate that a correct check sum should be computed.
createChecksum
in class StandardNumber
createWithChecksum
- if checksum is includedpublic boolean isValid()
StandardNumber
Check this number for validity.
isValid
in class StandardNumber
public ISNI verify()
StandardNumber
Verify the number.
verify
in class StandardNumber
public java.lang.String normalizedValue()
Returns the value representation of the standard number.
normalizedValue
in class StandardNumber
public java.lang.String format()
Format this number.
format
in class StandardNumber
public ISNI normalize()
StandardNumber
Normalize the value by removing all unwanted characters or replacing characters with the ones required for verification.
normalize
in class StandardNumber
public ISNI reset()
reset
in class StandardNumber
public java.util.Collection<java.lang.String> getTypedVariants()
getTypedVariants
in class StandardNumber
public int compareTo(ISNI isni)
compareTo
in interface java.lang.Comparable<ISNI>
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if this is called on an
implementation that does not support `Cloneable`public static StandardNumber getInstance(java.lang.String type) throws NoSuchStandardNumberException
NoSuchStandardNumberException
public static StandardNumber getInstance(java.lang.Package thePackage, java.lang.ClassLoader classLoader, java.lang.String type) throws NoSuchStandardNumberException
NoSuchStandardNumberException