public enum FormatsEnum extends Enum<FormatsEnum>
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getExtension() |
String |
getMimeType() |
static FormatsEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatsEnum |
valueOfExtension(String extension) |
static FormatsEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatsEnum HTML
public static final FormatsEnum PDF
public static final FormatsEnum PNG
public static FormatsEnum[] values()
for (FormatsEnum c : FormatsEnum.values()) System.out.println(c);
public static FormatsEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getExtension()
public String getMimeType()
public String getDescription()
public static FormatsEnum valueOfExtension(String extension)
Copyright © 2008–2015 CodeLutin. All rights reserved.