public final class JettisonJaxbMarshaller extends BaseJsonMarshaller implements Marshaller
Marshaller.Listener
jaxbMarshaller, jsonConfig
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION
FORMATTED
Constructor and Description |
---|
JettisonJaxbMarshaller(JAXBContext jaxbContext,
JettisonConfig jsonConfig) |
getJSONConfiguration, marshallToJSON, marshallToJSON
public JettisonJaxbMarshaller(JAXBContext jaxbContext, JettisonConfig jsonConfig) throws JAXBException
JAXBException
public void marshal(Object jaxbObject, Result result) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, OutputStream os) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, File file) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, Writer writer) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, ContentHandler handler) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, Node node) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, XMLStreamWriter writer) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbObject, XMLEventWriter writer) throws JAXBException
marshal
in interface Marshaller
JAXBException
public Node getNode(Object jaxbObject) throws JAXBException
getNode
in interface Marshaller
JAXBException
public void setProperty(String name, Object value) throws PropertyException
JettisonMarshaller
JettisonMarshaller
. Attempting to set an undefined property
will result in a PropertyException being thrown.setProperty
in interface Marshaller
setProperty
in interface JettisonMarshaller
setProperty
in class BaseJsonMarshaller
name
- 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 Marshaller
PropertyException
public void setEventHandler(ValidationEventHandler handler) throws JAXBException
setEventHandler
in interface Marshaller
JAXBException
public ValidationEventHandler getEventHandler() throws JAXBException
getEventHandler
in interface Marshaller
JAXBException
public void setAdapter(XmlAdapter adapter)
setAdapter
in interface Marshaller
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter
in interface Marshaller
public <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter
in interface Marshaller
public void setAttachmentMarshaller(AttachmentMarshaller marshaller)
setAttachmentMarshaller
in interface Marshaller
public AttachmentMarshaller getAttachmentMarshaller()
getAttachmentMarshaller
in interface Marshaller
public void setSchema(Schema schema)
setSchema
in interface Marshaller
public Schema getSchema()
getSchema
in interface Marshaller
public void setListener(Marshaller.Listener listener)
setListener
in interface Marshaller
public Marshaller.Listener getListener()
getListener
in interface Marshaller
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.