com.openexchange.mail
Enum MailJSONField

java.lang.Object
  extended by java.lang.Enum<MailJSONField>
      extended by com.openexchange.mail.MailJSONField
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MailJSONField>

public enum MailJSONField
extends java.lang.Enum<MailJSONField>

MailJSONField - An enumeration of mail JSON fields as defined in HTTP API's mail section

Author:
Thorben Betten

Enum Constant Summary
ACCOUNT_NAME
          Account name
ATTACHMENT_FILE_NAME
          Attachment's file name
ATTACHMENT_UNIQUE_DISK_FILE_NAME
          Attachment's unique disk file name
ATTACHMENTS
          Attachments
CID
          Header Content-ID
COLOR_LABEL
          Color label
CONTENT
          Content
CONTENT_TYPE
          Header Content-Type
DATASOURCES
          Data sources
DELETED
          Deleted count
DISPOSITION
          Disposition
DISPOSITION_NOTIFICATION_TO
          Header Disposition-Notification-To
FLAGS
          Flags
FOLDER
          Folder
FROM
          From
HAS_ATTACHMENTS
          Whether a message has attachments
HEADERS
          Headers
INFOSTORE_IDS
          Infostore IDs
MODIFIED
          modified
MSGREF
          Message reference
NESTED_MESSAGES
          Nested messages
NEW
          New count
PRIORITY
          Priority
RECEIVED_DATE
          Received date
RECIPIENT_BCC
          Bcc
RECIPIENT_CC
          Cc
RECIPIENT_TO
          To
SEEN
          Flag \SEEN
SENT_DATE
          Sent date
SIZE
          Size
SUBJECT
          Subject
THREAD_LEVEL
          Thread level
TOTAL
          Total count
UNREAD
          Unread count
USER
          User
VALUE
          Value
VCARD
          VCard
 
Method Summary
 java.lang.String getKey()
           
static MailJSONField valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MailJSONField[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ATTACHMENT_FILE_NAME

public static final MailJSONField ATTACHMENT_FILE_NAME
Attachment's file name


ATTACHMENT_UNIQUE_DISK_FILE_NAME

public static final MailJSONField ATTACHMENT_UNIQUE_DISK_FILE_NAME
Attachment's unique disk file name


HEADERS

public static final MailJSONField HEADERS
Headers


NESTED_MESSAGES

public static final MailJSONField NESTED_MESSAGES
Nested messages


VALUE

public static final MailJSONField VALUE
Value


THREAD_LEVEL

public static final MailJSONField THREAD_LEVEL
Thread level


FLAGS

public static final MailJSONField FLAGS
Flags


FROM

public static final MailJSONField FROM
From


RECIPIENT_TO

public static final MailJSONField RECIPIENT_TO
To


RECIPIENT_CC

public static final MailJSONField RECIPIENT_CC
Cc


RECIPIENT_BCC

public static final MailJSONField RECIPIENT_BCC
Bcc


SUBJECT

public static final MailJSONField SUBJECT
Subject


SENT_DATE

public static final MailJSONField SENT_DATE
Sent date


RECEIVED_DATE

public static final MailJSONField RECEIVED_DATE
Received date


SIZE

public static final MailJSONField SIZE
Size


CONTENT_TYPE

public static final MailJSONField CONTENT_TYPE
Header Content-Type


CID

public static final MailJSONField CID
Header Content-ID


CONTENT

public static final MailJSONField CONTENT
Content


ATTACHMENTS

public static final MailJSONField ATTACHMENTS
Attachments


HAS_ATTACHMENTS

public static final MailJSONField HAS_ATTACHMENTS
Whether a message has attachments


DISPOSITION

public static final MailJSONField DISPOSITION
Disposition


USER

public static final MailJSONField USER
User


DISPOSITION_NOTIFICATION_TO

public static final MailJSONField DISPOSITION_NOTIFICATION_TO
Header Disposition-Notification-To


PRIORITY

public static final MailJSONField PRIORITY
Priority


MSGREF

public static final MailJSONField MSGREF
Message reference


COLOR_LABEL

public static final MailJSONField COLOR_LABEL
Color label


INFOSTORE_IDS

public static final MailJSONField INFOSTORE_IDS
Infostore IDs


DATASOURCES

public static final MailJSONField DATASOURCES
Data sources


VCARD

public static final MailJSONField VCARD
VCard


TOTAL

public static final MailJSONField TOTAL
Total count


NEW

public static final MailJSONField NEW
New count


UNREAD

public static final MailJSONField UNREAD
Unread count


DELETED

public static final MailJSONField DELETED
Deleted count


FOLDER

public static final MailJSONField FOLDER
Folder


SEEN

public static final MailJSONField SEEN
Flag \SEEN


MODIFIED

public static final MailJSONField MODIFIED
modified


ACCOUNT_NAME

public static final MailJSONField ACCOUNT_NAME
Account name

Method Detail

values

public static final MailJSONField[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MailJSONField c : MailJSONField.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MailJSONField valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getKey

public java.lang.String getKey()
Returns:
The JSON key