org.jtheque.core.utils.db
Enum DaoNotes.NoteType

java.lang.Object
  extended by java.lang.Enum<DaoNotes.NoteType>
      extended by org.jtheque.core.utils.db.DaoNotes.NoteType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DaoNotes.NoteType>
Enclosing class:
DaoNotes

public static enum DaoNotes.NoteType
extends java.lang.Enum<DaoNotes.NoteType>

A properties class for notes.

Author:
Baptiste Wicht

Enum Constant Summary
BAD
           
ERROR
           
GOOD
           
MIDDLE
           
NULL
           
PERFECT
           
UNDEFINED
           
VERYGOOD
           
 
Method Summary
static DaoNotes.NoteType getEnum(int e)
          Return the enum with the enum int value.
 int intValue()
          Return the int value of the NoteType.
static DaoNotes.NoteType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DaoNotes.NoteType[] 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

ERROR

public static final DaoNotes.NoteType ERROR

NULL

public static final DaoNotes.NoteType NULL

BAD

public static final DaoNotes.NoteType BAD

MIDDLE

public static final DaoNotes.NoteType MIDDLE

GOOD

public static final DaoNotes.NoteType GOOD

VERYGOOD

public static final DaoNotes.NoteType VERYGOOD

PERFECT

public static final DaoNotes.NoteType PERFECT

UNDEFINED

public static final DaoNotes.NoteType UNDEFINED
Method Detail

values

public static DaoNotes.NoteType[] 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 (DaoNotes.NoteType c : DaoNotes.NoteType.values())
    System.out.println(c);

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

valueOf

public static DaoNotes.NoteType 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

intValue

public int intValue()
Return the int value of the NoteType.

Returns:
The int value of the enum.

getEnum

public static DaoNotes.NoteType getEnum(int e)
Return the enum with the enum int value.

Parameters:
e - The int value to search.
Returns:
The NoteType corresponding to the int value to search.


Copyright © 2009 JTheque. All Rights Reserved.