uk.ac.ncl.cs.instantsoap.test
Class JaxbTester
java.lang.Object
uk.ac.ncl.cs.instantsoap.test.JaxbTester
public class JaxbTester
- extends Object
Standard tests to perform for jaxb things.
- Author:
- Matthew Pocock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxbTester
public JaxbTester()
marshalValue
public static <T> Document marshalValue(DocumentBuilder dBuilder,
Marshaller marshaller,
T val)
throws JAXBException
- Throws:
JAXBException
unmarshalValue
public static <T> T unmarshalValue(Unmarshaller unmarshaller,
Document doc)
throws JAXBException
- Throws:
JAXBException
marshalUnmarshalValue
public static <T> void marshalUnmarshalValue(DocumentBuilder dBuilder,
Marshaller marshaller,
Unmarshaller unmarshaller,
T val)
throws JAXBException
- Throws:
JAXBException
displayXML
public static void displayXML(Document doc)
throws TransformerException
- Throws:
TransformerException
parseXML
public static Document parseXML(DocumentBuilder dBuilder,
String xml)
throws IOException,
SAXException
- Throws:
IOException
SAXException
Copyright © 2006-2008. All Rights Reserved.