uk.ac.ncl.cs.instantsoap.test
Class JaxbTester

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.test.JaxbTester

public class JaxbTester
extends Object

Standard tests to perform for jaxb things.

Author:
Matthew Pocock

Constructor Summary
JaxbTester()
           
 
Method Summary
static void displayXML(Document doc)
           
static
<T> void
marshalUnmarshalValue(DocumentBuilder dBuilder, Marshaller marshaller, Unmarshaller unmarshaller, T val)
           
static
<T> Document
marshalValue(DocumentBuilder dBuilder, Marshaller marshaller, T val)
           
static Document parseXML(DocumentBuilder dBuilder, String xml)
           
static
<T> T
unmarshalValue(Unmarshaller unmarshaller, Document doc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbTester

public JaxbTester()
Method Detail

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.