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 xmlJAXBException
T fromXML(String xml) throws JAXBException, Exception
xml
- - the xml representation of a JAXBException
- - if there is an issue with the xmlException
String asJson(T instance) throws JAXBException
instance
- - the instance to convert to jsonJAXBException
Copyright © 2018 BITPlan GmbH. All rights reserved.