compbio.engine.conf
Class RunnerConfigMarshaller<T>
java.lang.Object
compbio.engine.conf.RunnerConfigMarshaller<T>
public class RunnerConfigMarshaller<T>
- extends Object
RunnerConfigMarshaller
public RunnerConfigMarshaller(Class<?> rootClass)
throws JAXBException
- Throws:
JAXBException
RunnerConfigMarshaller
public RunnerConfigMarshaller(Class<?> rootClass,
Class<?>... classes)
throws JAXBException
- Throws:
JAXBException
write
public void write(Object xmlRootElement,
OutputStream out)
throws JAXBException,
IOException
- Throws:
JAXBException
IOException
writeAndValidate
public void writeAndValidate(Object xmlRootElement,
String schemafile,
OutputStream out)
throws JAXBException,
IOException,
SAXException
- Throws:
JAXBException
IOException
SAXException
getSchema
public static Schema getSchema(String schemafile)
throws SAXException
- Throws:
SAXException
getValidator
public static Validator getValidator(String schemafile)
throws SAXException
- Returns:
- validator instance
- Throws:
SAXException
getValidator
public static Validator getValidator(Schema schema)
throws SAXException
- Throws:
SAXException
validate
public static boolean validate(Validator validator,
String document)
throws IOException,
SAXException
- Throws:
IOException
SAXException
readAndValidate
public <V> V readAndValidate(InputStream document,
Class<V> resultElemType)
throws JAXBException,
IOException,
SAXException
- Throws:
JAXBException
IOException
SAXException
read
public <V> V read(InputStream instream,
Class<V> resultElemType)
throws JAXBException
- Throws:
JAXBException
read
public <V> V read(InputStream instream,
Class<V> resultElemType,
Class<?>... classes)
throws JAXBException
- Throws:
JAXBException