LDAP Classes
Implements Java LDAP

org.ietf.ldap
Class LDAPEntry

java.lang.Object
  |
  +--org.ietf.ldap.LDAPEntry
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
LDAPSchema

public class LDAPEntry
extends java.lang.Object
implements java.lang.Comparable

Represents a single entry in a directory, consisting of a distinguished name (DN) and zero or more attributes.

See Also:
com.novell.ldap.LDAPEntry

Constructor Summary
LDAPEntry()
          Constructs an empty entry.
LDAPEntry(java.lang.String dn)
          Constructs a new entry with the specified distinguished name and with an empty attribute set.
LDAPEntry(java.lang.String dn, LDAPAttributeSet attrs)
          Constructs a new entry with the specified distinguished name and set of attributes.
 
Method Summary
 int compareTo(java.lang.Object entry)
          Compares this object to the specified object for order.
 LDAPAttribute getAttribute(java.lang.String attrName)
          Returns the attributes matching the specified attrName.
 LDAPAttributeSet getAttributeSet()
          Returns the attribute set of the entry.
 LDAPAttributeSet getAttributeSet(java.lang.String subtype)
          Returns an attribute set from the entry, consisting of only those attributes matching the specified subtypes.
 java.lang.String getDN()
          Returns the distinguished name of the entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPEntry

public LDAPEntry()
Constructs an empty entry.

See Also:
com.novell.ldap.LDAPEntry.LDAPEntry()

LDAPEntry

public LDAPEntry(java.lang.String dn)
Constructs a new entry with the specified distinguished name and with an empty attribute set.

See Also:
com.novell.ldap.LDAPEntry.LDAPEntry(String)

LDAPEntry

public LDAPEntry(java.lang.String dn,
                 LDAPAttributeSet attrs)
Constructs a new entry with the specified distinguished name and set of attributes.

See Also:
com.novell.ldap.LDAPEntry.LDAPEntry(String, LDAPAttributeSet)
Method Detail

getAttribute

public LDAPAttribute getAttribute(java.lang.String attrName)
Returns the attributes matching the specified attrName.

See Also:
com.novell.ldap.LDAPEntry.getAttribute(String)

getAttributeSet

public LDAPAttributeSet getAttributeSet()
Returns the attribute set of the entry.

See Also:
com.novell.ldap.LDAPEntry.getAttributeSet()

getAttributeSet

public LDAPAttributeSet getAttributeSet(java.lang.String subtype)
Returns an attribute set from the entry, consisting of only those attributes matching the specified subtypes.

See Also:
com.novell.ldap.LDAPEntry.getAttributeSet(String)

getDN

public java.lang.String getDN()
Returns the distinguished name of the entry.

See Also:
com.novell.ldap.LDAPEntry.getDN()

compareTo

public int compareTo(java.lang.Object entry)
Compares this object to the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
com.novell.ldap.LDAPEntry.compareTo(Object)

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000