|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DocumentFormat>
com.silverpeas.converter.DocumentFormat
public enum DocumentFormat
Enumeration of the different formats of documents supported in Silverpeas.
Enum Constant Summary | |
---|---|
doc
The MS-Word 97/2000/XP format. |
|
html
The HTML format. |
|
odt
The OpenDocument format for text. |
|
pdf
The Portable Document Format aka PDF. |
|
rtf
The Microsoft's Rich Text Format aka RTF. |
Method Summary | |
---|---|
String |
getMimeType()
Gets the MIME type corrsponding to this document format. |
static DocumentFormat |
inFormat(DocumentFormat format)
A helper method to improve readability in method calls with a document format as argument. |
static DocumentFormat |
inFormat(String format)
A helper method to both improve the readability in method calls and to encode a string representation of a document format into the corresponding instance. |
static DocumentFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DocumentFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DocumentFormat pdf
public static final DocumentFormat doc
public static final DocumentFormat rtf
public static final DocumentFormat odt
public static final DocumentFormat html
Method Detail |
---|
public static DocumentFormat[] values()
for (DocumentFormat c : DocumentFormat.values()) System.out.println(c);
public static DocumentFormat valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static DocumentFormat inFormat(DocumentFormat format)
format
- a document format.
public static DocumentFormat inFormat(String format)
format
- the format of the document.
public String getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |