org.opends.server.authorization.dseecompat
Enum EnumDayOfWeek

java.lang.Object
  extended by java.lang.Enum<EnumDayOfWeek>
      extended by org.opends.server.authorization.dseecompat.EnumDayOfWeek
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EnumDayOfWeek>

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

This class provides an enumeration of the allowed dayofweek types.


Enum Constant Summary
DAY_FRIDAY
          The enumeration type when the bind rule has specified dayofweek type of "fri".
DAY_MONDAY
          The enumeration type when the bind rule has specified dayofweek type of "mon".
DAY_SATURDAY
          The enumeration type when the bind rule has specified dayofweek type of "sat".
DAY_SUNDAY
          The enumeration type when the bind rule has specified dayofweek type of "sun".
DAY_THURSDAY
          The enumeration type when the bind rule has specified dayofweek type of "thu".
DAY_TUESDAY
          The enumeration type when the bind rule has specified dayofweek type of "tue" .
DAY_WEDNESDAY
          The enumeration type when the bind rule has specified dayofweek type of "wed".
 
Method Summary
static EnumDayOfWeek createDayOfWeek(java.lang.String day)
          Create a new enumeration type for the specified dayofweek type name.
static EnumDayOfWeek getDayOfWeek(int day)
          Return a enumeration relating to a Calendar day of week field.
 boolean isDayOfWeek(java.lang.String day)
          Creates a new enumeration type for the specified bind rule dayofweek type.
static EnumDayOfWeek valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EnumDayOfWeek[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DAY_MONDAY

public static final EnumDayOfWeek DAY_MONDAY
The enumeration type when the bind rule has specified dayofweek type of "mon".


DAY_TUESDAY

public static final EnumDayOfWeek DAY_TUESDAY
The enumeration type when the bind rule has specified dayofweek type of "tue" .


DAY_WEDNESDAY

public static final EnumDayOfWeek DAY_WEDNESDAY
The enumeration type when the bind rule has specified dayofweek type of "wed".


DAY_THURSDAY

public static final EnumDayOfWeek DAY_THURSDAY
The enumeration type when the bind rule has specified dayofweek type of "thu".


DAY_FRIDAY

public static final EnumDayOfWeek DAY_FRIDAY
The enumeration type when the bind rule has specified dayofweek type of "fri".


DAY_SATURDAY

public static final EnumDayOfWeek DAY_SATURDAY
The enumeration type when the bind rule has specified dayofweek type of "sat".


DAY_SUNDAY

public static final EnumDayOfWeek DAY_SUNDAY
The enumeration type when the bind rule has specified dayofweek type of "sun".

Method Detail

values

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

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

valueOf

public static EnumDayOfWeek 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
java.lang.NullPointerException - if the argument is null

isDayOfWeek

public boolean isDayOfWeek(java.lang.String day)
Creates a new enumeration type for the specified bind rule dayofweek type.

Parameters:
day - The boolean type name.
Returns:
True if the keyword is equal to the specified name.

createDayOfWeek

public static EnumDayOfWeek createDayOfWeek(java.lang.String day)
Create a new enumeration type for the specified dayofweek type name.

Parameters:
day - The name of the enumeration to create.
Returns:
A new enumeration type for the name or null if the name is not valid.

getDayOfWeek

public static EnumDayOfWeek getDayOfWeek(int day)
Return a enumeration relating to a Calendar day of week field.

Parameters:
day - The day of week index to get.
Returns:
An enumeration corresponding to the wanted day of the week or null if the day index is invalid.