com.memberwebs.ldapxml
Class LXResults

java.lang.Object
  extended bycom.memberwebs.ldapxml.LXResults

public class LXResults
extends java.lang.Object

Represents a set of elements retrieved from an LDAP tree by the LXReader.

Version:
0.5
Author:
stef@memberwebs.com

Method Summary
 void addElement(org.w3c.dom.Element el)
          Add a single element to these results
 void addResults(LXResults results)
          Add the results from another set to this one.
 org.w3c.dom.Document assembleDocument()
          Puts together the result set into the result document.
 org.w3c.dom.Element[] getElements()
          Get all the elements as an array
 int getLength()
          Get the number of elements
 org.w3c.dom.Document getOwnerDocument()
          Get the elements' owner document
 org.w3c.dom.Element getResult(int i)
          Get a certain element in the results.
 org.w3c.dom.Element getRootElement()
          Get the root document element defined in map
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLength

public final int getLength()
Get the number of elements

Returns:
The number of elements.

getResult

public final org.w3c.dom.Element getResult(int i)
Get a certain element in the results.

Parameters:
i - The index to the element.
Returns:
The element.

getElements

public final org.w3c.dom.Element[] getElements()
Get all the elements as an array

Returns:
All the result elements.

getOwnerDocument

public final org.w3c.dom.Document getOwnerDocument()
Get the elements' owner document

Returns:
The document.

getRootElement

public final org.w3c.dom.Element getRootElement()
Get the root document element defined in map

Returns:
The root element.

assembleDocument

public final org.w3c.dom.Document assembleDocument()
Puts together the result set into the result document.

Returns:
The assembled document.

addResults

public final void addResults(LXResults results)
Add the results from another set to this one.

Parameters:
results - The results to add.

addElement

public final void addElement(org.w3c.dom.Element el)
Add a single element to these results

Parameters:
el - The element to add