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
Modifier and Type | Field and Description |
---|---|
private static MOD112 |
check |
private boolean |
createWithChecksum |
private java.lang.String |
formatted |
private static java.util.regex.Pattern |
PATTERN |
type, value
Modifier | Constructor and Description |
---|---|
protected |
ISNI() |
protected |
ISNI(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
private boolean |
check() |
private java.lang.String |
clean(java.lang.String isbn) |
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.
|
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
getInstance, getInstance
private static final java.util.regex.Pattern PATTERN
private static final MOD112 check
private java.lang.String formatted
private boolean createWithChecksum
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
private boolean check()
private java.lang.String clean(java.lang.String isbn)
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
StandardNumberSpi
Returns a clone if the implementation is cloneable.
clone
in class StandardNumberSpi
java.lang.CloneNotSupportedException
- if this is called on an
implementation that does not support Cloneable