Package com.dropbox.core.v2.files
Enum PreviewError.Tag
- java.lang.Object
-
- java.lang.Enum<PreviewError.Tag>
-
- com.dropbox.core.v2.files.PreviewError.Tag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PreviewError.Tag>
- Enclosing class:
- PreviewError
public static enum PreviewError.Tag extends java.lang.Enum<PreviewError.Tag>
Discriminating tag type forPreviewError
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_PROGRESS
This preview generation is still in progress and the file is not ready for preview yet.PATH
An error occurs when downloading metadata for the file.UNSUPPORTED_CONTENT
The file content is not supported for preview generation.UNSUPPORTED_EXTENSION
The file extension is not supported preview generation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreviewError.Tag
valueOf​(java.lang.String name)
Returns the enum constant of this type with the specified name.static PreviewError.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATH
public static final PreviewError.Tag PATH
An error occurs when downloading metadata for the file.
-
IN_PROGRESS
public static final PreviewError.Tag IN_PROGRESS
This preview generation is still in progress and the file is not ready for preview yet.
-
UNSUPPORTED_EXTENSION
public static final PreviewError.Tag UNSUPPORTED_EXTENSION
The file extension is not supported preview generation.
-
UNSUPPORTED_CONTENT
public static final PreviewError.Tag UNSUPPORTED_CONTENT
The file content is not supported for preview generation.
-
-
Method Detail
-
values
public static PreviewError.Tag[] 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 (PreviewError.Tag c : PreviewError.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreviewError.Tag 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
-
-