Version: 1.1.1

ca.ucalgary.seahawk.util
Class MobyUtils

java.lang.Object
  extended by ca.ucalgary.seahawk.util.MobyUtils

public class MobyUtils
extends Object

Contains utility methods for Moby Object creation from unstructured data, and for creating the Seahawk GUI.


Field Summary
static int MAX_OBJ_NAME_LEN
           
 
Constructor Summary
MobyUtils()
           
 
Method Summary
static void clearGUIs()
           
static MobyDataInstance[] convertStringToObjects(String data)
           
static MobyContentInstance convertURLtoMobyBinaryData(MobyClient client, URL url)
          The purpose of this method is to create a MOBY document to encapsulate a binary data object stored at the given URL.
static MobyDataComposite createMobySequence(String sequenceData, String id)
           
static Transferable createTransferable(MobyContentInstance contents)
           
static void destroyMobyGUI()
           
static MobyContentGUI getMobyContentGUI(JLabel status)
           
static MobyServicesGUI getMobyServicesGUI(JLabel status)
          The first time this method is called within a JVM instance, the GUI is created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_OBJ_NAME_LEN

public static final int MAX_OBJ_NAME_LEN
See Also:
Constant Field Values
Constructor Detail

MobyUtils

public MobyUtils()
Method Detail

createTransferable

public static Transferable createTransferable(MobyContentInstance contents)

convertURLtoMobyBinaryData

public static MobyContentInstance convertURLtoMobyBinaryData(MobyClient client,
                                                             URL url)
                                                      throws Exception
The purpose of this method is to create a MOBY document to encapsulate a binary data object stored at the given URL. If the data does not represent a single binary MOBY object, the method returns null. If the provided client or URL is null, null will be returned too.

Throws:
Exception

convertStringToObjects

public static MobyDataInstance[] convertStringToObjects(String data)

clearGUIs

public static void clearGUIs()

getMobyServicesGUI

public static MobyServicesGUI getMobyServicesGUI(JLabel status)
The first time this method is called within a JVM instance, the GUI is created. In subsequent calls, the same object is returned.


getMobyContentGUI

public static MobyContentGUI getMobyContentGUI(JLabel status)

destroyMobyGUI

public static void destroyMobyGUI()

createMobySequence

public static MobyDataComposite createMobySequence(String sequenceData,
                                                   String id)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010