de.fh_mannheim.mm.dms.framework
Class SearchResultList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byde.fh_mannheim.mm.dms.framework.UploadList
                  extended byde.fh_mannheim.mm.dms.framework.SearchResultList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, IElement, java.util.List, java.util.RandomAccess, java.io.Serializable

public class SearchResultList
extends UploadList
implements IElement

This class gives a representation of the searchResultlist.

Version:
$Revision: 1.6 $
Author:
Jan Löffler, mail@jlsoft.de
See Also:
Serialized Form

Constructor Summary
SearchResultList()
          Constructor.
SearchResultList(java.util.ArrayList aList)
          Constructor.
SearchResultList(int nSize)
          Constructor.
 
Method Summary
 void addSearchResult(SearchResult searchResult)
          Add a searchResult to list.
 void addSearchResultList(java.util.ArrayList aList)
          Add a searchResult to list.
 boolean containsSearchResult(int nSearchResultID)
          Searches a given searchResult in list.
 void deleteSearchResult(int nSearchResultID)
          Delete a searchResult from list.
 void deleteSearchResult(java.lang.String strFilename)
          Delete a searchResult from list.
 SearchResult getSearchResult(int nIndex)
          Get searchResult from list.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of searchResult in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of searchResult in a xml element.
 java.lang.String toString()
          Write information of searchResult in a string.
 
Methods inherited from class de.fh_mannheim.mm.dms.framework.UploadList
addUpload, addUploadList, containsUpload, deleteUpload, deleteUpload, getUpload
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

SearchResultList

public SearchResultList()
Constructor.


SearchResultList

public SearchResultList(int nSize)
Constructor.

Parameters:
nSize - Size of array

SearchResultList

public SearchResultList(java.util.ArrayList aList)
Constructor.

Parameters:
aList - Pre-selected list
Method Detail

addSearchResult

public void addSearchResult(SearchResult searchResult)
Add a searchResult to list.

Parameters:
searchResult - SearchResult

addSearchResultList

public void addSearchResultList(java.util.ArrayList aList)
Add a searchResult to list.

Parameters:
aList - List with searchResults

containsSearchResult

public boolean containsSearchResult(int nSearchResultID)
Searches a given searchResult in list.

Parameters:
nSearchResultID - SearchResult
Returns:
true, if existent

getSearchResult

public SearchResult getSearchResult(int nIndex)
Get searchResult from list.

Parameters:
nIndex - Index of list
Returns:
SearchResult

deleteSearchResult

public void deleteSearchResult(int nSearchResultID)
Delete a searchResult from list.

Parameters:
nSearchResultID - SearchResult

deleteSearchResult

public void deleteSearchResult(java.lang.String strFilename)
Delete a searchResult from list.

Parameters:
strFilename - SearchResult

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of searchResult in a xml element.

Specified by:
toElement in interface IElement
Overrides:
toElement in class UploadList
Parameters:
doc - XML Document
Returns:
element

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
                                     org.w3c.dom.Document doc)
Write information of searchResult in a xml element.

Specified by:
toElement in interface IElement
Overrides:
toElement in class UploadList
Parameters:
element - Root element
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of searchResult in a string.

Specified by:
toString in interface IElement
Overrides:
toString in class UploadList
Returns:
information