public enum DocumentType extends Enum<DocumentType>
Document| Enum Constant and Description |
|---|
ARTICLE
Document type for a printed article.
|
BOOK
Document type for an book.
|
OTHER
Document type that doesn't fit the other categories.
|
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.
|
| Modifier and Type | Field and Description |
|---|---|
String |
name
A String name for the type, used for reporting.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static DocumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentType ARTICLE
public static final DocumentType BOOK
public static final DocumentType REPORT
public static final DocumentType RFC
public static final DocumentType STANDARD
public static final DocumentType WEB
public static final DocumentType OTHER
public final String name
public static DocumentType[] values()
for (DocumentType c : DocumentType.values()) System.out.println(c);
public static DocumentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<DocumentType>Copyright © 2008–2019 The Open Preservation Foundation. All rights reserved.