|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.ldapjdk.LDAPEntry
@NotExtensible @NotMutable @ThreadSafety(level=NOT_THREADSAFE) public class LDAPEntry
This class provides a data structure that represents an LDAP entry.
This class is primarily intended to be used in the process of updating
applications which use the Netscape Directory SDK for Java to switch to or
coexist with the UnboundID LDAP SDK for Java. For applications not written
using the Netscape Directory SDK for Java, the Entry
class should be
used instead.
Constructor Summary | |
---|---|
LDAPEntry()
Creates a new LDAP entry with a zero-length DN and no attributes. |
|
LDAPEntry(Entry entry)
Creates a new LDAP entry from the provided Entry object. |
|
LDAPEntry(java.lang.String distinguishedName)
Creates a new LDAP entry with the provided DN and no attributes. |
|
LDAPEntry(java.lang.String distinguishedName,
LDAPAttributeSet attrs)
Creates a new LDAP entry with the provided DN and attributes. |
Method Summary | |
---|---|
LDAPAttribute |
getAttribute(java.lang.String attrName)
Retrieves the attribute with the specified name. |
LDAPAttribute |
getAttribute(java.lang.String attrName,
java.lang.String lang)
Retrieves the attribute with the specified base name and language subtype. |
LDAPAttributeSet |
getAttributeSet()
Retrieves the attributes for this entry. |
LDAPAttributeSet |
getAttributeSet(java.lang.String subtype)
Retrieves the set of attributes containing the specified subtype for this entry. |
java.lang.String |
getDN()
Retrieves the distinguished name for this entry. |
Entry |
toEntry()
Retrieves an Entry object that is the equivalent of this LDAP
entry. |
java.lang.String |
toString()
Retrieves a string representation of this LDAP entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LDAPEntry()
public LDAPEntry(java.lang.String distinguishedName)
distinguishedName
- The DN to use for the entry.public LDAPEntry(java.lang.String distinguishedName, LDAPAttributeSet attrs)
distinguishedName
- The DN to use for the entry.attrs
- The attributes to use for the entry.public LDAPEntry(Entry entry)
Entry
object.
entry
- The entry to use to create this LDAP entry.Method Detail |
---|
public java.lang.String getDN()
public LDAPAttributeSet getAttributeSet()
public LDAPAttributeSet getAttributeSet(java.lang.String subtype)
subtype
- The subtype for the attributes to retrieve.
public LDAPAttribute getAttribute(java.lang.String attrName)
attrName
- The name of the attribute to retrieve.
null
if there is none.public LDAPAttribute getAttribute(java.lang.String attrName, java.lang.String lang)
attrName
- The base name of the attribute to retrieve.lang
- The language subtype for the attribute to retrieve.
null
if there is none.public final Entry toEntry()
Entry
object that is the equivalent of this LDAP
entry.
Entry
object that is the equivalent of this LDAP
entry.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |