Enum Class ResourceCollection.Roles
- All Implemented Interfaces:
Serializable, Comparable<ResourceCollection.Roles>, Constable
- Enclosing class:
ResourceCollection
The collection roles reserved by IDPF. See http://www.idpf.org/epub/vocab/package/roles/
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Optional<ResourceCollection.Roles> fromString(String role) Returns anOptionalcontaining the enum constant for the given role name orOptional.absent()if none is found.toString()Returns the role name as defined by IDPF.static ResourceCollection.RolesReturns the enum constant of this class with the specified name.static ResourceCollection.Roles[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DICTIONARY
-
DISTRIBUTABLE_OBJECT
-
INDEX
-
INDEX_GROUP
-
MANIFEST
-
PREVIEW
-
SCRIPTABLE_COMPONENT
-
-
Constructor Details
-
Roles
private Roles()
-
-
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
Returns the role name as defined by IDPF.- Overrides:
toStringin classEnum<ResourceCollection.Roles>
-
fromString
Returns anOptionalcontaining the enum constant for the given role name orOptional.absent()if none is found.
-