public class DefaultJaxbJsonMarshaller extends Object implements JaxbJsonMarshaller
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultJaxbJsonMarshaller.Builder |
| Constructor and Description |
|---|
DefaultJaxbJsonMarshaller()
Deprecated.
since 2.9.2. Use
builder() |
DefaultJaxbJsonMarshaller(boolean prettyPrint)
Deprecated.
since 2.9.2. Use
builder() |
| Modifier and Type | Method and Description |
|---|---|
static DefaultJaxbJsonMarshaller.Builder |
builder() |
String |
marshal(Object jaxbBean)
Given a jaxbBean this method will return a JSON string.
|
String |
marshal(Object jaxbBean,
Class... jaxbClasses)
Deprecated.
|
@Deprecated public DefaultJaxbJsonMarshaller()
builder()@Deprecated public DefaultJaxbJsonMarshaller(boolean prettyPrint)
builder()public String marshal(Object jaxbBean)
JaxbJsonMarshallermarshal in interface JaxbJsonMarshallerjaxbBean - the bean to be converted to JSON@Deprecated public String marshal(Object jaxbBean, Class... jaxbClasses) throws JAXBException
JaxbJsonMarshallermarshal in interface JaxbJsonMarshallerjaxbBean - the bean to be converted to JSONjaxbClasses - the jaxb classes in use by the jaxb bean.JAXBException - if there's a problem marshalling the bean providedpublic static DefaultJaxbJsonMarshaller.Builder builder()
Copyright © 2016 Atlassian. All rights reserved.