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