Compoze Software, Inc.

com.compoze.exchange.webdav
Class MessageFlag


java.lang.Object

  |

  +--com.compoze.exchange.webdav.MessageFlag

All Implemented Interfaces:
java.io.Serializable

public class MessageFlag
extends java.lang.Object
implements java.io.Serializable

This class implements a MessageFlag. To create a custom MessageFlag, use the create(String) method. A MessageFlag key is used to lookup the readable string from exchange_resource.properties.

See Also:
Serialized Form

Field Summary
static MessageFlag FOLLOW_UP
          This value represents the 'follow up' message flag.
static MessageFlag FOR_YOUR_INFORMATION
          This value represents the 'for your information' message flag.
static MessageFlag FORWARD
          This value represents the 'forward' message flag.
static MessageFlag NO_RESPONSE_NECESSARY
          This value represents the 'no response necessary' message flag.
static MessageFlag READ
          This value represents the 'read' message flag.
static MessageFlag REPLY
          This value represents the 'reply' message flag.
static MessageFlag REPLY_TO_ALL
          This value represents the 'reply to all' message flag.
static MessageFlag REVIEW
          This value represents the 'review' message flag.
static int VALUE_FOLLOW_UP
          This value represents the 'follow up' key value message flag.
static int VALUE_FOR_YOUR_INFORMATION
          This value represents the 'for your information' key value message flag.
static int VALUE_FORWARD
          This value represents the 'forward' key value message flag.
static int VALUE_NO_RESPONSE_NECESSARY
          This value represents the 'no response necessary' key value message flag.
static int VALUE_READ
          This value represents the 'read' key value message flag.
static int VALUE_REPLY
          This value represents the 'reply' key value message flag.
static int VALUE_REPLY_TO_ALL
          This value represents the 'reply to all' key value message flag.
static int VALUE_REVIEW
          This value represents the 'review' key value message flag.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other MessageFlag object is "equal to" this one.
static MessageFlag get(int iValue)
          Gets the message flag by the key value.
static MessageFlag get(java.lang.String sFlag)
          Deprecated. This method has been deprecated as of version 2.9 and will be removed in Harmony for Microsoft Exchange v3.0. This method does not properly account for locale. Use get(int) and the getKeyValue().
 int getKeyValue()
          Gets the key value.
static java.util.List getMessageFlags()
          Gets an unmodifiable list of message flags.
 java.lang.String toString()
          Returns a string representation of the object.
 java.lang.String toString(java.util.Locale locale)
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_FOLLOW_UP


public static final int VALUE_FOLLOW_UP
This value represents the 'follow up' key value message flag.

VALUE_FOR_YOUR_INFORMATION


public static final int VALUE_FOR_YOUR_INFORMATION
This value represents the 'for your information' key value message flag.

VALUE_FORWARD


public static final int VALUE_FORWARD
This value represents the 'forward' key value message flag.

VALUE_NO_RESPONSE_NECESSARY


public static final int VALUE_NO_RESPONSE_NECESSARY
This value represents the 'no response necessary' key value message flag.

VALUE_READ


public static final int VALUE_READ
This value represents the 'read' key value message flag.

VALUE_REPLY


public static final int VALUE_REPLY
This value represents the 'reply' key value message flag.

VALUE_REPLY_TO_ALL


public static final int VALUE_REPLY_TO_ALL
This value represents the 'reply to all' key value message flag.

VALUE_REVIEW


public static final int VALUE_REVIEW
This value represents the 'review' key value message flag.

FOLLOW_UP


public static final MessageFlag FOLLOW_UP
This value represents the 'follow up' message flag.

FOR_YOUR_INFORMATION


public static final MessageFlag FOR_YOUR_INFORMATION
This value represents the 'for your information' message flag.

FORWARD


public static final MessageFlag FORWARD
This value represents the 'forward' message flag.

NO_RESPONSE_NECESSARY


public static final MessageFlag NO_RESPONSE_NECESSARY
This value represents the 'no response necessary' message flag.

READ


public static final MessageFlag READ
This value represents the 'read' message flag.

REPLY


public static final MessageFlag REPLY
This value represents the 'reply' message flag.

REPLY_TO_ALL


public static final MessageFlag REPLY_TO_ALL
This value represents the 'reply to all' message flag.

REVIEW


public static final MessageFlag REVIEW
This value represents the 'review' message flag.
Method Detail

getKeyValue


public int getKeyValue()
Gets the key value.
Returns:
the key value for the message flag

get


public static MessageFlag get(int iValue)
Gets the message flag by the key value.
Parameters:
iValue - the key value of the message flag
Returns:
the matching message flag or null if not found

get


public static MessageFlag get(java.lang.String sFlag)
Deprecated. This method has been deprecated as of version 2.9 and will be removed in Harmony for Microsoft Exchange v3.0. This method does not properly account for locale. Use get(int) and the getKeyValue().

Gets the message flag by the store value
Parameters:
sFlag - the value of the message flag
Returns:
the matching message flag or null if not found

getMessageFlags


public static java.util.List getMessageFlags()
Gets an unmodifiable list of message flags.
Returns:
the list of MessageFlag objects.

equals


public boolean equals(java.lang.Object o)
Indicates whether some other MessageFlag object is "equal to" this one.
Overrides:
equals in class java.lang.Object
Returns:
true if this object is the same as the obj argument; false otherwise

toString


public java.lang.String toString()
Returns a string representation of the object.
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the object.

toString


public java.lang.String toString(java.util.Locale locale)
Returns a string representation of the object.
Parameters:
locale - the locale to use.
Returns:
the string representation of the object.

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.