org.otfeed.command
Enum BookDeleteTypeEnum

java.lang.Object
  extended by java.lang.Enum<BookDeleteTypeEnum>
      extended by org.otfeed.command.BookDeleteTypeEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BookDeleteTypeEnum>

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

Enumerates possible types for the OTBookDelete event.

See Also:
OTBookDelete

Enum Constant Summary
AFTER
          After delete
ALL
          Delete of all
ORDER
          Order delete
PREVIOUS
          Previous delete
 
Field Summary
 int code
           
static java.util.Map<java.lang.Integer,BookDeleteTypeEnum> decoder
           
 
Method Summary
static BookDeleteTypeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BookDeleteTypeEnum[] 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

ORDER

public static final BookDeleteTypeEnum ORDER
Order delete


PREVIOUS

public static final BookDeleteTypeEnum PREVIOUS
Previous delete


ALL

public static final BookDeleteTypeEnum ALL
Delete of all


AFTER

public static final BookDeleteTypeEnum AFTER
After delete

Field Detail

code

public final int code

decoder

public static final java.util.Map<java.lang.Integer,BookDeleteTypeEnum> decoder
Method Detail

values

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

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

valueOf

public static BookDeleteTypeEnum 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


Copyright © 2007 Mike Kroutikov. All Rights Reserved.