Package edu.harvard.hul.ois.jhove
Enum Class DocumentType
- All Implemented Interfaces:
Serializable,Comparable<DocumentType>,java.lang.constant.Constable
This class defines enumerated types for a Document.
Applications will not create or modify DocumentTypes, but will
use one of the predefined DocumentType instances
ARTICLE, BOOK, REPORT, RFC, STANDARD, WEB, or OTHER.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDocument type for a printed article.Document type for an book.Document type that doesn't fit the other categories.Document type for a report.Document type for an IETF Request for Comment.Document type for a standards body publication.Document type for a Web page. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiontoString()static DocumentTypeReturns the enum constant of this class with the specified name.static DocumentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARTICLE
Document type for a printed article. -
BOOK
Document type for an book. -
REPORT
Document type for a report. -
RFC
Document type for an IETF Request for Comment. -
STANDARD
Document type for a standards body publication. -
WEB
Document type for a Web page. -
OTHER
Document type that doesn't fit the other categories.
-
-
Field Details
-
name
A String name for the type, used for reporting.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<DocumentType>
-