Overview | Package | Class | Tree | Deprecated | Index | Help
| Compoze Software, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.compoze.collab
Class CollabEnum

    java.lang.Object
      |
      +--com.compoze.collab.CollabEnum

All Implemented Interfaces:
  com.compoze.collab.util.IDigestSupport

Direct Known Subclasses:
  AppointmentTypeEnum, BusyStatusEnum, ContainerPermissionEnum, DayOfWeekEnum, DefaultContainerClassEnum, DefaultRootContainerClassEnum, DeliveryPriorityEnum, DeliveryReportLevelEnum, DocumentTypeEnum, FlagStatusEnum, FlagTextEnum, FolderTypeEnum, FollowUpStatusEnum, com.compoze.collab.im.impl.FontColorEnum, FriendStatusEnum, GenderEnum, ImportanceEnum, InstanceTypeEnum, InstanceTypeEnum, LcsFontEnum, LcsFontStyleEnum, MeetingResponseStatusEnum, MeetingResponseStatusEnum, MeetingStatusEnum, NoticeTypeEnum, PriorityEnum, RecipientTypeEnum, RecurrenceEndTypeEnum, RecurrenceInstanceEnum, RecurrenceTypeEnum, RepeatForUnitEnum, RepeatHowEnum, RepeatTypeEnum, RepeatWeekendsEnum, SelectedMailingAddressEnum, SensitivityEnum, SortOrderEnum, TaskResponseStatusEnum, TaskStatusEnum

public class CollabEnum
extends java.lang.Object
implements com.compoze.collab.util.IDigestSupport

This class is the superclass of all enumerations in the API. Enumerations are a list of `EnumElement`s. Enumerations in the Collaboration Services API have the following features:

- `int` values for switching
- programmatic Strings for debugging purposes
- Internationalizable names
- a default element
- a natural sort order
- Serializability via `readResolve`

Field Summary
`protected EnumElement[]` | `m_elements`

Constructor Summary
`protected` | `CollabEnum()` Constructor (for de-serialization);
`` | `CollabEnum(java.lang.Class elementClass, int iSize, com.compoze.collab.resource.ResourceBundleWrapper rbWrapper, EnumElement defaultElement, java.lang.String sInternalName, boolean bMaskable)` Constructor.

Method Summary
`void` | `addElement(EnumElement element)` Adds an element to the enumeration (called from classes outside package during construction).
`EnumElement` | `getDefaultElement()` Gets the default enum element.
`EnumElement` | `getElement(int iValue)` Gets an enum element.
`EnumElement[]` | `getElements()` Gets a copy of the enumeration's elements sorted in their natural order.
`java.lang.String` | `getInternalName()` Gets the internal name of the enumeration.
`EnumElement[]` | `getRawElements()` Gets the enumeration's elements.
`com.compoze.collab.resource.ResourceBundleWrapper` | `getResourceBundle()` Gets the resource bundle that enum keys are kept in.
`boolean` | `isDefaultElement(EnumElement element)` Determines if the specified element is the default for this enumeration.
`protected void` | `setDefaultElement(EnumElement element)` Sets the default enum element.
`void` | `updateDigest(java.security.MessageDigest digest)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### m_elements

    protected EnumElement[] m_elements

Constructor Detail

### CollabEnum

    protected CollabEnum()

  Constructor (for de-serialization);

### CollabEnum

    public CollabEnum(java.lang.Class elementClass,
                      int iSize,
                      com.compoze.collab.resource.ResourceBundleWrapper rbWrapper,
                      EnumElement defaultElement,
                      java.lang.String sInternalName,
                      boolean bMaskable)

  Constructor.

Method Detail

### addElement

    public void addElement(EnumElement element)

  Adds an element to the enumeration (called from classes outside package during construction).

### getElement

    public EnumElement getElement(int iValue)

  Gets an enum element.

### getDefaultElement

    public EnumElement getDefaultElement()

  Gets the default enum element.

### setDefaultElement

    protected void setDefaultElement(EnumElement element)

  Sets the default enum element.

### isDefaultElement

    public boolean isDefaultElement(EnumElement element)

  Determines if the specified element is the default for this enumeration.

### getElements

    public EnumElement[] getElements()

  Gets a copy of the enumeration's elements sorted in their natural order.
  Returns:
    the elements (not `null`)

### getRawElements

    public EnumElement[] getRawElements()

  Gets the enumeration's elements. No sort is performed so elements are not returned in their natural order.
  Returns:
    the elements (not `null`)

### getResourceBundle

    public com.compoze.collab.resource.ResourceBundleWrapper getResourceBundle()

  Gets the resource bundle that enum keys are kept in.

### getInternalName

    public java.lang.String getInternalName()

  Gets the internal name of the enumeration.
  Returns:
    the internal name

### updateDigest

    public void updateDigest(java.security.MessageDigest digest)

  Specified by:
    `updateDigest` in interface `com.compoze.collab.util.IDigestSupport`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Compoze Software, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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