|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Marshaller
The Marshaller class is responsible for governing the process of serializing Java content trees back into XML data.
Field Summary | |
---|---|
static String |
JAXB_ENCODING
The name of the property used to specify the output encoding in the marshalled XML data. |
static 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. |
static String |
JAXB_NO_NAMESPACE_SCHEMA_LOCATION
The name of the property used to specify the the xsi:noNamespaceSchemaLocation attribute value to place in the marshalled XML output. |
static String |
JAXB_SCHEMA_LOCATION
The name of the property used to specify the xsi:schemaLocation attribute value to place in the marshalled XML output. |
Method Summary | |
---|---|
ValidationEventHandler |
getEventHandler()
Return the current event handler or the default event handler if one hasn't been set. |
Node |
getNode(Object contentTree)
Get a DOM tree view of the content tree(Optional). |
Object |
getProperty(String name)
Get the particular property in the underlying implementation of Marshaller. |
void |
marshal(Object obj,
ContentHandler handler)
Marshal the content tree rooted at obj into SAX2 events. |
void |
marshal(Object obj,
Node node)
Marshal the content tree rooted at obj into a DOM tree. |
void |
marshal(Object obj,
OutputStream os)
Marshal the content tree rooted at obj into an output stream. |
void |
marshal(Object obj,
Result result)
Marshal the content tree rooted at obj into the specified javax.xml.transform.Result. |
void |
marshal(Object obj,
Writer writer)
Marshal the content tree rooted at obj into a Writer. |
void |
setEventHandler(ValidationEventHandler handler)
Allow an application to register a validation event handler. |
void |
setProperty(String name,
Object value)
Set the particular property in the underlying implementation of Marshaller. |
Field Detail |
---|
static final String JAXB_ENCODING
static final String JAXB_FORMATTED_OUTPUT
static final String JAXB_NO_NAMESPACE_SCHEMA_LOCATION
static final String JAXB_SCHEMA_LOCATION
Method Detail |
---|
ValidationEventHandler getEventHandler() throws JAXBException
JAXBException
Node getNode(Object contentTree) throws JAXBException
JAXBException
Object getProperty(String name) throws PropertyException
PropertyException
void marshal(Object obj, ContentHandler handler) throws JAXBException
JAXBException
void marshal(Object obj, Node node) throws JAXBException
JAXBException
void marshal(Object obj, OutputStream os) throws JAXBException
JAXBException
void marshal(Object obj, Result result) throws JAXBException
JAXBException
void marshal(Object obj, Writer writer) throws JAXBException
JAXBException
void setEventHandler(ValidationEventHandler handler) throws JAXBException
JAXBException
void setProperty(String name, Object value) throws PropertyException
PropertyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |