org.deegree_impl.services.wcas.protocol
Class CASSearchResult_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wcas.protocol.CASSearchResult_Impl
All Implemented Interfaces:
CASSearchResult

public final class CASSearchResult_Impl
extends java.lang.Object
implements CASSearchResult

The interface describes the access to a part of the result of a GetRecord request. The part of a GetRecord request capsulated by a CASSearchResult is defined by one of the queries defined within.

--------------------------------------------------------------------

Version:
2002-04-16
Author:
Andreas Poth

Field Summary
private  java.lang.String elementSetName
           
private  int numberOfRecords
           
private  java.lang.Object resultData
           
private  java.lang.String schemaName
           
private  java.util.ArrayList searchParameter
           
private  boolean success
           
 
Constructor Summary
(package private) CASSearchResult_Impl(java.lang.String[] searchParameter, java.lang.Object resultData, java.lang.String elementSetName, boolean success, int numberOfRecords, java.lang.String schemaName)
          Creates a new CASSearchResult_Impl object.
 
Method Summary
 void addSearchParameter(java.lang.String searchParameter)
           
 java.lang.String getElementSetName()
          returns the name of the element set the result data contains
 int getNumberOfRecords()
          returns the number of records contained within the CASSearchResults.
 java.lang.Object getResultData()
          returns the reslut of the query
 java.lang.String getSchema()
          returns the name of the schema the response data are formated at.
 java.lang.String[] getSearchParameter()
          returns the search parameters that leads to this result.
 boolean isSuccessful()
          returns true if the request that underlays the CASSearchResult has been performed successful.
 void setElementSetName(java.lang.String elementSetName)
           
 void setNumberOfRecords(int numberOfRecords)
           
 void setResultData(java.lang.Object resultData)
           
 void setSchema(java.lang.String schemaName)
           
 void setSearchParameter(java.lang.String[] searchParameter)
           
 void setSuccess(boolean success)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

searchParameter

private java.util.ArrayList searchParameter

resultData

private java.lang.Object resultData

elementSetName

private java.lang.String elementSetName

schemaName

private java.lang.String schemaName

success

private boolean success

numberOfRecords

private int numberOfRecords
Constructor Detail

CASSearchResult_Impl

CASSearchResult_Impl(java.lang.String[] searchParameter,
                     java.lang.Object resultData,
                     java.lang.String elementSetName,
                     boolean success,
                     int numberOfRecords,
                     java.lang.String schemaName)
Creates a new CASSearchResult_Impl object.

Parameters:
searchParameter -
resultData -
elementSetName -
success -
numberOfRecords -
schemaName -
Method Detail

getSearchParameter

public java.lang.String[] getSearchParameter()
returns the search parameters that leads to this result.

Specified by:
getSearchParameter in interface CASSearchResult

setSearchParameter

public void setSearchParameter(java.lang.String[] searchParameter)
See Also:
getSearchParameter()

addSearchParameter

public void addSearchParameter(java.lang.String searchParameter)
See Also:
getSearchParameter()

getResultData

public java.lang.Object getResultData()
returns the reslut of the query

Specified by:
getResultData in interface CASSearchResult

setResultData

public void setResultData(java.lang.Object resultData)
See Also:
getResultData()

getElementSetName

public java.lang.String getElementSetName()
returns the name of the element set the result data contains

Specified by:
getElementSetName in interface CASSearchResult

setElementSetName

public void setElementSetName(java.lang.String elementSetName)
See Also:
getElementSetName()

isSuccessful

public boolean isSuccessful()
returns true if the request that underlays the CASSearchResult has been performed successful.

Specified by:
isSuccessful in interface CASSearchResult

setSuccess

public void setSuccess(boolean success)
See Also:
isSuccessful()

getNumberOfRecords

public int getNumberOfRecords()
returns the number of records contained within the CASSearchResults.

Specified by:
getNumberOfRecords in interface CASSearchResult

setNumberOfRecords

public void setNumberOfRecords(int numberOfRecords)
See Also:
getNumberOfRecords()

getSchema

public java.lang.String getSchema()
returns the name of the schema the response data are formated at.

Specified by:
getSchema in interface CASSearchResult

setSchema

public void setSchema(java.lang.String schemaName)
See Also:
getSchema()

toString

public java.lang.String toString()
Returns: