de.fh_mannheim.mm.dms.framework
Class UploadList

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

public class UploadList
extends java.util.ArrayList
implements IElement

This class gives a representation of the uploadlist.

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

Constructor Summary
UploadList()
          Constructor.
UploadList(java.util.ArrayList aList)
          Constructor.
UploadList(int nSize)
          Constructor.
 
Method Summary
 void addUpload(Upload upload)
          Add a upload to list.
 void addUploadList(java.util.ArrayList aList)
          Add a upload to list.
 boolean containsUpload(int nUploadID)
          Searches a given upload in list.
 void deleteUpload(int nUploadID)
          Delete a upload from list.
 void deleteUpload(java.lang.String strFilename)
          Delete a upload from list.
 Upload getUpload(int nIndex)
          Get upload from list.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of upload in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of upload in a xml element.
 java.lang.String toString()
          Write information of upload in a string.
 
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

UploadList

public UploadList()
Constructor.


UploadList

public UploadList(int nSize)
Constructor.

Parameters:
nSize - Size of array

UploadList

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

Parameters:
aList - Pre-selected list
Method Detail

addUpload

public void addUpload(Upload upload)
Add a upload to list.

Parameters:
upload - Upload

addUploadList

public void addUploadList(java.util.ArrayList aList)
Add a upload to list.

Parameters:
aList - List with uploads

containsUpload

public boolean containsUpload(int nUploadID)
Searches a given upload in list.

Parameters:
nUploadID - Upload
Returns:
true, if existent

getUpload

public Upload getUpload(int nIndex)
Get upload from list.

Parameters:
nIndex - Index of list
Returns:
Upload

deleteUpload

public void deleteUpload(int nUploadID)
Delete a upload from list.

Parameters:
nUploadID - Upload

deleteUpload

public void deleteUpload(java.lang.String strFilename)
Delete a upload from list.

Parameters:
strFilename - Upload

toElement

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

Specified by:
toElement in interface IElement
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 upload in a xml element.

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

toString

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

Specified by:
toString in interface IElement
Returns:
information