|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ContentType>
org.ow2.dragon.util.ContentType
public enum ContentType
An enumeration of Dragon supported content types
| Enum Constant Summary | |
|---|---|
DOC
|
|
HTML
|
|
PDF
|
|
XML
|
|
| Method Summary | |
|---|---|
static ContentType |
fromString(java.lang.String type)
Return the ContentType related to the given string or null if it isn't supported |
static java.lang.String |
getRelatedSuffix(ContentType type)
Return the commonly acceptable file suffix for a given ContentType Example: if ContentType.XML then suffix = ".xml" |
java.lang.String |
toString()
|
static ContentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ContentType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ContentType DOC
public static final ContentType PDF
public static final ContentType HTML
public static final ContentType XML
| Method Detail |
|---|
public static final ContentType[] values()
for(ContentType c : ContentType.values())
System.out.println(c);
public static ContentType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic java.lang.String toString()
toString in class java.lang.Enum<ContentType>public static ContentType fromString(java.lang.String type)
type - the string representing a potential ContentType
ContentType enum related to the given Stringpublic static java.lang.String getRelatedSuffix(ContentType type)
ContentType
type - a ContentType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||