public class MarshallerImpl extends AbstractMarshallerImpl implements ExtendedMarshaller
Marshaller.Listener
Modifier and Type | Field and Description |
---|---|
static String |
MARSHALLER |
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_FRAGMENT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION
Constructor and Description |
---|
MarshallerImpl(JAXBIntrospectorImpl introspector) |
Modifier and Type | Method and Description |
---|---|
<A extends XmlAdapter> |
getAdapter(Class<A> type) |
AttachmentMarshaller |
getAttachmentMarshaller() |
Marshaller.Listener |
getListener() |
Schema |
getSchema() |
void |
marshal(Object jaxbElement,
Result result) |
void |
marshal(Object jaxbElement,
XMLEventWriter writer) |
void |
marshal(Object jaxbElement,
XMLStreamWriter writer) |
<A extends XmlAdapter> |
setAdapter(Class<A> type,
A adapter) |
void |
setAttachmentMarshaller(AttachmentMarshaller attachmentMarshaller) |
void |
setListener(Marshaller.Listener listener) |
void |
setSchema(Schema schema) |
void |
write(Object jaxbElement,
XoXMLStreamWriter writer,
RuntimeContext context,
boolean writeTag,
boolean writeXsiType) |
getEncoding, getEventHandler, getJavaEncoding, getNode, getNoNSSchemaLocation, getProperty, getSchemaLocation, isFormattedOutput, isFragment, marshal, marshal, marshal, marshal, marshal, setAdapter, setEncoding, setEventHandler, setFormattedOutput, setFragment, setNoNSSchemaLocation, setProperty, setSchemaLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventHandler, getNode, getProperty, marshal, marshal, marshal, marshal, marshal, setAdapter, setEventHandler, setProperty
public static final String MARSHALLER
public MarshallerImpl(JAXBIntrospectorImpl introspector)
public void marshal(Object jaxbElement, Result result) throws JAXBException
marshal
in interface Marshaller
JAXBException
public void marshal(Object jaxbElement, XMLEventWriter writer) throws JAXBException
marshal
in interface Marshaller
marshal
in class AbstractMarshallerImpl
JAXBException
public void marshal(Object jaxbElement, XMLStreamWriter writer) throws JAXBException
marshal
in interface Marshaller
marshal
in class AbstractMarshallerImpl
JAXBException
public void write(Object jaxbElement, XoXMLStreamWriter writer, RuntimeContext context, boolean writeTag, boolean writeXsiType) throws JAXBException
write
in interface ExtendedMarshaller
JAXBException
public <A extends XmlAdapter> A getAdapter(Class<A> type)
getAdapter
in interface Marshaller
getAdapter
in class AbstractMarshallerImpl
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
setAdapter
in interface Marshaller
setAdapter
in class AbstractMarshallerImpl
public AttachmentMarshaller getAttachmentMarshaller()
getAttachmentMarshaller
in interface Marshaller
getAttachmentMarshaller
in class AbstractMarshallerImpl
public void setAttachmentMarshaller(AttachmentMarshaller attachmentMarshaller)
setAttachmentMarshaller
in interface Marshaller
setAttachmentMarshaller
in class AbstractMarshallerImpl
public Marshaller.Listener getListener()
getListener
in interface Marshaller
getListener
in class AbstractMarshallerImpl
public void setListener(Marshaller.Listener listener)
setListener
in interface Marshaller
setListener
in class AbstractMarshallerImpl
public Schema getSchema()
getSchema
in interface Marshaller
getSchema
in class AbstractMarshallerImpl
public void setSchema(Schema schema)
setSchema
in interface Marshaller
setSchema
in class AbstractMarshallerImpl
Copyright © 2007–2018. All rights reserved.