public static enum Attachment.Type extends Enum<Attachment.Type>
Enum Constant and Description |
---|
CSS |
EXCEL |
HTML |
IMAGE |
JAVA_ARCHIVE |
JAVA_SOURCE |
JS |
MULTIMEDIA |
PDF |
POWERPOINT |
TEXT |
WORD |
XML |
ZIP |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
static Attachment.Type |
getForMimeType(String mimeType,
String fileExtension) |
static Set<Attachment.Type> |
getTypes(Set<String> typeStrs) |
static Attachment.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Attachment.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Attachment.Type PDF
public static final Attachment.Type IMAGE
public static final Attachment.Type MULTIMEDIA
public static final Attachment.Type XML
public static final Attachment.Type HTML
public static final Attachment.Type JS
public static final Attachment.Type CSS
public static final Attachment.Type TEXT
public static final Attachment.Type WORD
public static final Attachment.Type EXCEL
public static final Attachment.Type POWERPOINT
public static final Attachment.Type JAVA_SOURCE
public static final Attachment.Type JAVA_ARCHIVE
public static final Attachment.Type ZIP
public static Attachment.Type[] values()
for (Attachment.Type c : Attachment.Type.values()) System.out.println(c);
public static Attachment.Type 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 static Attachment.Type getForMimeType(String mimeType, String fileExtension)
public String getDescription()
public static Set<Attachment.Type> getTypes(Set<String> typeStrs)
Copyright © 2003–2020 Atlassian. All rights reserved.