Package org.forgerock.opendj.ldap
Class ModificationType
java.lang.Object
org.forgerock.opendj.ldap.ModificationType
A Modify operation change type as defined in RFC 4511 section 4.6 is used to
specify the type of modification being performed on an attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumContains equivalent values for the ModificationType values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModificationTypeAdd the values listed in the modification to the attribute, creating the attribute if necessary.static final ModificationTypeDelete the values listed in the modification from the attribute.static final ModificationTypeIncrement all existing values of the attribute by the amount specified in the modification value.static final ModificationTypeReplace all existing values of the attribute with the new values listed in the modification, creating the attribute if it did not already exist. -
Method Summary
Modifier and TypeMethodDescriptionasEnum()Returns the enum equivalent for this modification type.booleaninthashCode()intintValue()Returns the integer value of this modification change type as defined in RFC 4511 section 4.6.toString()Returns the string representation of this modification change type.static ModificationTypevalueOf(int intValue) Returns the modification change type having the specified integer value as defined in RFC 4511 section 4.6.static List<ModificationType>values()Returns an unmodifiable list containing the set of available modification change types indexed on their integer value as defined in RFC 4511 section 4.6.
-
Field Details
-
ADD
Add the values listed in the modification to the attribute, creating the attribute if necessary. -
DELETE
Delete the values listed in the modification from the attribute. If no values are listed, or if all current values of the attribute are listed, the entire attribute is removed. -
REPLACE
Replace all existing values of the attribute with the new values listed in the modification, creating the attribute if it did not already exist. A replace with no listed values will delete the entire attribute if it exists, and it is ignored if the attribute does not exist. -
INCREMENT
Increment all existing values of the attribute by the amount specified in the modification value.
-
-
Method Details
-
valueOf
Returns the modification change type having the specified integer value as defined in RFC 4511 section 4.6.- Parameters:
intValue- The integer value of the modification change type.- Returns:
- The modification change type, or
nullif there was no modification change type associated withintValue.
-
values
Returns an unmodifiable list containing the set of available modification change types indexed on their integer value as defined in RFC 4511 section 4.6.- Returns:
- An unmodifiable list containing the set of available modification change types.
-
equals
-
hashCode
public int hashCode() -
intValue
public int intValue()Returns the integer value of this modification change type as defined in RFC 4511 section 4.6.- Returns:
- The integer value of this modification change type.
-
asEnum
Returns the enum equivalent for this modification type.- Returns:
- The enum equivalent for this modification type when a known mapping exists,
or
ModificationType.Enum.UNKNOWNif this is an unknown modification type.
-
toString
Returns the string representation of this modification change type.
-