Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.ws.jaxme.impl.JMControllerImpl
org.apache.ws.jaxme.impl.JMMarshallerImpl
Field Summary | |
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
Fields inherited from class org.apache.ws.jaxme.impl.JMControllerImpl | |
JAXME_DATATYPE_CONVERTER , JAXME_FORMAT_DATE , JAXME_FORMAT_DATETIME , JAXME_FORMAT_TIME , JAXME_PRIVATE , eventHandler |
Fields inherited from interface javax.xml.bind.Marshaller | |
JAXB_ENCODING , JAXB_FORMATTED_OUTPUT , JAXB_NO_NAMESPACE_SCHEMA_LOCATION , JAXB_SCHEMA_LOCATION |
Method Summary | |
String |
|
boolean |
|
String |
|
String |
|
String |
|
Node |
|
Object |
|
String |
|
Class |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.apache.ws.jaxme.impl.JMControllerImpl | |
getDatatypeConverter , getDateFormat , getDateTimeFormat , getEventHandler , getJAXBContextImpl , getProperty , getTimeFormat , setDatatypeConverter , setDateFormat , setDateTimeFormat , setEventHandler , setJAXBContextImpl , setProperty , setTimeFormat |
public static final String DEFAULT_JAXB_ENCODING
Default value forMarshaller.JAXB_ENCODING
. (UTF-8 encoding)
public static final String DEFAULT_JAXME_INDENTATION_SEPARATOR
Default value forJAXME_INDENTATION_SEPARATOR
. ("\n", Line Feed)
public static final String DEFAULT_JAXME_INDENTATION_STRING
Default value forJAXME_INDENTATION_STRING
: Two blanks.
public static final String JAXME_INDENTATION_SEPARATOR
Property name for setting the String used as a line separator in the formatted output. ("jaxme.indentation.separator")
public static final String JAXME_INDENTATION_STRING
Property name for setting the String used to indent the formatted output by one level. ("jaxme.indentation.string") Defaults toDEFAULT_JAXME_INDENTATION_STRING
.
public static final String JAXME_XML_DECLARATION
Property name for choosing whether the marshalled output should contain an XML declaration. The methodsmarshal(Object,OutputStream)
andmarshal(Object,Writer)
recognize requests for XML declarations.
public static final String JAXME_XML_WRITER
Property name for a SAXContentHandler
which is able to marshal a SAX stream into a character stream. The property value is an instance ofClass
implementingXMLWriter
.
public String getEncoding()
Returns the controllers encoding; to be used in marshalling. Defaults toDEFAULT_JAXB_ENCODING
.
public boolean getIndentation()
Returns whether XML documents generated by the controller ought to be formatted. Defaults to true.
public String getIndentationSeparator()
Returns the string used as a line separator. Defaults toDEFAULT_JAXME_INDENTATION_SEPARATOR
. Equivalent togetProperty(JAXME_INDENTATION_SEPARATOR)
.
public String getIndentationString()
Returns the string used to indent one level. Defaults toDEFAULT_JAXME_INDENTATION_STRING
. Equivalent togetProperty(JAXME_INDENTATION_STRING)
.
public String getNoNamespaceSchemaLocation()
Returns the schema location. The marshaller will use this to create an attributexsi:noNamespaceSchemaLocation
. Equivalent tosetProperty(JAXB_SCHEMA_LOCATION, pValue)
. Defaults to null, in which case the attribute isn't created.
public Object getProperty(String pProperty) throws PropertyException
- Specified by:
- getProperty in interface Marshaller
- Overrides:
- getProperty in interface JMControllerImpl
public String getSchemaLocation()
Returns the schema location. The marshaller will use this to create an attributexsi:schemaLocation
. Equivalent tosetProperty(JAXB_SCHEMA_LOCATION, pValue)
. Defaults to null, in which case the attribute isn't created.
public Class getXMLWriterClass()
Returns the controllers class implementingXMLWriter
. Defaults toXMLWriterImpl
.
public boolean getXmlDeclaration()
Returns whether the methodsmarshal(Object, Writer)
andmarshal(Object, OutputStream)
ought to emit an XML declaration.
public void marshal(Object pObject, ContentHandler pHandler) throws JAXBException
- Specified by:
- marshal in interface Marshaller
public void marshal(Object pObject, Node pNode) throws JAXBException
- Specified by:
- marshal in interface Marshaller
public void marshal(Object pObject, OutputStream pStream) throws JAXBException
- Specified by:
- marshal in interface Marshaller
public void marshal(Object pObject, Result pResult) throws JAXBException
- Specified by:
- marshal in interface Marshaller
public void marshal(Object pObject, Writer pWriter) throws JAXBException
- Specified by:
- marshal in interface Marshaller
public void setEncoding(String pEncoding) throws PropertyException
Sets the controllers encoding; to be used in marshalling. Defaults toDEFAULT_JAXB_ENCODING
.
- Parameters:
pEncoding
- Suggested encoding or null to restore the default
public void setIndentation(boolean pIndentation)
Sets whether XML documents generated by the controller ought to be formatted. Defaults to true.
public void setIndentationSeparator(String pStr)
Sets the string used as a line separator. Defaults toDEFAULT_JAXME_INDENTATION_SEPARATOR
. Equivalent tosetProperty(JAXME_INDENTATION_SEPARATOR, pStr)
.
public void setIndentationString(String pStr)
Sets the string used to indent one level. Defaults toDEFAULT_JAXME_INDENTATION_STRING
. Equivalent tosetProperty(JAXME_INDENTATION_STRING, pStr)
.
public void setNoNamespaceSchemaLocation(String pValue) throws PropertyException
Sets the schema location without namespace. The marshaller will use this to create an attributexsi:noNamespaceSchemaLocation
. Equivalent tosetProperty(JAXB_NO_NAMESPACE_SCHEMA_LOCATION, pValue)
. Defaults to null, in which case the attribute isn't created.
public void setProperty(String pProperty, Object pValue) throws PropertyException
- Specified by:
- setProperty in interface Marshaller
- Overrides:
- setProperty in interface JMControllerImpl
public void setSchemaLocation(String pValue) throws PropertyException
Sets the schema location. The marshaller will use this to create an attributexsi:schemaLocation
. Equivalent tosetProperty(JAXB_SCHEMA_LOCATION, pValue)
. Defaults to null, in which case the attribute isn't created.
public void setXMLWriterClass(Class pClass) throws PropertyException
Sets the controllers class implementingXMLWriter
. Defaults toXMLWriterImpl
.
- Parameters:
pClass
- A class implementingXMLWriterImpl
or null to restore the default.
public void setXmlDeclaration(boolean pDeclaration)
Sets whether the methodsmarshal(Object, Writer)
andmarshal(Object, OutputStream)
ought to emit an XML declaration.