public class ISWC extends AbstractStandardNumber implements Comparable<ISWC>, StandardNumber
Constructor and Description |
---|
ISWC() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ISWC iswc) |
ISWC |
createChecksum(boolean createChecksum)
Indicate that a correct check sum should be computed.
|
String |
format()
Return a formatted value of this standard number
This is best for human-readable representation, but is
not necessarily a format for computation.
|
boolean |
isValid()
Check this number for validity.
|
ISWC |
normalize()
Normalize the value by removing all unwanted characters or
replacing characters with the ones required for verification.
|
String |
normalizedValue()
Return normalized value of this standard number.
|
ISWC |
reset() |
ISWC |
set(CharSequence value)
Set the input value of this standard number.
|
String |
type()
Return the type of this standard number
|
ISWC |
verify()
Verify the number.
|
getTypedVariants
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypedVariants
public ISWC()
public String type()
StandardNumber
type
in interface StandardNumber
public int compareTo(ISWC iswc)
compareTo
in interface Comparable<ISWC>
public ISWC set(CharSequence value)
StandardNumber
set
in interface StandardNumber
value
- the raw input valuepublic ISWC createChecksum(boolean createChecksum)
StandardNumber
createChecksum
in interface StandardNumber
public ISWC normalize()
StandardNumber
normalize
in interface StandardNumber
public boolean isValid()
StandardNumber
isValid
in interface StandardNumber
public ISWC verify() throws NumberFormatException
StandardNumber
verify
in interface StandardNumber
NumberFormatException
- if verification failedpublic String normalizedValue()
StandardNumber
normalizedValue
in interface StandardNumber
public String format()
StandardNumber
format
in interface StandardNumber
public ISWC reset()
reset
in interface StandardNumber
Copyright © 2013–2014. All rights reserved.