Package com.isode.dsapi.util
Class SeqEntry
java.lang.Object
com.isode.dsapi.util.SeqEntry
SeqEntry is a JNI-free representation of an Entry designed for fast
sequential processing of attributes. The basic operations are
adding Attributes (to fill the entry), iterating through the entry,
and DN modification.
- Author:
- jp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new attribute.getDN()
Get the DNConvert to a MapEntry.Get the original DNboolean
Check whether the DN has changed.boolean
isEmpty()
Is the entry empty (no attributes)?iterator()
Iteratorvoid
Set the DNvoid
Set the original DN.Convert to an AddEntrytoEntry()
Convert to an EntryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
dn
DN -
orig_dn
Original DN (to detect changes) -
attrs
List of attributes
-
-
Constructor Details
-
SeqEntry
Constructor from DN -
SeqEntry
Constructor from DN and original DN -
SeqEntry
Constructor from Entry -
SeqEntry
Constructor from AddEntry -
SeqEntry
Constructor from MapEntry
-
-
Method Details
-
add
Add a new attribute. Note that for efficiency, there is no check whether the attribute is already present. Attributes without any values are skipped. -
iterator
Iterator -
isEmpty
public boolean isEmpty()Is the entry empty (no attributes)? -
getDN
Get the DN -
setDN
Set the DN -
getOrigDN
Get the original DN -
setOrigDN
Set the original DN. This is normally a bad idea, as the original DN must usually be maintained to refer back to the original source of the entry correctly. -
hasDNChanged
public boolean hasDNChanged()Check whether the DN has changed.- Specified by:
hasDNChanged
in interfaceISeqEntry
-
toAddEntry
Convert to an AddEntry- Specified by:
toAddEntry
in interfaceISeqEntry
- Returns:
- AddEntry
-
toEntry
Convert to an Entry -
getMapEntry
Convert to a MapEntry.- Specified by:
getMapEntry
in interfaceISeqEntry
- Returns:
- MapEntry
-