Package com.adobe.epubcheck.opf
Enum ResourceCollection.Roles
- java.lang.Object
-
- java.lang.Enum<ResourceCollection.Roles>
-
- com.adobe.epubcheck.opf.ResourceCollection.Roles
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResourceCollection.Roles>
- Enclosing class:
- ResourceCollection
public static enum ResourceCollection.Roles extends java.lang.Enum<ResourceCollection.Roles>
The collection roles reserved by IDPF. See http://www.idpf.org/epub/vocab/package/roles/
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DICTIONARYDISTRIBUTABLE_OBJECTINDEXINDEX_GROUPMANIFESTPREVIEWSCRIPTABLE_COMPONENT
-
Constructor Summary
Constructors Modifier Constructor Description privateRoles()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Optional<ResourceCollection.Roles>fromString(java.lang.String role)Returns anOptionalcontaining the enum constant for the given role name orOptional.absent()if none is found.java.lang.StringtoString()Returns the role name as defined by IDPF.static ResourceCollection.RolesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ResourceCollection.Roles[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DICTIONARY
public static final ResourceCollection.Roles DICTIONARY
-
DISTRIBUTABLE_OBJECT
public static final ResourceCollection.Roles DISTRIBUTABLE_OBJECT
-
INDEX
public static final ResourceCollection.Roles INDEX
-
INDEX_GROUP
public static final ResourceCollection.Roles INDEX_GROUP
-
MANIFEST
public static final ResourceCollection.Roles MANIFEST
-
PREVIEW
public static final ResourceCollection.Roles PREVIEW
-
SCRIPTABLE_COMPONENT
public static final ResourceCollection.Roles SCRIPTABLE_COMPONENT
-
-
Method Detail
-
values
public static ResourceCollection.Roles[] 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 (ResourceCollection.Roles c : ResourceCollection.Roles.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceCollection.Roles valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
Returns the role name as defined by IDPF.- Overrides:
toStringin classjava.lang.Enum<ResourceCollection.Roles>
-
fromString
public static com.google.common.base.Optional<ResourceCollection.Roles> fromString(java.lang.String role)
Returns anOptionalcontaining the enum constant for the given role name orOptional.absent()if none is found.
-
-