Home » xml-commons-external-1.4.01-src » javax » xml » bind » helpers » [javadoc | source]
javax.xml.bind.helpers
abstract public class: AbstractMarshallerImpl [javadoc | source]
java.lang.Object
   javax.xml.bind.helpers.AbstractMarshallerImpl

All Implemented Interfaces:
    Marshaller

Partial default Marshaller implementation.

This class provides a partial default implementation for the javax.xml.bind.Marshaller interface.

The only methods that a JAXB Provider has to implement are marshal(Object, javax.xml.transform.Result) , marshal(Object, javax.xml.stream.XMLStreamWriter) , and marshal(Object, javax.xml.stream.XMLEventWriter) .

Field Summary
static  String[] aliases     
Method from javax.xml.bind.helpers.AbstractMarshallerImpl Summary:
getAdapter,   getAttachmentMarshaller,   getEncoding,   getEventHandler,   getJavaEncoding,   getListener,   getNoNSSchemaLocation,   getNode,   getProperty,   getSchema,   getSchemaLocation,   isFormattedOutput,   isFragment,   marshal,   marshal,   marshal,   marshal,   marshal,   marshal,   marshal,   setAdapter,   setAdapter,   setAttachmentMarshaller,   setEncoding,   setEventHandler,   setFormattedOutput,   setFragment,   setListener,   setNoNSSchemaLocation,   setProperty,   setSchema,   setSchemaLocation
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.bind.helpers.AbstractMarshallerImpl Detail:
 public A getAdapter(Class<A> type) 
 public AttachmentMarshaller getAttachmentMarshaller() 
 protected String getEncoding() 
    Convenience method for getting the current output encoding.
 public ValidationEventHandler getEventHandler() throws JAXBException 
 protected String getJavaEncoding(String encoding) throws UnsupportedEncodingException 
    Gets the corresponding Java encoding name from an IANA name. This method is a helper method for the derived class to convert encoding names.
 public Listener getListener() 
 protected String getNoNSSchemaLocation() 
    Convenience method for getting the current noNamespaceSchemaLocation.
 public Node getNode(Object obj) throws JAXBException 
 public Object getProperty(String name) throws PropertyException 
    Default implementation of the getProperty method handles the four defined properties in Marshaller. If a provider needs to support additional provider specific properties, it should override this method in a derived class.
 public Schema getSchema() 
 protected String getSchemaLocation() 
    Convenience method for getting the current schemaLocation.
 protected boolean isFormattedOutput() 
    Convenience method for getting the formatted output flag.
 protected boolean isFragment() 
    Convenience method for getting the fragment flag.
 public final  void marshal(Object obj,
    OutputStream os) throws JAXBException 
 public  void marshal(Object jaxbElement,
    File output) throws JAXBException 
 public final  void marshal(Object obj,
    Writer w) throws JAXBException 
 public final  void marshal(Object obj,
    ContentHandler handler) throws JAXBException 
 public final  void marshal(Object obj,
    Node node) throws JAXBException 
 public  void marshal(Object obj,
    XMLEventWriter writer) throws JAXBException 
 public  void marshal(Object obj,
    XMLStreamWriter writer) throws JAXBException 
 public  void setAdapter(XmlAdapter adapter) 
 public  void setAdapter(Class<A> type,
    A adapter) 
 public  void setAttachmentMarshaller(AttachmentMarshaller am) 
 protected  void setEncoding(String encoding) 
    Convenience method for setting the output encoding.
 public  void setEventHandler(ValidationEventHandler handler) throws JAXBException 
 protected  void setFormattedOutput(boolean v) 
    Convenience method for setting the formatted output flag.
 protected  void setFragment(boolean v) 
    Convenience method for setting the fragment flag.
 public  void setListener(Listener listener) 
 protected  void setNoNSSchemaLocation(String location) 
    Convenience method for setting the noNamespaceSchemaLocation.
 public  void setProperty(String name,
    Object value) throws PropertyException 
    Default implementation of the setProperty method handles the four defined properties in Marshaller. If a provider needs to handle additional properties, it should override this method in a derived class.
 public  void setSchema(Schema schema) 
 protected  void setSchemaLocation(String location) 
    Convenience method for setting the schemaLocation.