public enum AttachmentType extends Enum<AttachmentType>
| Enum Constant and Description |
|---|
DOC
The doc.
|
DOCX
The docx.
|
PDF
The pdf.
|
PPT
The ppt.
|
PPTX
The pptx.
|
XLS
The xls.
|
XLSX
The xlsx.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFileExtension()
Gets the file extension.
|
String |
getImage()
Gets the image.
|
static AttachmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttachmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttachmentType DOCX
public static final AttachmentType DOC
public static final AttachmentType XLS
public static final AttachmentType XLSX
public static final AttachmentType PPTX
public static final AttachmentType PPT
public static final AttachmentType PDF
public static AttachmentType[] values()
for (AttachmentType c : AttachmentType.values()) System.out.println(c);
public static AttachmentType 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 getImage()
public String getFileExtension()
Copyright © 2022. All rights reserved.