This class represents a modification item. It consists of a modification code and an attribute on which to operate.
A ModificationItem instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ModificationItem instance should lock the object.
This class represents a modification item. It consists of a modification code and an attribute on which to operate. A ModificationItem instance is not synchronized against concurrent multithreaded access. Multiple threads trying to access and modify a single ModificationItem instance should lock the object.
(->modification-item mod-op attr)
Constructor.
Creates a new instance of ModificationItem.
mod-op - Modification to apply. It must be one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTE - int
attr - The non-null attribute to use for modification. - javax.naming.directory.Attribute
throws: java.lang.IllegalArgumentException - If attr is null, or if mod_op is not one of the ones specified above.
Constructor. Creates a new instance of ModificationItem. mod-op - Modification to apply. It must be one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTE - `int` attr - The non-null attribute to use for modification. - `javax.naming.directory.Attribute` throws: java.lang.IllegalArgumentException - If attr is null, or if mod_op is not one of the ones specified above.
(get-attribute this)
Retrieves the attribute associated with this modification item.
returns: The non-null attribute to use for the modification. - javax.naming.directory.Attribute
Retrieves the attribute associated with this modification item. returns: The non-null attribute to use for the modification. - `javax.naming.directory.Attribute`
(get-modification-op this)
Retrieves the modification code of this modification item.
returns: The modification code. It is one of:
DirContext.ADD_ATTRIBUTE
DirContext.REPLACE_ATTRIBUTE
DirContext.REMOVE_ATTRIBUTE - int
Retrieves the modification code of this modification item. returns: The modification code. It is one of: DirContext.ADD_ATTRIBUTE DirContext.REPLACE_ATTRIBUTE DirContext.REMOVE_ATTRIBUTE - `int`
(to-string this)
Generates the string representation of this modification item, which consists of the modification operation and its related attribute. The string representation is meant for debugging and not to be interpreted programmatically.
returns: The non-null string representation of this modification item. - java.lang.String
Generates the string representation of this modification item, which consists of the modification operation and its related attribute. The string representation is meant for debugging and not to be interpreted programmatically. returns: The non-null string representation of this modification item. - `java.lang.String`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close