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

## portlets.compoze.groupware
Class RepeatPattern.RepeatFor.Unit

    java.lang.Object
      portlets.compoze.groupware.RepeatPattern.RepeatFor.Unit

All Implemented Interfaces:
  java.io.Serializable

Enclosing class:
  RepeatPattern.RepeatFor

public static class RepeatPattern.RepeatFor.Unit
extends java.lang.Object
implements java.io.Serializable

This class stores values 'for unit'.

See Also:
  Serialized Form

Field Summary
`static RepeatPattern.RepeatFor.Unit` | `DAYS` This value represents the 'days' unit.
`static RepeatPattern.RepeatFor.Unit` | `MONTHS` This value represents the 'months' unit.
`static int` | `VALUE_DAYS` This represents the 'days' value.
`static int` | `VALUE_MONTHS` This represents the 'months' value.
`static int` | `VALUE_WEEKS` This represents the 'weeks' value.
`static int` | `VALUE_YEARS` This represents the 'years' value.
`static RepeatPattern.RepeatFor.Unit` | `WEEKS` This value represents the 'weeks' unit.
`static RepeatPattern.RepeatFor.Unit` | `YEARS` This value represents the 'years' unit.

Method Summary
`boolean` | `equals(java.lang.Object o)` Checks for equality.
`static RepeatPattern.RepeatFor.Unit` | `get(int iValue)` Gets the unit by its value.
`java.lang.String` | `getKey()` Gets the i18n resource key name.
`static java.util.List` | `getUnits()` Gets the list of units.
`int` | `getValue()` Gets the value of the unit.

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

Field Detail

### VALUE_DAYS

    public static final int VALUE_DAYS

  This represents the 'days' value.

  See Also:
    Constant Field Values

### VALUE_WEEKS

    public static final int VALUE_WEEKS

  This represents the 'weeks' value.

  See Also:
    Constant Field Values

### VALUE_MONTHS

    public static final int VALUE_MONTHS

  This represents the 'months' value.

  See Also:
    Constant Field Values

### VALUE_YEARS

    public static final int VALUE_YEARS

  This represents the 'years' value.

  See Also:
    Constant Field Values

### DAYS

    public static final RepeatPattern.RepeatFor.Unit DAYS

  This value represents the 'days' unit.

### WEEKS

    public static final RepeatPattern.RepeatFor.Unit WEEKS

  This value represents the 'weeks' unit.

### MONTHS

    public static final RepeatPattern.RepeatFor.Unit MONTHS

  This value represents the 'months' unit.

### YEARS

    public static final RepeatPattern.RepeatFor.Unit YEARS

  This value represents the 'years' unit.

Method Detail

### getKey

    public java.lang.String getKey()

  Gets the i18n resource key name.

  Returns:
    the name

### getValue

    public int getValue()

  Gets the value of the unit.

  Returns:
    the value

### get

    public static RepeatPattern.RepeatFor.Unit get(int iValue)

  Gets the unit by its value.

  Parameters:
    `iValue` - the value to get by
  Returns:
    the matching unit or `null` if not found

### getUnits

    public static java.util.List getUnits()

  Gets the list of units.

  Returns:
    the list of `Unit`s (unmodifiable)

### equals

    public boolean equals(java.lang.Object o)

  Checks for equality. The value is used to determine equality, so that the language the name is represented in is not important.

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

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

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