Holger's
Java API

com.antelmann.timeregister
Enum WorkUnit.Type

java.lang.Object
  extended by java.lang.Enum<WorkUnit.Type>
      extended by com.antelmann.timeregister.WorkUnit.Type
All Implemented Interfaces:
Serializable, Comparable<WorkUnit.Type>
Enclosing class:
WorkUnit

public static enum WorkUnit.Type
extends Enum<WorkUnit.Type>


Enum Constant Summary
SICK
          employee is ill
SPECIAL_ASSIGNMENT
          employee is on special assignment: a seminar, school, etc.
VACATION
          employee is on scheduled vacation
WORK
          the standard for punch data
 
Method Summary
static WorkUnit.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WorkUnit.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WORK

public static final WorkUnit.Type WORK
the standard for punch data


SICK

public static final WorkUnit.Type SICK
employee is ill


VACATION

public static final WorkUnit.Type VACATION
employee is on scheduled vacation


SPECIAL_ASSIGNMENT

public static final WorkUnit.Type SPECIAL_ASSIGNMENT
employee is on special assignment: a seminar, school, etc.

Method Detail

values

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

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

valueOf

public static WorkUnit.Type valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name


(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads