Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class PropertySet

java.lang.Object
  extended by oracle.ldap.util.PropertySet

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VarPropertySet

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

This class represents a particular PropertySet in a PropertySetCollection In other words, it represents a particular search result entry from a collection of search results

See Also:
Serialized Form

Field Summary
protected  javax.naming.directory.Attributes attributeSet
           
protected  java.util.Vector attributeVector
           

 

Constructor Summary
protected PropertySet()
           
protected PropertySet(java.lang.String baseDN, javax.naming.directory.Attributes attributeSet, java.util.Vector attributeVector)
           
  PropertySet(java.lang.String baseDN, javax.naming.directory.SearchResult result)
           

 

Method Summary
protected  PropertySet doSearch(javax.naming.directory.DirContext ctx, java.lang.String[] attrList)
           
 java.lang.String[] getAttributeNames()
          Returns an array of String containing the name of all the properties - all the attribute names returned with this particular search entry.
protected  javax.naming.directory.Attributes getAttributeSet()
           
 java.lang.String getDN()
          Returns the name of this property set - the DN of the search entry represented by this property set
protected  java.lang.String[] getMissingAttributes(java.lang.String[] attrList)
           
 Property getProperty(int i)
          Returns the i-th property of this property set - the i-th attribute of this search entry.
 Property getProperty(java.lang.String attrID)
          Returns the property identified by the attrID - the attrID is the attribute name
 boolean isEmpty()
          Returns true if the property set does not contain any properties; false otherwise
protected  void mergePropertySet(PropertySet newPs)
           
protected  PropertySet returnPropertySet(java.lang.String[] attrList)
           
 int size()
          Returns the size of this property set - the number of returned attributes for this particular search result entry

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

attributeVector

protected java.util.Vector attributeVector

attributeSet

protected javax.naming.directory.Attributes attributeSet

Constructor Detail

PropertySet

protected PropertySet()

PropertySet

protected PropertySet(java.lang.String baseDN,
                      javax.naming.directory.Attributes attributeSet,
                      java.util.Vector attributeVector)

PropertySet

public PropertySet(java.lang.String baseDN,
                   javax.naming.directory.SearchResult result)

Method Detail

isEmpty

public final boolean isEmpty()
Returns true if the property set does not contain any properties; false otherwise
Returns:
boolean indicating whether the property set is empty or not

size

public final int size()
Returns the size of this property set - the number of returned attributes for this particular search result entry
Returns:
an int indicating the number of properties belonging to this property set; it can return 0.

getAttributeNames

public final java.lang.String[] getAttributeNames()
Returns an array of String containing the name of all the properties - all the attribute names returned with this particular search entry.
Returns:
a String array containing all the property names.

getProperty

public final Property getProperty(int i)
Returns the i-th property of this property set - the i-th attribute of this search entry.
Parameters:
i - the index of the property to be retrieved
Returns:
a Property representing the i-th property.

getProperty

public final Property getProperty(java.lang.String attrID)
Returns the property identified by the attrID - the attrID is the attribute name
Parameters:
attrID - the attribute to be retrieved
Returns:
a Property with attribute name attrID.

getDN

public final java.lang.String getDN()
Returns the name of this property set - the DN of the search entry represented by this property set
Returns:
a String representing the DN of the property set

mergePropertySet

protected void mergePropertySet(PropertySet newPs)

getMissingAttributes

protected java.lang.String[] getMissingAttributes(java.lang.String[] attrList)

returnPropertySet

protected PropertySet returnPropertySet(java.lang.String[] attrList)

getAttributeSet

protected javax.naming.directory.Attributes getAttributeSet()

doSearch

protected PropertySet doSearch(javax.naming.directory.DirContext ctx,
                               java.lang.String[] attrList)
                        throws UtilException
Throws:
UtilException

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.