javax.xml.bind
Interface Marshaller
- All Known Implementing Classes:
- AbstractMarshallerImpl
public interface Marshaller
Method Summary |
|
getAdapter(Class<A> type)
|
AttachmentMarshaller |
getAttachmentMarshaller()
|
ValidationEventHandler |
getEventHandler()
|
Marshaller.Listener |
getListener()
|
Node |
getNode(Object contentTree)
|
Object |
getProperty(String name)
|
Schema |
getSchema()
|
void |
marshal(Object jaxbElement,
ContentHandler handler)
|
void |
marshal(Object jaxbElement,
File file)
|
void |
marshal(Object jaxbElement,
Node node)
|
void |
marshal(Object jaxbElement,
OutputStream os)
|
void |
marshal(Object jaxbElement,
Result result)
|
void |
marshal(Object jaxbElement,
Writer writer)
|
void |
marshal(Object jaxbElement,
javax.xml.stream.XMLEventWriter writer)
|
void |
marshal(Object jaxbElement,
javax.xml.stream.XMLStreamWriter writer)
|
|
setAdapter(Class<A> type,
A adapter)
|
void |
setAdapter(XmlAdapter adapter)
|
void |
setAttachmentMarshaller(AttachmentMarshaller am)
|
void |
setEventHandler(ValidationEventHandler handler)
|
void |
setListener(Marshaller.Listener listener)
|
void |
setProperty(String name,
Object value)
|
void |
setSchema(Schema schema)
|
JAXB_ENCODING
static final String JAXB_ENCODING
- See Also:
- Constant Field Values
JAXB_FORMATTED_OUTPUT
static final String JAXB_FORMATTED_OUTPUT
- See Also:
- Constant Field Values
JAXB_FRAGMENT
static final String JAXB_FRAGMENT
- See Also:
- Constant Field Values
JAXB_NO_NAMESPACE_SCHEMA_LOCATION
static final String JAXB_NO_NAMESPACE_SCHEMA_LOCATION
- See Also:
- Constant Field Values
JAXB_SCHEMA_LOCATION
static final String JAXB_SCHEMA_LOCATION
- See Also:
- Constant Field Values
getAdapter
<A extends XmlAdapter> A getAdapter(Class<A> type)
getAttachmentMarshaller
AttachmentMarshaller getAttachmentMarshaller()
getEventHandler
ValidationEventHandler getEventHandler()
throws JAXBException
- Throws:
JAXBException
getListener
Marshaller.Listener getListener()
getNode
Node getNode(Object contentTree)
throws JAXBException
- Throws:
JAXBException
getProperty
Object getProperty(String name)
throws PropertyException
- Throws:
PropertyException
getSchema
Schema getSchema()
marshal
void marshal(Object jaxbElement,
ContentHandler handler)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
File file)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
Node node)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
OutputStream os)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
Result result)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
Writer writer)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
javax.xml.stream.XMLEventWriter writer)
throws JAXBException
- Throws:
JAXBException
marshal
void marshal(Object jaxbElement,
javax.xml.stream.XMLStreamWriter writer)
throws JAXBException
- Throws:
JAXBException
setAdapter
<A extends XmlAdapter> void setAdapter(Class<A> type,
A adapter)
setAdapter
void setAdapter(XmlAdapter adapter)
setAttachmentMarshaller
void setAttachmentMarshaller(AttachmentMarshaller am)
setEventHandler
void setEventHandler(ValidationEventHandler handler)
throws JAXBException
- Throws:
JAXBException
setListener
void setListener(Marshaller.Listener listener)
setProperty
void setProperty(String name,
Object value)
throws PropertyException
- Throws:
PropertyException
setSchema
void setSchema(Schema schema)
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.