Package com.adobe.epubcheck.ocf
Enum OCFMetaFile
- java.lang.Object
-
- java.lang.Enum<OCFMetaFile>
-
- com.adobe.epubcheck.ocf.OCFMetaFile
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OCFMetaFile>
enum OCFMetaFile extends java.lang.Enum<OCFMetaFile>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINERENCRYPTIONMETADATAMIMETYPESIGNATURES
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringpath
-
Constructor Summary
Constructors Modifier Constructor Description privateOCFMetaFile(java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EPUBLocationasLocation(OCFContainer container)java.lang.StringasPath()io.mola.galimatias.URLasURL(OCFContainer container)booleanisPresent(OCFContainer container)static OCFMetaFilevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OCFMetaFile[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MIMETYPE
public static final OCFMetaFile MIMETYPE
-
CONTAINER
public static final OCFMetaFile CONTAINER
-
ENCRYPTION
public static final OCFMetaFile ENCRYPTION
-
METADATA
public static final OCFMetaFile METADATA
-
SIGNATURES
public static final OCFMetaFile SIGNATURES
-
-
Method Detail
-
values
public static OCFMetaFile[] 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 (OCFMetaFile c : OCFMetaFile.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OCFMetaFile 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
-
asURL
public io.mola.galimatias.URL asURL(OCFContainer container)
-
asLocation
public EPUBLocation asLocation(OCFContainer container)
-
isPresent
public boolean isPresent(OCFContainer container)
-
asPath
public java.lang.String asPath()
-
-