A basic attribute does not have any schema associated with it, and attempts to get the schema result in an OperationNotSupportedException
being thrown.
The definition of equals
for an attribute is simply Object.equals
on the value, except for values that are collections where the definition of equals
is an equivalence test (i.e. the collection contains the same number of elements, and each has an equal element in the other collection). For an array, Object.equals
is used on each array element.
Note that updates to a basic attribute do not update the directory itself -- updates to a directory are only possible through the {@link DirContext}interface. BasicAttribute
does not get its values dynamically from the directory. It uses the values passed to the constructor or add and remove methods.
|
|
|
|