public static enum Constants.MimeType extends Enum<Constants.MimeType>
| Enum Constant and Description |
|---|
APPLICATION_JSON |
APPLICATION_PDF |
APPLICATION_ZIP |
IMAGE_PNG |
TEXT_CSV |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatName() |
String |
getMimeType() |
static boolean |
isKnownMimeType(String value) |
static Constants.MimeType |
toInstance(String value) |
String |
toString() |
static Constants.MimeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constants.MimeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.MimeType APPLICATION_JSON
public static final Constants.MimeType APPLICATION_PDF
public static final Constants.MimeType APPLICATION_ZIP
public static final Constants.MimeType IMAGE_PNG
public static final Constants.MimeType TEXT_CSV
public static Constants.MimeType[] values()
for (Constants.MimeType c : Constants.MimeType.values()) System.out.println(c);
public static Constants.MimeType 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 getMimeType()
public String getFormatName()
public static boolean isKnownMimeType(String value)
public static Constants.MimeType toInstance(String value)
public String toString()
toString in class Enum<Constants.MimeType>Copyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.