public class ScuflParser extends Object
Modifier and Type | Field and Description |
---|---|
protected ServiceLoader<ScuflExtensionParser> |
discoveredScuflExtensionParsers |
protected JAXBContext |
jaxbContext |
protected ThreadLocal<ParserState> |
parserState |
protected Set<ScuflExtensionParser> |
scuflExtensionParsers |
protected ThreadLocal<Unmarshaller> |
unmarshaller |
Constructor and Description |
---|
ScuflParser() |
Modifier and Type | Method and Description |
---|---|
protected List<URI> |
getAdditionalSchemas() |
Set<ScuflExtensionParser> |
getScuflExtensionParsers() |
Unmarshaller |
getUnmarshaller() |
boolean |
isStrict() |
boolean |
isValidating() |
WorkflowBundle |
parseScufl(File scuflFile) |
WorkflowBundle |
parseScufl(InputStream scuflFile) |
WorkflowBundle |
parseScufl(ScuflType wf) |
void |
setStrict(boolean strict) |
void |
setValidating(boolean validating) |
protected Set<ScuflExtensionParser> scuflExtensionParsers
protected final JAXBContext jaxbContext
protected ThreadLocal<ParserState> parserState
protected ServiceLoader<ScuflExtensionParser> discoveredScuflExtensionParsers
protected final ThreadLocal<Unmarshaller> unmarshaller
public ScuflParser() throws JAXBException
JAXBException
public WorkflowBundle parseScufl(File scuflFile) throws IOException, ReaderException, JAXBException
IOException
ReaderException
JAXBException
public WorkflowBundle parseScufl(InputStream scuflFile) throws IOException, JAXBException, ReaderException
IOException
JAXBException
ReaderException
public WorkflowBundle parseScufl(ScuflType wf) throws ReaderException, JAXBException
ReaderException
JAXBException
public Unmarshaller getUnmarshaller()
public Set<ScuflExtensionParser> getScuflExtensionParsers()
public boolean isStrict()
public void setStrict(boolean strict)
strict
- the strict to setpublic boolean isValidating()
public void setValidating(boolean validating)
validating
- the validating to setCopyright © 2013 myGrid. All rights reserved.