|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.xml.bind.helpers.AbstractMarshallerImpl
edu.ksi.virtualclassroom.mappers.jaxb.xmlwrapper.impl.runtime.MarshallerImpl
Implementation of Marshaller interface for JAXB RI.
*
* @author Kohsuke Kawaguchi
* @author Vivek Pandey
* @version $Revision$
| Field Summary | |
(package private) DefaultJAXBContextImpl |
context
reference to the context that created this object |
private static java.lang.String |
ENCODING_HANDLER
Field ENCODING_HANDLER (value is ""com.sun.xml.bind.characterEscapeHandler"") |
private com.sun.xml.bind.marshaller.CharacterEscapeHandler |
escapeHandler
Object that handles character escaping. |
private java.lang.String |
header
XML BLOB written after the XML declaration. |
private java.lang.String |
indent
Indentation string. |
private static java.lang.String |
INDENT_STRING
Field INDENT_STRING (value is ""com.sun.xml.bind.indentString"") |
private static java.lang.String |
PREFIX_MAPPER
Field PREFIX_MAPPER (value is ""com.sun.xml.bind.namespacePrefixMapper"") |
private com.sun.xml.bind.marshaller.NamespacePrefixMapper |
prefixMapper
Used to assign prefixes to namespace URIs. |
private boolean |
printXmlDeclaration
Whether the xml declaration will be printed or not. |
private static java.lang.String |
XML_HEADERS
Field XML_HEADERS (value is ""com.sun.xml.bind.xmlHeaders"") |
private static java.lang.String |
XMLDECLARATION
Field XMLDECLARATION (value is ""com.sun.xml.bind.xmlDeclaration"") |
| Fields inherited from class javax.xml.bind.helpers.AbstractMarshallerImpl |
|
| Fields inherited from interface javax.xml.bind.Marshaller |
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION |
| Constructor Summary | |
MarshallerImpl(DefaultJAXBContextImpl c)
Constructor for MarshallerImpl |
|
| Method Summary | |
protected com.sun.xml.bind.marshaller.CharacterEscapeHandler |
createEscapeHandler(java.lang.String encoding)
Method createEscapeHandler |
com.sun.xml.bind.marshaller.XMLWriter |
createWriter(java.io.OutputStream os)
Method createWriter |
com.sun.xml.bind.marshaller.XMLWriter |
createWriter(java.io.OutputStream os,
java.lang.String encoding)
Method createWriter |
com.sun.xml.bind.marshaller.XMLWriter |
createWriter(java.io.Writer w)
Method createWriter |
com.sun.xml.bind.marshaller.XMLWriter |
createWriter(java.io.Writer w,
java.lang.String encoding)
Method createWriter |
java.lang.Object |
getProperty(java.lang.String name)
Method getProperty |
void |
marshal(java.lang.Object obj,
javax.xml.transform.Result result)
Method marshal |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Method setProperty |
private void |
write(XMLSerializable obj,
org.xml.sax.ContentHandler writer)
Method write |
| Methods inherited from class javax.xml.bind.helpers.AbstractMarshallerImpl |
getEncoding, getEventHandler, getJavaEncoding, getNode, getNoNSSchemaLocation, getSchemaLocation, isFormattedOutput, marshal, marshal, marshal, marshal, setEncoding, setEventHandler, setFormattedOutput, setNoNSSchemaLocation, setSchemaLocation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String indent
private com.sun.xml.bind.marshaller.NamespacePrefixMapper prefixMapper
private com.sun.xml.bind.marshaller.CharacterEscapeHandler escapeHandler
private boolean printXmlDeclaration
private java.lang.String header
final DefaultJAXBContextImpl context
private static final java.lang.String INDENT_STRING
private static final java.lang.String PREFIX_MAPPER
private static final java.lang.String ENCODING_HANDLER
private static final java.lang.String XMLDECLARATION
private static final java.lang.String XML_HEADERS
| Constructor Detail |
public MarshallerImpl(DefaultJAXBContextImpl c)
c - DefaultJAXBContextImpl| Method Detail |
public void marshal(java.lang.Object obj,
javax.xml.transform.Result result)
throws javax.xml.bind.JAXBException
obj - Objectresult - Result
javax.xml.bind.JAXBExceptionMarshaller.marshal(Object, Result)
private void write(XMLSerializable obj,
org.xml.sax.ContentHandler writer)
throws javax.xml.bind.JAXBException
obj - XMLSerializablewriter - ContentHandler
javax.xml.bind.JAXBExceptionprotected com.sun.xml.bind.marshaller.CharacterEscapeHandler createEscapeHandler(java.lang.String encoding)
encoding - String
public com.sun.xml.bind.marshaller.XMLWriter createWriter(java.io.Writer w,
java.lang.String encoding)
throws javax.xml.bind.JAXBException
w - Writerencoding - String
javax.xml.bind.JAXBException
public com.sun.xml.bind.marshaller.XMLWriter createWriter(java.io.Writer w)
throws javax.xml.bind.JAXBException
w - Writer
javax.xml.bind.JAXBException
public com.sun.xml.bind.marshaller.XMLWriter createWriter(java.io.OutputStream os)
throws javax.xml.bind.JAXBException
os - OutputStream
javax.xml.bind.JAXBException
public com.sun.xml.bind.marshaller.XMLWriter createWriter(java.io.OutputStream os,
java.lang.String encoding)
throws javax.xml.bind.JAXBException
os - OutputStreamencoding - String
javax.xml.bind.JAXBException
public java.lang.Object getProperty(java.lang.String name)
throws javax.xml.bind.PropertyException
name - String
javax.xml.bind.PropertyExceptionMarshaller.getProperty(String)
public void setProperty(java.lang.String name,
java.lang.Object value)
throws javax.xml.bind.PropertyException
name - Stringvalue - Object
javax.xml.bind.PropertyExceptionMarshaller.setProperty(String, Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||