org.biomoby.client.taverna.plugin
Class ParseMobyXML

java.lang.Object
  extended by org.biomoby.client.taverna.plugin.ParseMobyXML

public class ParseMobyXML
extends java.lang.Object

This class is used to help parse BioMOBY messages.

Author:
Edward Kawas

Field Summary
static int ID
           
static int NAMESPACE
           
static int VALUE
           
 
Constructor Summary
ParseMobyXML()
           
 
Method Summary
static java.util.ArrayList<java.lang.String> getContentForDataType(java.util.ArrayList<java.lang.String> names, int type, java.lang.String xml, java.lang.String endpoint)
          PRECONDITION: XML is valid MOBY xml and contains exactly 1 invocation message containing our simple element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final int NAMESPACE
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values

VALUE

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

ParseMobyXML

public ParseMobyXML()
Method Detail

getContentForDataType

public static java.util.ArrayList<java.lang.String> getContentForDataType(java.util.ArrayList<java.lang.String> names,
                                                                          int type,
                                                                          java.lang.String xml,
                                                                          java.lang.String endpoint)
PRECONDITION: XML is valid MOBY xml and contains exactly 1 invocation message containing our simple element

Parameters:
names - an array of article names in the order that we will extract our information
type - one of {NAMESPACE | ID | VALUE} denoting what exactly it is that you would like returned
xml - the MOBY xml containing the data to extract
endpoint - the BioMOBY registry endpoint to use
Returns:
a list of strings representing what it is you asked for