open class JibxMarshaller : AbstractMarshaller, InitializingBean
Implementation of the Marshaller
and Unmarshaller
interfaces for JiBX.
The typical usage will be to set the targetClass
and optionally the bindingName
property on this bean.
Author
Arjen Poutsma
Since
3.0
See Also
org.jibx.runtime.IMarshallingContextorg.jibx.runtime.IUnmarshallingContext
JibxMarshaller()
Implementation of the The typical usage will be to set the |
open fun afterPropertiesSet(): Unit |
|
open fun convertJibxException(ex: JiBXException, marshalling: Boolean): XmlMappingException
Convert the given A boolean flag is used to indicate whether this exception occurs during marshalling or unmarshalling, since JiBX itself does not make this distinction in its exception hierarchy. |
|
open fun setBindingName(bindingName: String): Unit
Set the optional binding name for this instance. |
|
open fun setDocTypeInternalSubset(docTypeInternalSubset: String): Unit
Set the internal subset Id for the DTD declaration written when marshalling. By default, this is |
|
open fun setDocTypePublicId(docTypePublicId: String): Unit
Set the public id for the DTD declaration written when marshalling. By default, this is Set either this property or |
|
open fun setDocTypeRootElementName(docTypeRootElementName: String): Unit
Set the root element name for the DTD declaration written when marshalling. By default, this is If set to a value, the system ID or public ID also need to be set. |
|
open fun setDocTypeSystemId(docTypeSystemId: String): Unit
Set the system id for the DTD declaration written when marshalling. By default, this is Set either this property or |
|
open fun setEncoding(encoding: String): Unit
Set the document encoding using for marshalling. Default is UTF-8. |
|
open fun setIndent(indent: Int): Unit
Set the number of nesting indent spaces. Default is |
|
open fun setStandalone(standalone: Boolean): Unit
Set the document standalone flag for marshalling. By default, this flag is not present. |
|
open fun setTargetClass(targetClass: Class<*>): Unit
Set the target class for this instance. Setting either this property or the If this property is set, |
|
open fun setTargetPackage(targetPackage: String): Unit
Set the target package for this instance. Setting either this property or the If |
|
open fun supports(clazz: Class<*>): Boolean |
open fun isProcessExternalEntities(): Boolean
Returns the configured value for whether XML external entities are allowed. |
|
open fun isSupportDtd(): Boolean
Whether DTD parsing is supported. |
|
fun marshal(graph: Any, result: Result): Unit
Marshals the object graph with the given root into the provided This implementation inspects the given result, and calls |
|
open fun setProcessExternalEntities(processExternalEntities: Boolean): Unit
Indicates whether external XML entities are processed when unmarshalling. Default is Note: setting this option to |
|
open fun setSupportDtd(supportDtd: Boolean): Unit
Indicates whether DTD parsing should be supported. Default is |
|
fun unmarshal(source: Source): Any
Unmarshals the given provided This implementation inspects the given result, and calls |