public final class JettisonJaxbMarshaller extends BaseJsonMarshaller implements Marshaller
Marshaller.ListenerjaxbMarshaller, jsonConfigJAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATIONFORMATTED| Constructor and Description |
|---|
JettisonJaxbMarshaller(JAXBContext jaxbContext,
JettisonConfig jsonConfig) |
getJSONConfiguration, marshallToJSON, marshallToJSONpublic JettisonJaxbMarshaller(JAXBContext jaxbContext, JettisonConfig jsonConfig) throws JAXBException
JAXBExceptionpublic void marshal(Object jaxbObject, Result result) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, OutputStream os) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, File file) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, Writer writer) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, ContentHandler handler) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, Node node) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, XMLStreamWriter writer) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic void marshal(Object jaxbObject, XMLEventWriter writer) throws JAXBException
marshal in interface MarshallerJAXBExceptionpublic Node getNode(Object jaxbObject) throws JAXBException
getNode in interface MarshallerJAXBExceptionpublic void setProperty(String name, Object value) throws PropertyException
JettisonMarshallerJettisonMarshaller. Attempting to set an undefined property
will result in a PropertyException being thrown.setProperty in interface MarshallersetProperty in interface JettisonMarshallersetProperty in class BaseJsonMarshallername - the name of the property to be set. This value can either
be specified using one of the constant fields or a user
supplied string.value - the value of the property to be setPropertyException - when there is an error processing the given
property or valuepublic Object getProperty(String key) throws PropertyException
getProperty in interface MarshallerPropertyExceptionpublic void setEventHandler(ValidationEventHandler handler) throws JAXBException
setEventHandler in interface MarshallerJAXBExceptionpublic ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler in interface MarshallerJAXBExceptionpublic void setAdapter(XmlAdapter adapter)
setAdapter in interface Marshallerpublic <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter in interface Marshallerpublic <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter in interface Marshallerpublic void setAttachmentMarshaller(AttachmentMarshaller marshaller)
setAttachmentMarshaller in interface Marshallerpublic AttachmentMarshaller getAttachmentMarshaller()
getAttachmentMarshaller in interface Marshallerpublic void setSchema(Schema schema)
setSchema in interface Marshallerpublic Schema getSchema()
getSchema in interface Marshallerpublic void setListener(Marshaller.Listener listener)
setListener in interface Marshallerpublic Marshaller.Listener getListener()
getListener in interface MarshallerCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.