org.apache.directory.mitosis.operation
Enum OperationType

java.lang.Object
  extended by java.lang.Enum<OperationType>
      extended by org.apache.directory.mitosis.operation.OperationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperationType>

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

An enum used to determinate the operation type when deserializing

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Enum Constant Summary
ADD_ATTRIBUTE
          The Add Attribute operation
ADD_ENTRY
          The Add Entry operation
COMPOSITE_OPERATION
          The composite operation
DELETE_ATTRIBUTE
          The Delete Attribute operation
REPLACE_ATTRIBUTE
          The Replace Attribute operation
 
Method Summary
static OperationType get(int value)
          Get the associated OperationType from an integer value
 int getValue()
           
static OperationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperationType[] 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

ADD_ENTRY

public static final OperationType ADD_ENTRY
The Add Entry operation


ADD_ATTRIBUTE

public static final OperationType ADD_ATTRIBUTE
The Add Attribute operation


DELETE_ATTRIBUTE

public static final OperationType DELETE_ATTRIBUTE
The Delete Attribute operation


REPLACE_ATTRIBUTE

public static final OperationType REPLACE_ATTRIBUTE
The Replace Attribute operation


COMPOSITE_OPERATION

public static final OperationType COMPOSITE_OPERATION
The composite operation

Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Returns:
the associated integer value

get

public static OperationType get(int value)
Get the associated OperationType from an integer value

Parameters:
value - The integer value of an operation type
Returns:
the associated operation type


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.