public class Workflow extends Object implements Serializable, Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
Workflow.ContentType |
Constructor and Description |
---|
Workflow() |
Workflow(Element element) |
Workflow(URL url) |
Workflow(org.apache.taverna.scufl2.api.container.WorkflowBundle bundle) |
Modifier and Type | Method and Description |
---|---|
String |
getMainProfileName() |
String |
getName() |
Workflow.ContentType |
getPreferredContentType()
What content type would this workflow "prefer" to be?
|
org.apache.taverna.scufl2.api.common.NamedSet<org.apache.taverna.scufl2.api.profiles.Profile> |
getProfiles() |
byte[] |
getScufl2Bytes()
Get the bytes of the serialized SCUFL2 workflow.
|
org.apache.taverna.scufl2.api.container.WorkflowBundle |
getScufl2Workflow()
Retrieves the workflow as a SCUFL2 document, converting it if necessary.
|
Element |
getT2flowWorkflow()
Retrieves the workflow as a T2Flow document, converting it if necessary.
|
Element |
getWorkflowRoot() |
String |
marshal()
Convert to marshalled form.
|
void |
readExternal(ObjectInput in) |
static Workflow |
unmarshal(String representation)
Convert from marshalled form.
|
void |
writeExternal(ObjectOutput out) |
public Workflow()
public Workflow(Element element)
public Workflow(org.apache.taverna.scufl2.api.container.WorkflowBundle bundle)
public Workflow(URL url) throws org.apache.taverna.scufl2.api.io.ReaderException, IOException
org.apache.taverna.scufl2.api.io.ReaderException
IOException
public Workflow.ContentType getPreferredContentType()
public org.apache.taverna.scufl2.api.container.WorkflowBundle getScufl2Workflow() throws IOException
IOException
- If anything goes wrong.public byte[] getScufl2Bytes() throws IOException, org.apache.taverna.scufl2.api.io.WriterException
IOException
- If serialization fails.org.apache.taverna.scufl2.api.io.WriterException
- If conversion fails.public Element getT2flowWorkflow() throws IOException
IOException
- If anything goes wrong.public String getMainProfileName()
public org.apache.taverna.scufl2.api.common.NamedSet<org.apache.taverna.scufl2.api.profiles.Profile> getProfiles()
public static Workflow unmarshal(String representation) throws JAXBException
JAXBException
- If the conversion fails.public String marshal() throws JAXBException
JAXBException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public String getName()
public Element getWorkflowRoot()
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.