org.apache.ws.jaxme.impl
public class JMMarshallerImpl extends JMControllerImpl implements JMMarshaller
Version: $Id: JMMarshallerImpl.java 232067 2005-03-10 10:14:08Z jochen $
Field Summary | |
---|---|
static String | DEFAULT_JAXB_ENCODING Default value for JAXB_ENCODING.
|
static String | DEFAULT_JAXME_INDENTATION_SEPARATOR Default value for JAXME_INDENTATION_SEPARATOR.
|
static String | DEFAULT_JAXME_INDENTATION_STRING Default value for JAXME_INDENTATION_STRING: Two blanks. |
static String | JAXME_INDENTATION_SEPARATOR Property name for setting the String used as a
line separator in the formatted output.
|
static String | JAXME_INDENTATION_STRING Property name for setting the String used to indent
the formatted output by one level.
|
static String | JAXME_XML_DECLARATION Property name for choosing whether the marshalled
output should contain an XML declaration. |
static String | JAXME_XML_WRITER Property name for a SAX ContentHandler which is able to
marshal a SAX stream into a character stream. |
Method Summary | |
---|---|
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. |
String | getIndentationSeparator() Returns the string used as a line separator. |
String | getIndentationString() Returns the string used to indent one level. |
Node | getNode(Object contentTree) |
String | getNoNamespaceSchemaLocation() Returns the schema location. |
Object | getProperty(String pProperty) |
String | getSchemaLocation() Returns the schema location. |
boolean | getXmlDeclaration() Returns whether the methods |
Class | getXMLWriterClass() Returns the controllers class implementing XMLWriter. |
void | marshal(Object pObject, OutputStream pStream) |
void | marshal(Object pObject, ContentHandler pHandler) |
void | marshal(Object pObject, Writer pWriter) |
void | marshal(Object pObject, Node pNode) |
void | marshal(Object pObject, Result pResult) |
void | setEncoding(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(String pStr) Sets the string used as a line separator. |
void | setIndentationString(String pStr) Sets the string used to indent one level. |
void | setNoNamespaceSchemaLocation(String pValue) Sets the schema location without namespace. |
void | setProperty(String pProperty, Object pValue) |
void | setSchemaLocation(String pValue) Sets the schema location. |
void | setXmlDeclaration(boolean pDeclaration) Sets whether the methods |
void | setXMLWriterClass(Class pClass) Sets the controllers class implementing XMLWriter.
|
See Also: JMMarshallerImpl JMMarshallerImpl
See Also: JMMarshallerImpl JMMarshallerImpl
See Also: JMMarshallerImpl JMMarshallerImpl
Returns whether XML documents generated by the controller ought to be formatted. Defaults to true.
Returns the string used as a line separator. Defaults to
DEFAULT_JAXME_INDENTATION_SEPARATOR. Equivalent to
getProperty(JAXME_INDENTATION_SEPARATOR)
.
See Also: DEFAULT_JAXME_INDENTATION_SEPARATOR JMMarshallerImpl JMMarshallerImpl
Returns the string used to indent one level. Defaults to
DEFAULT_JAXME_INDENTATION_STRING. Equivalent to
getProperty(JAXME_INDENTATION_STRING)
.
See Also: DEFAULT_JAXME_INDENTATION_STRING JMMarshallerImpl JMMarshallerImpl
Returns the schema location. The marshaller will use this to
create an attribute xsi:noNamespaceSchemaLocation
. Equivalent
to setProperty(JAXB_SCHEMA_LOCATION, pValue)
.
Defaults to null, in which case the attribute isn't created.
See Also: JAXB_NO_NAMESPACE_SCHEMA_LOCATION JMMarshallerImpl setNoNamespaceSchemaLocation
Returns the schema location. The marshaller will use this to
create an attribute xsi:schemaLocation
. Equivalent
to setProperty(JAXB_SCHEMA_LOCATION, pValue)
.
Defaults to null, in which case the attribute isn't created.
See Also: JAXB_SCHEMA_LOCATION JMMarshallerImpl setSchemaLocation
Returns whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream)
ought to emit an
XML declaration.
Returns the controllers class implementing XMLWriter. Defaults to XMLWriterImpl.
Parameters: pEncoding Suggested encoding or null to restore the default
Sets whether XML documents generated by the controller ought to be formatted. Defaults to true.
Sets the string used as a line separator. Defaults to
DEFAULT_JAXME_INDENTATION_SEPARATOR. Equivalent to
setProperty(JAXME_INDENTATION_SEPARATOR, pStr)
.
See Also: DEFAULT_JAXME_INDENTATION_SEPARATOR JMMarshallerImpl JMMarshallerImpl
Sets the string used to indent one level. Defaults to
DEFAULT_JAXME_INDENTATION_STRING. Equivalent to
setProperty(JAXME_INDENTATION_STRING, pStr)
.
See Also: DEFAULT_JAXME_INDENTATION_STRING JMMarshallerImpl JMMarshallerImpl
Sets the schema location without namespace. The marshaller
will use this to create an attribute xsi:noNamespaceSchemaLocation
.
Equivalent to setProperty(JAXB_NO_NAMESPACE_SCHEMA_LOCATION,
pValue)
. Defaults to null, in which case the attribute isn't
created.
See Also: JAXB_NO_NAMESPACE_SCHEMA_LOCATION JMMarshallerImpl getNoNamespaceSchemaLocation
Sets the schema location. The marshaller will use this to
create an attribute xsi:schemaLocation
. Equivalent
to setProperty(JAXB_SCHEMA_LOCATION, pValue)
.
Defaults to null, in which case the attribute isn't created.
See Also: JAXB_SCHEMA_LOCATION JMMarshallerImpl getSchemaLocation
Sets whether the methods marshal(Object, Writer)
and marshal(Object, OutputStream)
ought to emit an
XML declaration.
Parameters: pClass A class implementing XMLWriterImpl or null to restore the default.