Package edu.harvard.hul.ois.jhove
Enum IdentifierType
- java.lang.Object
-
- java.lang.Enum<IdentifierType>
-
- edu.harvard.hul.ois.jhove.IdentifierType
-
- All Implemented Interfaces:
Serializable,Comparable<IdentifierType>
public enum IdentifierType extends Enum<IdentifierType>
This class defines enumerated types for an Identifier of a format specification document. Applications will not create or modify IdentifierTypes, but will use one of the predefined IdentifierType instances ANSI, DDC, DOI, ECMA, HANDLE, ISO, ISBN, LC, LCCN, NISO, PII, RFC, SICI, URI, URL, URN, or OTHER.- See Also:
Identifier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANSIIdentifier type for American National Standards Institute.CCITTIdentifier type for CCITT.DDCIdentifier type for Dewey Decimal Classification.DOIIdentifier type for Digital Object Identifier.ECMAIdentifier type for ECMA.HANDLEIdentifier type for CNRI Handle.ISBNIdentifier type for International Standard Book Number.ISOIdentifier type for International Standards Organization.ITUIdentifier type for International Telecommunication Union.JEITAIdentifier type for Japan Electronics and Information Technology Industries Association.LCIdentifier type for Library of Congress classification.LCCNIdentifier type for Library of Congress catalogue number.NISOIdentifier type for NISO standard number.OTHERIdentifier type for whatever doesn't fit other categories.PIIIdentifier type for Publisher Item Identifier.RFCIdentifier type for IETF Request for Comment.SICIIdentifier type for Serial Item and Contribution Identifier.URIIdentifier type for Uniform Resource Identifier.URLIdentifier type for Uniform Resource Locator.URNIdentifier type for Uniform Resource Name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static IdentifierTypevalueOf(String name)Returns the enum constant of this type with the specified name.static IdentifierType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANSI
public static final IdentifierType ANSI
Identifier type for American National Standards Institute.
-
DDC
public static final IdentifierType DDC
Identifier type for Dewey Decimal Classification.
-
DOI
public static final IdentifierType DOI
Identifier type for Digital Object Identifier.
-
ECMA
public static final IdentifierType ECMA
Identifier type for ECMA.
-
HANDLE
public static final IdentifierType HANDLE
Identifier type for CNRI Handle.
-
ISO
public static final IdentifierType ISO
Identifier type for International Standards Organization.
-
ISBN
public static final IdentifierType ISBN
Identifier type for International Standard Book Number.
-
LC
public static final IdentifierType LC
Identifier type for Library of Congress classification.
-
LCCN
public static final IdentifierType LCCN
Identifier type for Library of Congress catalogue number.
-
NISO
public static final IdentifierType NISO
Identifier type for NISO standard number.
-
PII
public static final IdentifierType PII
Identifier type for Publisher Item Identifier.
-
RFC
public static final IdentifierType RFC
Identifier type for IETF Request for Comment.
-
SICI
public static final IdentifierType SICI
Identifier type for Serial Item and Contribution Identifier.
-
URI
public static final IdentifierType URI
Identifier type for Uniform Resource Identifier.
-
URL
public static final IdentifierType URL
Identifier type for Uniform Resource Locator.
-
URN
public static final IdentifierType URN
Identifier type for Uniform Resource Name.
-
CCITT
public static final IdentifierType CCITT
Identifier type for CCITT.
-
ITU
public static final IdentifierType ITU
Identifier type for International Telecommunication Union.
-
JEITA
public static final IdentifierType JEITA
Identifier type for Japan Electronics and Information Technology Industries Association.
-
OTHER
public static final IdentifierType OTHER
Identifier type for whatever doesn't fit other categories.
-
-
Field Detail
-
name
public final String name
A String name for the type, used for reporting.
-
-
Method Detail
-
values
public static IdentifierType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IdentifierType c : IdentifierType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdentifierType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<IdentifierType>
-
-