org.apache.directory.shared.ldap.message.control.replication
Enum SynchronizationModeEnum

java.lang.Object
  extended by java.lang.Enum<SynchronizationModeEnum>
      extended by org.apache.directory.shared.ldap.message.control.replication.SynchronizationModeEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SynchronizationModeEnum>

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

This class describes the four possible synchronization mode, out of which only two are presently valid : syncRequestValue ::= SEQUENCE { mode ENUMERATED { -- 0 unused refreshOnly (1), -- 2 reserved refreshAndPersist (3) ...

Version:
$Rev: $
Author:
Apache Directory Project
See Also:
RFC 4533

Enum Constant Summary
REFRESH_AND_PERSIST
           
REFRESH_ONLY
           
RESERVED
           
UNUSED
           
 
Method Summary
static SynchronizationModeEnum getSyncMode(int value)
          Get the SynchronizationModeEnum instance from an integer value.
 int getValue()
           
static SynchronizationModeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SynchronizationModeEnum[] 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

UNUSED

public static final SynchronizationModeEnum UNUSED

REFRESH_ONLY

public static final SynchronizationModeEnum REFRESH_ONLY

RESERVED

public static final SynchronizationModeEnum RESERVED

REFRESH_AND_PERSIST

public static final SynchronizationModeEnum REFRESH_AND_PERSIST
Method Detail

values

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

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

valueOf

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

getValue

public int getValue()
Returns:
The value associated with the current element.

getSyncMode

public static SynchronizationModeEnum getSyncMode(int value)
Get the SynchronizationModeEnum instance from an integer value.

Parameters:
value - The value we want the enum element from
Returns:
The enum element associated with this integer


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