Compoze Software, Inc.

com.compoze.exchange
Class AttachmentType

java.lang.Object
  extended bycom.compoze.exchange.AttachmentType
All Implemented Interfaces:
java.io.Serializable

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

This class stores the values for an 'attachment type'. The internationalizable string values are stored in the exchange_resources.properties file (accessed through ExchangeProperties) and referenced by their key.

See Also:
Serialized Form

Field Summary
static AttachmentType EMBEDDED_MESSAGE
          This value represents an 'embedded message' AttachmentType.
static AttachmentType FILE_DATA
          This value represents a 'file data' AttachmentType.
static AttachmentType FILE_LINK
          This value represents a 'file link' AttachmentType.
static AttachmentType OLE
          This value represents an 'ole' AttachmentType.
static int STORE_VALUE_EMBEDDED_MESSAGE
          This value represents the 'embedded message' store value.
static int STORE_VALUE_FILE_DATA
          This value represents the 'file data' store value.
static int STORE_VALUE_FILE_LINK
          This value represents the 'file link' store value.
static int STORE_VALUE_OLE
          This value represents the 'OLE' store value.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks for equality.
static AttachmentType get(int iStoreValue)
          Gets the attachment type by the store value.
static java.util.List getList()
          Gets the list of attachment type levels.
 java.lang.String getName()
          Gets the name of the attachment type using the system default locale.
 java.lang.String getName(java.util.Locale locale)
          Gets the name of the attachment type level using the specified locale.
 int getStoreValue()
          Gets the store value used to store the attachment type in the storage system.
 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

STORE_VALUE_FILE_DATA

public static final int STORE_VALUE_FILE_DATA
This value represents the 'file data' store value.

See Also:
Constant Field Values

STORE_VALUE_FILE_LINK

public static final int STORE_VALUE_FILE_LINK
This value represents the 'file link' store value.

See Also:
Constant Field Values

STORE_VALUE_OLE

public static final int STORE_VALUE_OLE
This value represents the 'OLE' store value.

See Also:
Constant Field Values

STORE_VALUE_EMBEDDED_MESSAGE

public static final int STORE_VALUE_EMBEDDED_MESSAGE
This value represents the 'embedded message' store value.

See Also:
Constant Field Values

FILE_DATA

public static final AttachmentType FILE_DATA
This value represents a 'file data' AttachmentType.


FILE_LINK

public static final AttachmentType FILE_LINK
This value represents a 'file link' AttachmentType.


OLE

public static final AttachmentType OLE
This value represents an 'ole' AttachmentType.


EMBEDDED_MESSAGE

public static final AttachmentType EMBEDDED_MESSAGE
This value represents an 'embedded message' AttachmentType.

Method Detail

getName

public java.lang.String getName()
Gets the name of the attachment type using the system default locale.

Returns:
the name

getName

public java.lang.String getName(java.util.Locale locale)
Gets the name of the attachment type level using the specified locale.

Parameters:
locale - the locale
Returns:
the name

getStoreValue

public int getStoreValue()
Gets the store value used to store the attachment type in the storage system.

Returns:
the store value

get

public static AttachmentType get(int iStoreValue)
Gets the attachment type by the store value.

Parameters:
iStoreValue - the store value to get by
Returns:
the matching AttachmentType or null if not found

getList

public static java.util.List getList()
Gets the list of attachment type levels.

Returns:
the list of AttachmentType objects (unmodifiable)

equals

public boolean equals(java.lang.Object o)
Checks for equality. The store value is used to determine equality.

Parameters:
o - the object to check
Returns:
true if this object has the same store value as the argument; false otherwise

toString

public java.lang.String toString()
Returns a string representation of the 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
Returns:
the string representation of the object

Compoze Software, Inc.

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