net.sf.zekr.engine.bookmark
Class BookmarkSetGroup

java.lang.Object
  extended by net.sf.zekr.engine.bookmark.BookmarkSetGroup

public class BookmarkSetGroup
extends java.lang.Object

Since:
Zekr 1.0
Author:
Mohsen Saboorian

Constructor Summary
BookmarkSetGroup()
           
 
Method Summary
 void addBookmarkSet(BookmarkSet bookmarkSet)
          Adds a bookmark set to the list of bookmark sets group.
 boolean containsId(java.lang.String id)
           
 BookmarkSet getBookmarkSet(java.lang.String bookmarkSetId)
           
 java.util.List getBookmarkSets()
           
 BookmarkSet getDefault()
           
 void removeBookmarkSet(BookmarkSet bookmarkSet)
           
 BookmarkSet removeBookmarkSet(java.lang.String bookmarkSetId)
           
 void setAsDefault(BookmarkSet bookmarkSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarkSetGroup

public BookmarkSetGroup()
Method Detail

addBookmarkSet

public void addBookmarkSet(BookmarkSet bookmarkSet)
Adds a bookmark set to the list of bookmark sets group. bookmarkSet.getFileName() should not be null, and should be unique among other bookmark sets, since it is used as a key to store this bookmark set.

Parameters:
bookmarkSet - the bookmark set to be added

removeBookmarkSet

public void removeBookmarkSet(BookmarkSet bookmarkSet)

removeBookmarkSet

public BookmarkSet removeBookmarkSet(java.lang.String bookmarkSetId)

getDefault

public BookmarkSet getDefault()
Returns:
the default bookmark set

setAsDefault

public void setAsDefault(BookmarkSet bookmarkSet)

getBookmarkSets

public java.util.List getBookmarkSets()

getBookmarkSet

public BookmarkSet getBookmarkSet(java.lang.String bookmarkSetId)

containsId

public boolean containsId(java.lang.String id)