public class DOI extends AbstractStandardNumber implements Comparable<DOI>, StandardNumber
Constructor and Description |
---|
DOI() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DOI doi) |
DOI |
createChecksum(boolean checksum)
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.
|
Collection<String> |
getTypedVariants() |
boolean |
isValid()
Check this number for validity.
|
DOI |
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.
|
DOI |
reset() |
DOI |
set(CharSequence value)
Set the input value of this standard number.
|
String |
type()
Return the type of this standard number
|
DOI |
verify()
Verify the number.
|
public DOI()
public String type()
StandardNumber
type
in interface StandardNumber
public int compareTo(DOI doi)
compareTo
in interface Comparable<DOI>
public DOI set(CharSequence value)
StandardNumber
set
in interface StandardNumber
value
- the raw input valuepublic DOI createChecksum(boolean checksum)
StandardNumber
createChecksum
in interface StandardNumber
public DOI normalize()
StandardNumber
normalize
in interface StandardNumber
public boolean isValid()
StandardNumber
isValid
in interface StandardNumber
public DOI 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 Collection<String> getTypedVariants()
getTypedVariants
in interface StandardNumber
getTypedVariants
in class AbstractStandardNumber
public DOI reset()
reset
in interface StandardNumber
Copyright © 2013–2014. All rights reserved.