org.ldaptive.provider
Class SearchItem

java.lang.Object
  extended by org.ldaptive.provider.SearchItem

public class SearchItem
extends Object

Contains the data returned from a search request.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
SearchItem(IntermediateResponse ir)
          Creates a new search item.
SearchItem(SearchEntry se)
          Creates a new search item.
SearchItem(SearchReference sr)
          Creates a new search item.
 
Method Summary
 IntermediateResponse getIntermediateResponse()
          Returns the intermediate response in this search item or null if this search item does not contain an intermediate response.
 SearchEntry getSearchEntry()
          Returns the search entry in this search item or null if this search item does not contain a search entry.
 SearchReference getSearchReference()
          Returns the search reference in this search item or null if this search item does not contain a search reference.
 boolean isIntermediateResponse()
          Returns whether this search item contains an intermediate response.
 boolean isSearchEntry()
          Returns whether this search item contains a search entry.
 boolean isSearchReference()
          Returns whether this search item contains a search reference.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchItem

public SearchItem(SearchEntry se)
Creates a new search item.

Parameters:
se - ldap entry

SearchItem

public SearchItem(SearchReference sr)
Creates a new search item.

Parameters:
sr - searchReference

SearchItem

public SearchItem(IntermediateResponse ir)
Creates a new search item.

Parameters:
ir - intermediate response
Method Detail

isSearchEntry

public boolean isSearchEntry()
Returns whether this search item contains a search entry.

Returns:
whether this search item contains a search entry

getSearchEntry

public SearchEntry getSearchEntry()
Returns the search entry in this search item or null if this search item does not contain a search entry.

Returns:
search entry

isSearchReference

public boolean isSearchReference()
Returns whether this search item contains a search reference.

Returns:
whether this search item contains a search reference

getSearchReference

public SearchReference getSearchReference()
Returns the search reference in this search item or null if this search item does not contain a search reference.

Returns:
searchReference

isIntermediateResponse

public boolean isIntermediateResponse()
Returns whether this search item contains an intermediate response.

Returns:
whether this search item contains an intermediate response

getIntermediateResponse

public IntermediateResponse getIntermediateResponse()
Returns the intermediate response in this search item or null if this search item does not contain an intermediate response.

Returns:
intermediate response

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.