public class T2FlowParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static URI |
configBeanURI |
protected ServiceLoader<T2Parser> |
discoveredT2Parsers |
protected JAXBContext |
jaxbContext |
protected ThreadLocal<ParserState> |
parserState |
static URI |
ravenURI |
protected Set<T2Parser> |
t2Parsers |
protected ThreadLocal<Unmarshaller> |
unmarshaller |
| Constructor and Description |
|---|
T2FlowParser() |
public static final URI ravenURI
public static final URI configBeanURI
protected ThreadLocal<ParserState> parserState
protected final JAXBContext jaxbContext
protected ServiceLoader<T2Parser> discoveredT2Parsers
protected final ThreadLocal<Unmarshaller> unmarshaller
public T2FlowParser()
throws JAXBException
JAXBExceptionpublic static <T extends Named> T findNamed(Collection<T> namedObjects, String name)
public final boolean isValidating()
public final void setValidating(boolean validating)
protected ReceiverPort findReceiverPort(Workflow wf, Link sink) throws ReaderException
ReaderExceptionprotected SenderPort findSenderPort(Workflow wf, Link source) throws ReaderException
ReaderExceptionpublic boolean isStrict()
protected void makeProfile(Workflow wf)
protected Activity parseActivity(Activity origActivity) throws ReaderException
ReaderExceptionprotected void parseActivityBinding(Activity origActivity, int activityPosition) throws ReaderException, JAXBException
ReaderExceptionJAXBExceptionprotected void parseConfiguration(ConfigBean configBean, uk.org.taverna.scufl2.translator.t2flow.T2FlowParser.Configures configures) throws JAXBException, ReaderException
JAXBExceptionReaderExceptionpublic Unmarshaller getUnmarshaller()
protected void parseActivityInputMap(Map inputMap) throws ReaderException
ReaderExceptionprotected void parseActivityOutputMap(Map outputMap) throws ReaderException
ReaderExceptionprotected Workflow parseDataflow(Dataflow df, Workflow wf) throws ReaderException, JAXBException
ReaderExceptionJAXBExceptionprotected Set<DataLink> parseDatalinks(Datalinks origLinks) throws ReaderException
ReaderExceptionprotected DispatchStack parseDispatchStack(DispatchStack dispatchStack) throws ReaderException
ReaderExceptionprotected DispatchStackLayer parseDispatchStack(DispatchLayer dispatchLayer) throws ReaderException
ReaderExceptionprotected Set<InputWorkflowPort> parseInputPorts(AnnotatedGranularDepthPorts originalPorts) throws ReaderException
ReaderExceptionprotected IterationStrategyStack parseIterationStrategyStack(IterationStrategyStack originalStack) throws ReaderException
ReaderExceptionprotected IterationStrategyNode parseIterationStrategyNode(IterationNode topNode) throws ReaderException
ReaderExceptionprotected Set<OutputWorkflowPort> parseOutputPorts(AnnotatedPorts originalPorts)
protected Set<InputProcessorPort> parseProcessorInputPorts(Processor newProc, DepthPorts origPorts)
protected Set<OutputProcessorPort> parseProcessorOutputPorts(Processor newProc, GranularDepthPorts origPorts)
protected Set<Processor> parseProcessors(Processors originalProcessors) throws ReaderException, JAXBException
ReaderExceptionJAXBExceptionpublic WorkflowBundle parseT2Flow(File t2File) throws IOException, ReaderException, JAXBException
IOExceptionReaderExceptionJAXBExceptionpublic WorkflowBundle parseT2Flow(InputStream t2File) throws IOException, JAXBException, ReaderException
IOExceptionJAXBExceptionReaderExceptionpublic WorkflowBundle parseT2Flow(Workflow wf) throws ReaderException, JAXBException
ReaderExceptionJAXBExceptionpublic void setStrict(boolean strict)
Copyright © 2013 myGrid. All rights reserved.