Enum ChangeType
- All Implemented Interfaces:
Serializable, Comparable<ChangeType>
A type safe enumeration for an LDIF record's change type.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdd ordinal valuestatic final intDelete ordinal valuestatic final intModDN ordinal valuestatic final intModify ordinal valuestatic final intModRDN ordinal valuestatic final intNone ordinal value -
Method Summary
Modifier and TypeMethodDescriptionintGet's the ordinal value for a ChangeType.static ChangeTypegetChangeType(int val) Get the ChangeType instance from an integer valuestatic ChangeTypeReturns the enum constant of this type with the specified name.static ChangeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Add
The Add changeType -
Modify
The Modify changeType -
ModDn
The ModDn changeType -
ModRdn
The ModRdn changeType -
Delete
The Delete changeType -
None
A place-holder when we have no changeType
-
-
Field Details
-
ADD_ORDINAL
public static final int ADD_ORDINALAdd ordinal value- See Also:
-
MODIFY_ORDINAL
public static final int MODIFY_ORDINALModify ordinal value- See Also:
-
MODDN_ORDINAL
public static final int MODDN_ORDINALModDN ordinal value- See Also:
-
MODRDN_ORDINAL
public static final int MODRDN_ORDINALModRDN ordinal value- See Also:
-
DELETE_ORDINAL
public static final int DELETE_ORDINALDelete ordinal value- See Also:
-
NONE_ORDINAL
public static final int NONE_ORDINALNone ordinal value- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getChangeType
public int getChangeType()Get's the ordinal value for a ChangeType.- Returns:
- the changeType
-
getChangeType
Get the ChangeType instance from an integer value- Parameters:
val- The value for the ChangeType we are looking for- Returns:
- The associated ChangeType instance
-