Nitido Inc.

com.nitido.directory
Class Entry

java.lang.Object
  extended by com.nitido.directory.Entry
All Implemented Interfaces:
java.io.Serializable

public class Entry
extends java.lang.Object
implements java.io.Serializable

The Entry class is used to encapsulate a directory entry.

See Also:
Serialized Form

Constructor Summary
Entry(java.lang.String dn)
          Default constructor.
 
Method Summary
 java.util.Enumeration getAttributeNames()
          Get attribute names.
 java.lang.Object getAttributeValue(java.lang.String name)
          Get the first value of the specified attribute.
 java.util.Enumeration getAttributeValues(java.lang.String name)
          Get attribute values.
 java.util.Vector getAttributeValuesVector(java.lang.String name)
          Get the attribute in Vector form.
 java.lang.String getDN()
          Get dn.
 void print(java.io.PrintStream out)
          Print the entry.
 void putAttribute(java.lang.String name, java.io.Serializable value)
          Put attribute.
 void removeAttribute(java.lang.String name)
          Remove the specified attribute.
 void replaceAttribute(java.lang.String name, java.io.Serializable value)
          Replaces all attributes under the given name with the new value
 void setDN(java.lang.String dn)
          Set the dn.
 java.lang.String toString()
          Override the default Object.toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entry

public Entry(java.lang.String dn)
Default constructor.

Parameters:
dn -
Method Detail

putAttribute

public void putAttribute(java.lang.String name,
                         java.io.Serializable value)
Put attribute.

Parameters:
name -
value -

replaceAttribute

public void replaceAttribute(java.lang.String name,
                             java.io.Serializable value)
Replaces all attributes under the given name with the new value

Parameters:
name - The name of the attribute to replace
value - The new value for the attribute

removeAttribute

public void removeAttribute(java.lang.String name)
Remove the specified attribute.


getAttributeNames

public java.util.Enumeration getAttributeNames()
Get attribute names.


getAttributeValues

public java.util.Enumeration getAttributeValues(java.lang.String name)
Get attribute values.

Parameters:
name - The attribute name.
Returns:
An Enumeration of values for the specified attribute name. If no values has been asssociated to the attribute name, this method will return an empty Enumeration.

getAttributeValuesVector

public java.util.Vector getAttributeValuesVector(java.lang.String name)
Get the attribute in Vector form.

Parameters:
name - The attribute name.
Returns:
A Vector of values for the specified attribute name. If no values has been asssociated to the attribute name, this method will return an empty Vector.

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String name)
Get the first value of the specified attribute.

Parameters:
name - The attribute name.
Returns:
The first value of the specified attribute name returned by the backend. Since the LDAP never guarantee the sequence, this value may be different from the sequence of the attribute value that you have stored. If the attribute name has no associated value, this method will return null.

getDN

public java.lang.String getDN()
Get dn.


setDN

public void setDN(java.lang.String dn)
Set the dn. This method is usually used when you are copying the same entry across different tree.


toString

public java.lang.String toString()
Override the default Object.toString(). To print out the result for debugging purpose.

Overrides:
toString in class java.lang.Object

print

public void print(java.io.PrintStream out)
Print the entry.


Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.