Example usage for Java javax.xml.bind Marshaller fields, constructors, methods, implement or subclass
The text is from its open source code.
String | JAXB_ENCODING The name of the property used to specify the output encoding in the marshalled XML data. |
String | JAXB_FORMATTED_OUTPUT The name of the property used to specify whether or not the marshalled XML data is formatted with linefeeds and indentation. |
String | JAXB_SCHEMA_LOCATION The name of the property used to specify the xsi:schemaLocation attribute value to place in the marshalled XML output. |
String | JAXB_NO_NAMESPACE_SCHEMA_LOCATION The name of the property used to specify the xsi:noNamespaceSchemaLocation attribute value to place in the marshalled XML output. |
String | JAXB_FRAGMENT The name of the property used to specify whether or not the marshaller will generate document level events (ie calling startDocument or endDocument). |
A | getAdapter(Class type) Gets the adapter associated with the specified type. |
Class> | getClass() Returns the runtime class of this Object . |
ValidationEventHandler | getEventHandler() Return the current event handler or the default event handler if one hasn't been set. |
Object | getProperty(String name) Get the particular property in the underlying implementation of Marshaller . |
void | marshal(Object jaxbElement, javax.xml.transform.Result result) Marshal the content tree rooted at jaxbElement into the specified javax.xml.transform.Result . |
void | marshal(Object jaxbElement, java.io.OutputStream os) Marshal the content tree rooted at jaxbElement into an output stream. |
void | marshal(Object jaxbElement, File output) Marshal the content tree rooted at jaxbElement into a file. |
void | marshal(Object jaxbElement, java.io.Writer writer) Marshal the content tree rooted at jaxbElement into a Writer. |
void | marshal(Object jaxbElement, org.xml.sax.ContentHandler handler) Marshal the content tree rooted at jaxbElement into SAX2 events. |
void | marshal(Object jaxbElement, org.w3c.dom.Node node) Marshal the content tree rooted at jaxbElement into a DOM tree. |
void | marshal(Object jaxbElement, javax.xml.stream.XMLStreamWriter writer) Marshal the content tree rooted at jaxbElement into a javax.xml.stream.XMLStreamWriter . |
void | marshal(Object jaxbElement, javax.xml.stream.XMLEventWriter writer) Marshal the content tree rooted at jaxbElement into a javax.xml.stream.XMLEventWriter . |
void | setAdapter(XmlAdapter adapter) Associates a configured instance of XmlAdapter with this marshaller. |
void | setAdapter(Class type, A adapter) Associates a configured instance of XmlAdapter with this marshaller. |
void | setAttachmentMarshaller(AttachmentMarshaller am) Associate a context that enables binary data within an XML document to be transmitted as XML-binary optimized attachment. |
void | setEventHandler(ValidationEventHandler handler) Allow an application to register a validation event handler. |
void | setListener(Listener listener) Register marshal event callback Listener with this Marshaller . |
void | setProperty(String name, Object value) Set the particular property in the underlying implementation of Marshaller . |
void | setSchema(Schema schema) Specify the JAXP 1.3 javax.xml.validation.Schema Schema object that should be used to validate subsequent marshal operations against. |