public class ISNI extends AbstractStandardNumber implements Comparable<ISNI>, StandardNumber
Constructor and Description |
---|
ISNI() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ISNI isni) |
ISNI |
createChecksum(boolean createWithChecksum)
Indicate that a correct check sum should be computed.
|
String |
format()
Format this number
|
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.
|
String |
normalizedValue()
Returns the value representation of the standard number
|
ISNI |
reset() |
ISNI |
set(CharSequence value)
Creates a new ISNI
|
String |
type()
Return the type of this standard number
|
ISNI |
verify()
Verify the number.
|
getTypedVariants
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypedVariants
public ISNI()
public String type()
StandardNumber
type
in interface StandardNumber
public ISNI set(CharSequence value)
set
in interface StandardNumber
value
- the valuepublic ISNI createChecksum(boolean createWithChecksum)
StandardNumber
createChecksum
in interface StandardNumber
public int compareTo(ISNI isni)
compareTo
in interface Comparable<ISNI>
public boolean isValid()
StandardNumber
isValid
in interface StandardNumber
public ISNI verify() throws NumberFormatException
StandardNumber
verify
in interface StandardNumber
NumberFormatException
- if verification failedpublic String normalizedValue()
normalizedValue
in interface StandardNumber
public String format()
format
in interface StandardNumber
public ISNI normalize()
StandardNumber
normalize
in interface StandardNumber
public ISNI reset()
reset
in interface StandardNumber
Copyright © 2013–2014. All rights reserved.