|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.gov.nehta.vendorlibrary.common.JAXBUtil
public final class JAXBUtil
JAXBUtil implementation for JAXB object marshal and unmarshal.
| Method Summary | ||
|---|---|---|
static
|
marshaller(java.lang.Class instanceClass,
java.lang.String qName,
java.lang.String className,
T object)
Marshall the provided object and return the XML content of the object. |
|
static
|
marshaller(java.lang.Class instanceClass,
java.lang.String className,
T object)
Marshalls the provided JAXWS object to String[XML String]. |
|
static
|
unmarshaller(java.lang.Class parameterObject,
org.w3c.dom.Document doc)
Gets the JAXB/JAXWS instance for the provided XML data and jaxws class object. |
|
static
|
unmarshaller(java.lang.Class parameterObject,
java.lang.String xmlSource)
Gets the JAXB/JAXWS instance for the provided XML data and jaxws class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> java.lang.String marshaller(java.lang.Class instanceClass,
java.lang.String qName,
java.lang.String className,
T object)
throws javax.xml.bind.JAXBException
T - instance value of TinstanceClass - The class instance of the object to be marshalled (Mandatory).qName - the namespace URI of the object to be marshalled. className - the Class name of the object to be marshalled (Mandatory).object - the instance to be marshalled (Mandatory).
IllegalArgumentException will be thrown if the object is null
javax.xml.bind.JAXBException - in an event of error.
public static <T> java.lang.String marshaller(java.lang.Class instanceClass,
java.lang.String className,
T object)
throws javax.xml.bind.JAXBException
T - T - instance value of TinstanceClass - of type ClassclassName - of the object to be marshalledobject - the instance to be marshalled (Mandatory).
IllegalArgumentException will be thrown if the object is null
javax.xml.bind.JAXBException - in an event of error.
public static <T> T unmarshaller(java.lang.Class parameterObject,
java.lang.String xmlSource)
throws javax.xml.bind.JAXBException
T - JAXWS generic type for unmarshalling xml data.parameterObject - of type ClassxmlSource - of type String
javax.xml.bind.JAXBException - in an event of error.
public static <T> T unmarshaller(java.lang.Class parameterObject,
org.w3c.dom.Document doc)
throws javax.xml.bind.JAXBException
T - jaxws generic type for un-marshalling xml data.parameterObject - of type Classdoc - // * @param xmlSource of type String
javax.xml.bind.JAXBException - in an event of error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||