public enum PersistentSearchChangeType extends Enum<PersistentSearchChangeType>
It is a different type from ChangeOperationType
to enforce type
safety, despite mirroring it completely.
Enum Constant and Description |
---|
ADD
The change type that will be used for add operations.
|
DELETE
The change type that will be used for delete operations.
|
MODIFY
The change type that will be used for modify operations.
|
MODIFY_DN
The change type that will be used for modify DN operations.
|
Modifier and Type | Method and Description |
---|---|
static int |
changeTypesToInt(Set<PersistentSearchChangeType> changeTypes)
Retrieves the integer representation of the provided set of change types.
|
static String |
changeTypesToString(Set<PersistentSearchChangeType> changeTypes)
Retrieves a string representation of the provided set of change types.
|
static void |
changeTypesToString(Set<PersistentSearchChangeType> changeTypes,
StringBuilder buffer)
Appends a string representation of the specified set of change types to the
provided buffer.
|
static Set<PersistentSearchChangeType> |
intToTypes(int intValue)
Decodes the provided int value into a set of change types as per the
specification in draft-ietf-ldapext-psearch.
|
int |
intValue()
Retrieves the integer value associated with this change type.
|
String |
toString()
Retrieves a string representation of this persistent search change type.
|
static PersistentSearchChangeType |
valueOf(int intValue)
Retrieves the change type associated with the provided integer value.
|
static PersistentSearchChangeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistentSearchChangeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistentSearchChangeType ADD
public static final PersistentSearchChangeType DELETE
public static final PersistentSearchChangeType MODIFY
public static final PersistentSearchChangeType MODIFY_DN
public static PersistentSearchChangeType[] values()
for (PersistentSearchChangeType c : PersistentSearchChangeType.values()) System.out.println(c);
public static PersistentSearchChangeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int intValue()
public String toString()
toString
in class Enum<PersistentSearchChangeType>
public static PersistentSearchChangeType valueOf(int intValue) throws LDAPException
intValue
- The integer value to decode as a change type.LDAPException
- If the provided integer value is not associated
with a valid change type.public static Set<PersistentSearchChangeType> intToTypes(int intValue) throws LDAPException
intValue
- The integer value representing the encoded change types.LDAPException
- If the provided integer value does not represent a
valid encoded set of change types.public static int changeTypesToInt(Set<PersistentSearchChangeType> changeTypes)
changeTypes
- The set of change types to be encoded.public static String changeTypesToString(Set<PersistentSearchChangeType> changeTypes)
changeTypes
- The set of change types to encode.public static void changeTypesToString(Set<PersistentSearchChangeType> changeTypes, StringBuilder buffer)
changeTypes
- The set of change types to encode.buffer
- The buffer to which the information should be written.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.