Package ag.smaser.trip.filefilter
Enum AdapterOutputType
- java.lang.Object
-
- java.lang.Enum<AdapterOutputType>
-
- ag.smaser.trip.filefilter.AdapterOutputType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AdapterOutputType>
public enum AdapterOutputType extends java.lang.Enum<AdapterOutputType>
Enumeration of the standard types of conversion output that the TRIPcof File Filter API supports.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Html
The adapter can render files as HTML.MultipartMime
The adapter can render files as multipart MIME documents, a.k.a.Original
The adapter can output the original format.Pdf
The adapter can render files as PDF.Text
The adapter can convert files into plain text.Xml
The adapter can convert files into XML.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOutputType()
The output type as an integer value.static AdapterOutputType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AdapterOutputType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Original
public static final AdapterOutputType Original
The adapter can output the original format.
-
Text
public static final AdapterOutputType Text
The adapter can convert files into plain text.
-
Html
public static final AdapterOutputType Html
The adapter can render files as HTML.
-
MultipartMime
public static final AdapterOutputType MultipartMime
The adapter can render files as multipart MIME documents, a.k.a. web archive files (.mht).
-
Pdf
public static final AdapterOutputType Pdf
The adapter can render files as PDF.
-
Xml
public static final AdapterOutputType Xml
The adapter can convert files into XML.
-
-
Method Detail
-
values
public static AdapterOutputType[] 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 (AdapterOutputType c : AdapterOutputType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdapterOutputType 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
-
getOutputType
public int getOutputType()
The output type as an integer value.
-
-