de.fh_mannheim.mm.dms.framework
Class BookmarkList

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.BookmarkList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, IElement, java.util.List, java.util.RandomAccess, java.io.Serializable

public class BookmarkList
extends UploadList
implements IElement

This class gives a representation of the bookmarklist.

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

Constructor Summary
BookmarkList()
          Constructor.
BookmarkList(java.util.ArrayList aList)
          Constructor.
BookmarkList(int nSize)
          Constructor.
 
Method Summary
 void addBookmark(Bookmark bookmark)
          Add a bookmark to list.
 void addBookmarkList(java.util.ArrayList aList)
          Add a bookmark to list.
 boolean containsBookmark(int nBookmarkID)
          Searches a given bookmark in list.
 void deleteBookmark(int nBookmarkID)
          Delete a bookmark from list.
 void deleteBookmark(java.lang.String strFilename)
          Delete a bookmark from list.
 Bookmark getBookmark(int nIndex)
          Get bookmark 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 bookmark 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

BookmarkList

public BookmarkList()
Constructor.


BookmarkList

public BookmarkList(int nSize)
Constructor.

Parameters:
nSize - Size of array

BookmarkList

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

Parameters:
aList - Pre-selected list
Method Detail

addBookmark

public void addBookmark(Bookmark bookmark)
Add a bookmark to list.

Parameters:
bookmark - Bookmark

addBookmarkList

public void addBookmarkList(java.util.ArrayList aList)
Add a bookmark to list.

Parameters:
aList - List with bookmarks

containsBookmark

public boolean containsBookmark(int nBookmarkID)
Searches a given bookmark in list.

Parameters:
nBookmarkID - Bookmark
Returns:
true, if existent

getBookmark

public Bookmark getBookmark(int nIndex)
Get bookmark from list.

Parameters:
nIndex - Index of list
Returns:
Bookmark

deleteBookmark

public void deleteBookmark(int nBookmarkID)
Delete a bookmark from list.

Parameters:
nBookmarkID - Bookmark

deleteBookmark

public void deleteBookmark(java.lang.String strFilename)
Delete a bookmark from list.

Parameters:
strFilename - Bookmark

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
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 upload 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 bookmark in a string.

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