class SICI extends StandardNumber implements java.lang.Cloneable, java.lang.Comparable<SICI>
Z39.56 Serial Item and Contribution Identifier.
The SICI code (Serial Item and Contribution Identifier) is described in the American standard ANSI/NISO Z39.56. The SICI code is known among international scientific publishers and reproduction rights agencies. The SICI even provides for the unambiguous identification of each article or contribution published in a given issue of a serial publication.
The SICI contains
the ISSN
the date of publication, between brackets and formatted according to the formula YYYYMM
the issue number
the version number of the standard, here 1, preceded by a semicolon
and lastly a hyphen which precedes the control character calculated on the basis of all the preceding characters
Example:
0095-4403(199502/03)21:3<12:WATIIB>2.0.TX;2-JModifier and Type | Field and Description |
---|---|
private static java.lang.String |
ALPHABET |
private boolean |
createWithChecksum |
private java.lang.String |
formatted |
private static int |
modulus |
private static java.util.regex.Pattern |
PATTERN |
type, value
Modifier | Constructor and Description |
---|---|
protected |
SICI() |
Modifier and Type | Method and Description |
---|---|
private boolean |
check() |
private java.lang.String |
clean(java.lang.String raw) |
java.lang.Object |
clone()
Returns a clone if the implementation is cloneable.
|
int |
compareTo(SICI sici) |
SICI |
createChecksum(boolean createWithChecksum)
Indicate that a correct check sum should be computed.
|
boolean |
equals(java.lang.Object object) |
java.lang.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.
|
java.util.Collection<java.lang.String> |
getTypedVariants() |
int |
hashCode() |
boolean |
isValid()
Check this number for validity.
|
SICI |
normalize()
Normalize the value by removing all unwanted characters or
replacing characters with the ones required for verification.
|
java.lang.String |
normalizedValue()
Return normalized value of this standard number.
|
SICI |
reset() |
SICI |
verify()
Verify the number.
|
set, type
getInstance, getInstance
private static final java.util.regex.Pattern PATTERN
private static final java.lang.String ALPHABET
private static final int modulus
private java.lang.String formatted
private boolean createWithChecksum
public int compareTo(SICI sici)
compareTo
in interface java.lang.Comparable<SICI>
public SICI createChecksum(boolean createWithChecksum)
StandardNumber
Indicate that a correct check sum should be computed.
createChecksum
in class StandardNumber
createWithChecksum
- if checksum is includedpublic SICI normalize()
StandardNumber
Normalize the value by removing all unwanted characters or replacing characters with the ones required for verification.
normalize
in class StandardNumber
public boolean isValid()
StandardNumber
Check this number for validity.
isValid
in class StandardNumber
public SICI verify()
StandardNumber
Verify the number.
verify
in class StandardNumber
public java.lang.String normalizedValue()
StandardNumber
Return normalized value of this standard number. In most cases, this is also the canonical form of the standard number. This is a representation without unneccessary characters, useful for computation purposes, like comparing for equivalence.
normalizedValue
in class StandardNumber
public java.lang.String format()
StandardNumber
Return a formatted value of this standard number This is best for human-readable representation, but is not necessarily a format for computation.
format
in class StandardNumber
public SICI 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 raw)
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