Package org.ldaptive
Class AttributeModification
- java.lang.Object
-
- org.ldaptive.AttributeModification
-
public class AttributeModification extends Object
Contains the data required to modify an ldap attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private LdapAttribute
attribute
Attribute to modify.private AttributeModificationType
attrMod
Type of modification to perform.
-
Constructor Summary
Constructors Constructor Description AttributeModification()
Default constructor.AttributeModification(AttributeModificationType type, LdapAttribute attr)
Creates a new attribute modification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapAttribute
getAttribute()
Returns the ldap attribute.AttributeModificationType
getAttributeModificationType()
Returns the attribute modification type.void
setAttribute(LdapAttribute attr)
Sets the ldap attribute.void
setAttributeModificationType(AttributeModificationType type)
Sets the attribute modification type.String
toString()
-
-
-
Field Detail
-
attrMod
private AttributeModificationType attrMod
Type of modification to perform.
-
attribute
private LdapAttribute attribute
Attribute to modify.
-
-
Constructor Detail
-
AttributeModification
public AttributeModification()
Default constructor.
-
AttributeModification
public AttributeModification(AttributeModificationType type, LdapAttribute attr)
Creates a new attribute modification.- Parameters:
type
- attribute modification typeattr
- to modify
-
-
Method Detail
-
getAttributeModificationType
public AttributeModificationType getAttributeModificationType()
Returns the attribute modification type.- Returns:
- attribute modification type
-
setAttributeModificationType
public void setAttributeModificationType(AttributeModificationType type)
Sets the attribute modification type.- Parameters:
type
- attribute modification type
-
getAttribute
public LdapAttribute getAttribute()
Returns the ldap attribute.- Returns:
- ldap attribute
-
setAttribute
public void setAttribute(LdapAttribute attr)
Sets the ldap attribute.- Parameters:
attr
- ldap attribute
-
-