|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shiwa.fgi.iwir.XMLHandler
public final class XMLHandler
The Class XMLHandler provides a simple interface for handling IWIR workflow objects.
Method Summary | |
---|---|
static IWIR |
readFile(java.io.File file)
Constructs the object representation of an IWIR workflow reading from a file. |
static IWIR |
readFile(java.lang.String path)
Constructs the object representation of an IWIR workflow reading from a file from a given path. |
static IWIR |
readStream(java.io.InputStream in)
Constructs the object representation of an IWIR workflow from an InputStream. |
static IWIR |
readString(java.lang.String s)
Constructs the object representation of an IWIR workflow from a String. |
static void |
validateAgainstSchema(java.io.File file)
Validate against schema. |
static void |
validateAgainstSchema(java.io.InputStream is)
Validate against schema. |
static void |
validateAgainstSchema(IWIR iwir)
Validate against schema. |
static void |
writeFile(IWIR i,
java.io.File file)
Writes an IWIR object to a given file. |
static void |
writeFile(IWIR i,
java.lang.String path)
Writes an IWIR object to a given path. |
static void |
writeOut(IWIR i,
java.io.OutputStream out)
Writes an IWIR object to a given OutputStream. |
static java.lang.String |
writeString(IWIR i)
Returns a String representation of an IWIR object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IWIR readString(java.lang.String s) throws NotWellFormedException
s
- the the String to read.
NotWellFormedException
- if the workflow is not well formedpublic static java.lang.String writeString(IWIR i) throws NotWellFormedException
i
- the IWIR object
NotWellFormedException
- if the workflow is not well formedpublic static IWIR readStream(java.io.InputStream in) throws NotWellFormedException
in
- the InputStream
NotWellFormedException
- if the workflow is not well formedpublic static void writeOut(IWIR i, java.io.OutputStream out) throws java.io.IOException, NotWellFormedException
i
- the IWIR objectout
- the OutputStream
java.io.IOException
- Signals that an I/O exception has occurred.
NotWellFormedException
- if the workflow is not well formedpublic static IWIR readFile(java.lang.String path) throws java.io.FileNotFoundException, NotWellFormedException
path
- the path to the file
java.io.FileNotFoundException
- the file not found exception
NotWellFormedException
- if the work flow is not well formedpublic static IWIR readFile(java.io.File file) throws java.io.FileNotFoundException, NotWellFormedException
file
- the file to read
java.io.FileNotFoundException
- the file not found exception
NotWellFormedException
- if the workflow is not wellformedpublic static void writeFile(IWIR i, java.lang.String path) throws java.io.FileNotFoundException, java.io.IOException, NotWellFormedException
i
- the IWIR objectpath
- the path to the file
java.io.FileNotFoundException
- if file can not be found
java.io.IOException
- Signals that an I/O exception has occurred.
NotWellFormedException
- if the workflow is not well formedpublic static void writeFile(IWIR i, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, NotWellFormedException
i
- the IWIR objectfile
- the file to write into
java.io.FileNotFoundException
- if file can not be found
java.io.IOException
- Signals that an I/O exception has occurred.
NotWellFormedException
- if the workflow is not well formedpublic static void validateAgainstSchema(java.io.InputStream is) throws NotWellFormedException
is
- the is
NotWellFormedException
- if workflow is not wellformedpublic static void validateAgainstSchema(java.io.File file) throws java.io.FileNotFoundException, NotWellFormedException
file
- the file
java.io.FileNotFoundException
- if fille can not be found
NotWellFormedException
- if workflow is not wellformedpublic static void validateAgainstSchema(IWIR iwir) throws NotWellFormedException
iwir
- the iwir
NotWellFormedException
- if workflow is not wellformed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |