|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jaxme.impl.JMControllerImpl
net.sf.jaxme.impl.JMMarshallerImpl
| Field Summary | |
static java.lang.String |
DEFAULT_JAXB_ENCODING
Default value for Marshaller.JAXB_ENCODING: UTF-8. |
static java.lang.String |
DEFAULT_JAXME_INDENTATION_SEPARATOR
Default value for JAXME_INDENTATION_SEPARATOR: "\n"
(Line Feed) |
static java.lang.String |
DEFAULT_JAXME_INDENTATION_STRING
Default value for JAXME_INDENTATION_STRING: " "
(two blanks) |
static java.lang.String |
JAXME_INDENTATION_SEPARATOR
Property name for setting the String used as a line separator in the formatted output. |
static java.lang.String |
JAXME_INDENTATION_STRING
Property name for setting the String used to indent the formatted output by one level: "jaxme.indentation.string". |
static java.lang.String |
JAXME_XML_DECLARATION
Property name for choosing whether the marshalled output should contain an XML declaration. |
static java.lang.String |
JAXME_XML_WRITER
Property name for a SAX ContentHandler which is able to
marshal a SAX stream into a character stream. |
| Fields inherited from class net.sf.jaxme.impl.JMControllerImpl |
eventHandler, JAXME_DATATYPE_CONVERTER, JAXME_PRIVATE |
| Fields inherited from interface javax.xml.bind.Marshaller |
JAXB_ENCODING, JAXB_FORMATTED_OUTPUT, JAXB_NO_NAMESPACE_SCHEMA_LOCATION, JAXB_SCHEMA_LOCATION |
| Constructor Summary | |
JMMarshallerImpl()
|
|
| Method Summary | |
java.lang.String |
getEncoding()
Returns the controllers encoding; to be used in marshalling. |
boolean |
getIndentation()
Returns whether XML documents generated by the controller ought to be formatted. |
java.lang.String |
getIndentationSeparator()
Returns the string used as a line separator. |
java.lang.String |
getIndentationString()
Returns the string used to indent one level. |
Node |
getNode(java.lang.Object contentTree)
|
java.lang.Object |
getProperty(java.lang.String pProperty)
|
boolean |
getXmlDeclaration()
Returns whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream) ought to emit an
XML declaration. |
java.lang.Class |
getXMLWriterClass()
Returns the controllers class implementing XMLWriter.
|
void |
marshal(java.lang.Object pObject,
ContentHandler pHandler)
|
void |
marshal(java.lang.Object pObject,
Node pNode)
|
void |
marshal(java.lang.Object pObject,
java.io.OutputStream pStream)
|
void |
marshal(java.lang.Object pObject,
Result pResult)
|
void |
marshal(java.lang.Object pObject,
java.io.Writer pWriter)
|
void |
setEncoding(java.lang.String pEncoding)
Sets the controllers encoding; to be used in marshalling. |
void |
setIndentation(boolean pIndentation)
Sets whether XML documents generated by the controller ought to be formatted. |
void |
setIndentationSeparator(java.lang.String pStr)
Sets the string used as a line separator. |
void |
setIndentationString(java.lang.String pStr)
Sets the string used to indent one level. |
void |
setProperty(java.lang.String pProperty,
java.lang.Object pValue)
|
void |
setXmlDeclaration(boolean pDeclaration)
Sets whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream) ought to emit an
XML declaration. |
void |
setXMLWriterClass(java.lang.Class pClass)
Sets the controllers class implementing XMLWriter.
|
| Methods inherited from class net.sf.jaxme.impl.JMControllerImpl |
getDatatypeConverter, getEventHandler, getJAXBContextImpl, setDatatypeConverter, setEventHandler, setJAXBContextImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.jaxme.JMMarshaller |
getDatatypeConverter, getJAXBContextImpl, setJAXBContextImpl |
| Methods inherited from interface javax.xml.bind.Marshaller |
getEventHandler, setEventHandler |
| Field Detail |
public static final java.lang.String DEFAULT_JAXB_ENCODING
Default value for Marshaller.JAXB_ENCODING: UTF-8.
public static final java.lang.String DEFAULT_JAXME_INDENTATION_STRING
Default value for JAXME_INDENTATION_STRING: " "
(two blanks)
public static final java.lang.String DEFAULT_JAXME_INDENTATION_SEPARATOR
Default value for JAXME_INDENTATION_SEPARATOR: "\n"
(Line Feed)
public static final java.lang.String JAXME_INDENTATION_STRING
Property name for setting the String used to indent
the formatted output by one level: "jaxme.indentation.string".
Defaults to DEFAULT_JAXME_INDENTATION_STRING.
setIndentationString(java.lang.String),
getIndentationString(),
Constant Field Valuespublic static final java.lang.String JAXME_INDENTATION_SEPARATOR
Property name for setting the String used as a line separator in the formatted output. "jaxme.indentation.separator"
setIndentationSeparator(java.lang.String),
getIndentationSeparator(),
Constant Field Valuespublic static final java.lang.String JAXME_XML_DECLARATION
Property name for choosing whether the marshalled
output should contain an XML declaration. The methods
marshal(Object, OutputStream) and
marshal(Object, Writer) recognize
requests for XML declarations.
setXmlDeclaration(boolean),
getXmlDeclaration(),
Constant Field Valuespublic static final java.lang.String JAXME_XML_WRITER
Property name for a SAX ContentHandler which is able to
marshal a SAX stream into a character stream. The property value is
an instance of Class implementing XMLWriter.
| Constructor Detail |
public JMMarshallerImpl()
| Method Detail |
public void setEncoding(java.lang.String pEncoding)
throws PropertyException
Sets the controllers encoding; to be used in
marshalling. Defaults to DEFAULT_JAXB_ENCODING.
pEncoding - Suggested encoding or null to restore
the default
PropertyExceptionpublic java.lang.String getEncoding()
Returns the controllers encoding; to be used in
marshalling. Defaults to DEFAULT_JAXB_ENCODING.
public void setXMLWriterClass(java.lang.Class pClass)
throws PropertyException
Sets the controllers class implementing XMLWriter.
Defaults to XMLWriterImpl.
pClass - A class implementing XMLWriterImpl or
null to restore the default.
PropertyExceptionpublic java.lang.Class getXMLWriterClass()
Returns the controllers class implementing XMLWriter.
Defaults to XMLWriterImpl.
public void setIndentation(boolean pIndentation)
Sets whether XML documents generated by the controller ought to be formatted. Defaults to true.
public boolean getIndentation()
Returns whether XML documents generated by the controller ought to be formatted. Defaults to true.
public void setXmlDeclaration(boolean pDeclaration)
Sets whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream) ought to emit an
XML declaration.
public boolean getXmlDeclaration()
Returns whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream) ought to emit an
XML declaration.
public void setIndentationString(java.lang.String pStr)
Sets the string used to indent one level. Defaults to
DEFAULT_JAXME_INDENTATION_STRING. Equivalent to
setProperty(JAXME_INDENTATION_STRING, pStr).
DEFAULT_JAXME_INDENTATION_STRING,
setProperty(java.lang.String, java.lang.Object),
getProperty(java.lang.String)public java.lang.String getIndentationString()
Returns the string used to indent one level. Defaults to
DEFAULT_JAXME_INDENTATION_STRING. Equivalent to
getProperty(JAXME_INDENTATION_STRING).
DEFAULT_JAXME_INDENTATION_STRING,
setProperty(java.lang.String, java.lang.Object),
getProperty(java.lang.String)public void setIndentationSeparator(java.lang.String pStr)
Sets the string used as a line separator. Defaults to
DEFAULT_JAXME_INDENTATION_SEPARATOR. Equivalent to
setProperty(JAXME_INDENTATION_SEPARATOR, pStr).
DEFAULT_JAXME_INDENTATION_SEPARATOR,
setProperty(java.lang.String, java.lang.Object),
getProperty(java.lang.String)public java.lang.String getIndentationSeparator()
Returns the string used as a line separator. Defaults to
DEFAULT_JAXME_INDENTATION_SEPARATOR. Equivalent to
getProperty(JAXME_INDENTATION_SEPARATOR).
DEFAULT_JAXME_INDENTATION_SEPARATOR,
setProperty(java.lang.String, java.lang.Object),
getProperty(java.lang.String)
public void setProperty(java.lang.String pProperty,
java.lang.Object pValue)
throws PropertyException
setProperty in interface MarshallersetProperty in class JMControllerImplPropertyException
public java.lang.Object getProperty(java.lang.String pProperty)
throws PropertyException
getProperty in interface MarshallergetProperty in class JMControllerImplPropertyException
public void marshal(java.lang.Object pObject,
java.io.OutputStream pStream)
throws JAXBException
marshal in interface MarshallerJAXBException
public void marshal(java.lang.Object pObject,
ContentHandler pHandler)
throws JAXBException
marshal in interface MarshallerJAXBException
public void marshal(java.lang.Object pObject,
java.io.Writer pWriter)
throws JAXBException
marshal in interface MarshallerJAXBException
public void marshal(java.lang.Object pObject,
Node pNode)
throws JAXBException
marshal in interface MarshallerJAXBException
public void marshal(java.lang.Object pObject,
Result pResult)
throws JAXBException
marshal in interface MarshallerJAXBException
public Node getNode(java.lang.Object contentTree)
throws JAXBException
getNode in interface MarshallerJAXBException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||