DLESE Tools
v1.6.0

org.dlese.dpc.ldap
Class LdapEntry

java.lang.Object
  extended by org.dlese.dpc.ldap.LdapEntry

public class LdapEntry
extends Object

Stores the names and values of the attributes for an LDAP entry. Although the values can be any Serializable Object, the methods used to retrieve values convert them to Strings. Currently DLESE's use of attributes is entirely Strings; at some future point we may choose to store Objects in attribute values.


Constructor Summary
LdapEntry(String dn)
           
 
Method Summary
 String getAttrName(int ii)
          Returns the attribute name stored in the specified row of the attrs matrix.
 String[] getAttrNames()
          Returns a 1-dimensional array of the attribute names stored in the attrs matrix.
 int getAttrsRows()
          Returns the number of rows in the attrs matrix.
 String[] getAttrStrings(int irow)
          Returns a 1-dimensional array of the values associated with the specified row of the attrs matrix.
 String[] getAttrStrings(String attrName)
          Returns a 1-dimensional array of the values associated with the specified attribute name.
 String getDn()
          Returns the dn (distinguished name) associated with this entry.
 String toString()
          Returns a String representation of the entire set of attributes represented by this LdapEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapEntry

public LdapEntry(String dn)
Method Detail

toString

public String toString()
Returns a String representation of the entire set of attributes represented by this LdapEntry. Used for debugging.

Overrides:
toString in class Object

getDn

public String getDn()
Returns the dn (distinguished name) associated with this entry.


getAttrsRows

public int getAttrsRows()
Returns the number of rows in the attrs matrix.


getAttrNames

public String[] getAttrNames()
Returns a 1-dimensional array of the attribute names stored in the attrs matrix.


getAttrName

public String getAttrName(int ii)
Returns the attribute name stored in the specified row of the attrs matrix.


getAttrStrings

public String[] getAttrStrings(int irow)
Returns a 1-dimensional array of the values associated with the specified row of the attrs matrix. If no values were associated with the attribute name, returns a length 0 array.


getAttrStrings

public String[] getAttrStrings(String attrName)
Returns a 1-dimensional array of the values associated with the specified attribute name. Uses case-insensitive matching on the attribute name. Returns null if attrName not found.


DLESE Tools
v1.6.0