ca.ucalgary.seahawk.util
Class MobyUtils
java.lang.Object
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.
MAX_OBJ_NAME_LEN
public static final int MAX_OBJ_NAME_LEN
- See Also:
- Constant Field Values
MobyUtils
public MobyUtils()
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)
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010