Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class BookmarksUtil

java.lang.Object
  extended by cytoscape.util.BookmarksUtil

public abstract class BookmarksUtil
extends Object

Utility methods for getting entries in the bookmark object.

Author:
kono

Constructor Summary
BookmarksUtil()
           
 
Method Summary
static boolean deleteBookmark(cytoscape.bookmarks.Bookmarks pBookmarks, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
static boolean deleteBookmark(String filename, cytoscape.bookmarks.Bookmarks pBookmarks, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
static String getAttribute(cytoscape.bookmarks.DataSource source, String attrName)
          DOCUMENT ME!
static cytoscape.bookmarks.Bookmarks getBookmarks(File pBookmarkFile)
          DOCUMENT ME!
static cytoscape.bookmarks.Bookmarks getBookmarks(URL bookmarkUrl)
          DOCUMENT ME!
static cytoscape.bookmarks.Category getCategory(String categoryName, List<cytoscape.bookmarks.Category> categoryList)
          Select specific category from a list of categories.
static List<cytoscape.bookmarks.DataSource> getDataSourceList(String categoryName, List<cytoscape.bookmarks.Category> categoryList)
          Traverse bookmark tree and get a list of data sources from the specified category.
static boolean isInBookmarks(cytoscape.bookmarks.Bookmarks pBookmarks, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
static boolean isInBookmarks(URL pBookmarkURL, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
static boolean saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks, File pFile)
          Write the bookmarks object into a file
static boolean saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks, OutputStream os)
          Write the bookmarks object into an outputstream
static void saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
static void saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource, FileOutputStream pFos)
          DOCUMENT ME!
static boolean saveBookmark(URL pBookmarkURL, String pCategoryName, cytoscape.bookmarks.DataSource pDataSource)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksUtil

public BookmarksUtil()
Method Detail

getDataSourceList

public static List<cytoscape.bookmarks.DataSource> getDataSourceList(String categoryName,
                                                                     List<cytoscape.bookmarks.Category> categoryList)
Traverse bookmark tree and get a list of data sources from the specified category.

Parameters:
categoryName -
Returns:

getCategory

public static cytoscape.bookmarks.Category getCategory(String categoryName,
                                                       List<cytoscape.bookmarks.Category> categoryList)
Select specific category from a list of categories.

Parameters:
categoryName -
categoryList -
Returns:

getAttribute

public static String getAttribute(cytoscape.bookmarks.DataSource source,
                                  String attrName)
DOCUMENT ME!

Parameters:
source - DOCUMENT ME!
attrName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getBookmarks

public static cytoscape.bookmarks.Bookmarks getBookmarks(URL bookmarkUrl)
                                                  throws javax.xml.bind.JAXBException,
                                                         IOException
DOCUMENT ME!

Parameters:
bookmarkUrl - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
javax.xml.bind.JAXBException - DOCUMENT ME!
IOException - DOCUMENT ME!

getBookmarks

public static cytoscape.bookmarks.Bookmarks getBookmarks(File pBookmarkFile)
DOCUMENT ME!

Parameters:
pBookmarkFile - DOCUMENT ME!
Returns:
DOCUMENT ME!

saveBookmark

public static void saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks,
                                String pCategoryName,
                                cytoscape.bookmarks.DataSource pDataSource,
                                FileOutputStream pFos)
                         throws javax.xml.bind.JAXBException,
                                IOException
DOCUMENT ME!

Parameters:
pBookmarks - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
pFos - DOCUMENT ME!
Throws:
javax.xml.bind.JAXBException - DOCUMENT ME!
IOException - DOCUMENT ME!

saveBookmark

public static boolean saveBookmark(URL pBookmarkURL,
                                   String pCategoryName,
                                   cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
pBookmarkURL - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

saveBookmark

public static boolean saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks,
                                   File pFile)
Write the bookmarks object into a file

Parameters:
pBookmarks - DOCUMENT ME!
pFile - DOCUMENT ME!
Returns:
DOCUMENT ME!

saveBookmark

public static boolean saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks,
                                   OutputStream os)
Write the bookmarks object into an outputstream

Parameters:
pBookmarks - DOCUMENT ME!
os - DOCUMENT ME!
Returns:
DOCUMENT ME!

saveBookmark

public static void saveBookmark(cytoscape.bookmarks.Bookmarks pBookmarks,
                                String pCategoryName,
                                cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
pBookmarks - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!

deleteBookmark

public static boolean deleteBookmark(String filename,
                                     cytoscape.bookmarks.Bookmarks pBookmarks,
                                     String pCategoryName,
                                     cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
filename - DOCUMENT ME!
pBookmarks - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

deleteBookmark

public static boolean deleteBookmark(cytoscape.bookmarks.Bookmarks pBookmarks,
                                     String pCategoryName,
                                     cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
pBookmarks - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

isInBookmarks

public static boolean isInBookmarks(cytoscape.bookmarks.Bookmarks pBookmarks,
                                    String pCategoryName,
                                    cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
pBookmarks - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

isInBookmarks

public static boolean isInBookmarks(URL pBookmarkURL,
                                    String pCategoryName,
                                    cytoscape.bookmarks.DataSource pDataSource)
DOCUMENT ME!

Parameters:
pBookmarkURL - DOCUMENT ME!
pCategoryName - DOCUMENT ME!
pDataSource - DOCUMENT ME!
Returns:
DOCUMENT ME!

www.cytoscape.org