Package com.independentsoft.msg
Enum Class AttachmentMethod
- All Implemented Interfaces:
Serializable,Comparable<AttachmentMethod>,Constable
Represents the way the contents of an attachment can be accessed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment to recipients with access to a common file server.The Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment.The Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment.The Attachment.getDataObject() contains the attachment data.The Attachment.getDataObject() contains an embedded Message object.The attachment has just been created.NoneThe attachment is an embedded OLE object. -
Method Summary
Modifier and TypeMethodDescriptionstatic AttachmentMethodReturns the enum constant of this class with the specified name.static AttachmentMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_ATTACHMENT
The attachment has just been created. -
ATTACH_BY_VALUE
The Attachment.getDataObject() contains the attachment data. -
ATTACH_BY_REFERENCE
The Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment to recipients with access to a common file server. -
ATTACH_BY_REFERENCE_RESOLVE
The Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment. -
ATTACH_BY_REFERENCE_ONLY
The Attachment.getPathName() or the Attachment.getLongPathName() contains a fully-qualified path identifying the attachment. -
EMBEDDED_MESSAGE
The Attachment.getDataObject() contains an embedded Message object. -
OLE
The attachment is an embedded OLE object. -
ATTACH_BY_WEB_REFERENCE
-
NONE
None
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-