public static final class Entries.NullEntry extends AbstractEntry
Entry
which implements the null object pattern.Modifier and Type | Method and Description |
---|---|
boolean |
addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues)
Ensures that this entry contains the provided attribute and values (optional operation).
|
Entry |
clearAttributes()
Removes all the attributes from this entry (optional operation).
|
Iterable<Attribute> |
getAllAttributes()
Returns an
Iterable containing all of the attributes in this entry. |
int |
getAttributeCount()
Returns the number of attributes in this entry.
|
Dn |
getName()
Returns the string representation of the distinguished name of this entry.
|
Entry |
setName(Dn dn)
Sets the distinguished name of this entry (optional operation).
|
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttribute, addAttribute, addAttributeIfAbsent, containsAnyAttributes, containsAnyAttributes, containsAttribute, containsAttribute, containsAttribute, getAllAttributes, getAllAttributes, getAttribute, getAttribute, mergeAttribute, parseAttribute, parseAttribute, removeAttribute, removeAttribute, removeAttribute, replaceAttribute, replaceAttribute, setName
public boolean addAttribute(Attribute attribute, Collection<? super ByteString> duplicateValues)
Entry
matching
attribute description, then this entry will be modified such that
it contains attribute
, even if it is empty.
matching
attribute description, then the attribute values contained in
attribute
will be merged with the existing attribute values.
NOTE: When attribute
is non-empty, this method implements
LDAP Modify add semantics.
attribute
- The attribute values to be added to this entry, merging with any existing attribute values.duplicateValues
- A collection into which duplicate values will be added, or null
if duplicate values should not be
saved.true
if this entry changed as a result of this call.public Entry clearAttributes()
Entry
public Iterable<Attribute> getAllAttributes()
Entry
Iterable
containing all of the attributes in this entry. The returned Iterable
may be
used to remove attributes if permitted by this entry.Iterable
containing all of the attributes.public int getAttributeCount()
Entry
public Dn getName()
Entry
Copyright 2010-2022 ForgeRock AS.