T - public interface JaxbFactoryApi<T>
| Modifier and Type | Method and Description |
|---|---|
String |
asJson(T instance)
create a Json representation for the given
|
String |
asXML(T instance)
create an xml representation for the given
|
T |
fromJson(String json)
get a
|
T |
fromXML(String xml)
get a
|
String asXML(T instance) throws JAXBException
instance - - the instance to convert to xmlJAXBExceptionT fromXML(String xml) throws JAXBException, Exception
xml - - the xml representation of a JAXBException - - if there is an issue with the xmlExceptionString asJson(T instance) throws JAXBException
instance - - the instance to convert to jsonJAXBExceptionCopyright © 2018 BITPlan GmbH. All rights reserved.