API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.bind. Marshaller View Source
Author(s)

Since
JAXB1.0
Version
$Revision: 1.18 $ $Date: 2005/08/30 21:15:02 $
Serial
Hierarchy
 Marshaller
Subinterfaces
Description
public interface Marshaller
  The Marshaller class is responsible for governing the process of serializing Java content trees back into XML data.
Methods
Hide/Show inherited methods
public A getAdapter (Class< A> type)
  Gets the adapter associated with the specified type.
public AttachmentMarshaller getAttachmentMarshaller ()
public ValidationEventHandler getEventHandler () throws JAXBException
  Return the current event handler or the default event handler if one hasn't been set.
public Listener getListener ()
  Return Marshaller.Listener registered with this Marshaller.
public Node getNode (Object contentTree) throws JAXBException
  Get a DOM tree view of the content tree(Optional).
public Object getProperty (String name) throws PropertyException
  Get the particular property in the underlying implementation of Marshaller.
public Schema getSchema ()
  Get the JAXP 1.3 Schema object being used to perform marshal-time validation.
public void marshal (Object jaxbElement, ContentHandler handler) throws JAXBException
  Marshal the content tree rooted at jaxbElement into SAX2 events.
public void marshal (Object jaxbElement, Node node) throws JAXBException
  Marshal the content tree rooted at jaxbElement into a DOM tree.
public void marshal (Object jaxbElement, OutputStream os) throws JAXBException
  Marshal the content tree rooted at jaxbElement into an output stream.
public void marshal (Object jaxbElement, Result result) throws JAXBException
  Marshal the content tree rooted at jaxbElement into the specified javax.xml.transform.Result.
public void marshal (Object jaxbElement, Writer writer) throws JAXBException
  Marshal the content tree rooted at jaxbElement into a Writer.
public void marshal (Object jaxbElement, XMLEventWriter writer) throws JAXBException
  Marshal the content tree rooted at jaxbElement into a XMLEventWriter.
public void marshal (Object jaxbElement, XMLStreamWriter writer) throws JAXBException
  Marshal the content tree rooted at jaxbElement into a XMLStreamWriter.
public void setAdapter (Class< A> type, A adapter)
  Associates a configured instance of XmlAdapter with this marshaller.
public void setAdapter (XmlAdapter adapter)
  Associates a configured instance of XmlAdapter with this marshaller.
public void setAttachmentMarshaller (AttachmentMarshaller am)
  Associate a context that enables binary data within an XML document to be transmitted as XML-binary optimized attachment.
public void setEventHandler (ValidationEventHandler handler) throws JAXBException
  Allow an application to register a validation event handler.
public void setListener (Listener listener)
  Register marshal event callback Marshaller.Listener with this Marshaller.
public void setProperty (String name, Object value) throws PropertyException
  Set the particular property in the underlying implementation of Marshaller.
public void setSchema (Schema schema)
  Specify the JAXP 1.3 Schema object that should be used to validate subsequent marshal operations against.
Fields
Hide/Show inherited fields
publicfinalstatic String JAXB_ENCODING = "jaxb.encoding"
The name of the property used to specify the output encoding in the marshalled XML data.
publicfinalstatic String JAXB_FORMATTED_OUTPUT = "jaxb.formatted.output"
The name of the property used to specify whether or not the marshalled XML data is formatted with linefeeds and indentation.
publicfinalstatic String JAXB_FRAGMENT = "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).
publicfinalstatic String JAXB_NO_NAMESPACE_SCHEMA_LOCATION = "jaxb.noNamespaceSchemaLocation"
The name of the property used to specify the xsi:noNamespaceSchemaLocation attribute value to place in the marshalled XML output.
publicfinalstatic String JAXB_SCHEMA_LOCATION = "jaxb.schemaLocation"
The name of the property used to specify the xsi:schemaLocation attribute value to place in the marshalled XML output.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar