org.pf.directory
Class DirectoryObject

java.lang.Object
  extended by org.pf.directory.MultiValueAttributes
      extended by org.pf.directory.DirectoryObject
All Implemented Interfaces:
AttributeReadAccess
Direct Known Subclasses:
LDAPDirEntry

public class DirectoryObject
extends MultiValueAttributes

Represents one object in a directory.

Version:
1.2
Author:
M.Duchrow

Constructor Summary
DirectoryObject(java.lang.String id)
          Initialize the new instance with a unique identifier.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if the given object is of the identical class as this object and if both IDs are equal (case-sensitive).
 java.lang.String getID()
          Returns the identifier of this object
 int hashCode()
          Returns the hash code of this object
 boolean matches(MatchRule rule)
          Returns true, if this object matches the given rule
 
Methods inherited from class org.pf.directory.MultiValueAttributes
addAttribute, addValue, addValue, getAttribute, getAttributeAsString, getAttributeAsStringArray, getAttributeNames, getAttributeValue, getCopyOfAttributes, getMetaData, getValue, getValues, hasAttribute, isEmpty, removeAttribute, removeValue, setMetaData, size
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryObject

public DirectoryObject(java.lang.String id)
Initialize the new instance with a unique identifier.

Parameters:
id - The unique identifier of the new object
Method Detail

getID

public java.lang.String getID()
Returns the identifier of this object


matches

public boolean matches(MatchRule rule)
Returns true, if this object matches the given rule


equals

public boolean equals(java.lang.Object object)
Returns true if the given object is of the identical class as this object and if both IDs are equal (case-sensitive).

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code of this object

Overrides:
hashCode in class java.lang.Object