Package com.ibm.wsdl.extensions.mime
Class MIMEMimeXmlSerializer
java.lang.Object
com.ibm.wsdl.extensions.mime.MIMEMimeXmlSerializer
- All Implemented Interfaces:
Serializable
,ExtensionDeserializer
,ExtensionSerializer
public class MIMEMimeXmlSerializer
extends Object
implements ExtensionSerializer, ExtensionDeserializer, Serializable
- Author:
- Matthew J. Duftler (duftler@us.ibm.com)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
marshall
(Class parentType, QName elementType, ExtensibilityElement extension, PrintWriter pw, Definition def, ExtensionRegistry extReg) This method serializes extension-specific instances of ExtensibilityElement into the PrintWriter.unmarshall
(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) This method deserializes elements into instances of classes which implement the ExtensibilityElement interface.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
MIMEMimeXmlSerializer
public MIMEMimeXmlSerializer()
-
-
Method Details
-
marshall
public void marshall(Class parentType, QName elementType, ExtensibilityElement extension, PrintWriter pw, Definition def, ExtensionRegistry extReg) throws WSDLException Description copied from interface:ExtensionSerializer
This method serializes extension-specific instances of ExtensibilityElement into the PrintWriter.- Specified by:
marshall
in interfaceExtensionSerializer
- Parameters:
parentType
- a class object indicating where in the WSDL definition this extension was encountered. For example, javax.wsdl.Binding.class would be used to indicate this extensibility element was found in the list of extensibility elements belonging to a javax.wsdl.Binding.elementType
- the qname of the extensibility elementextension
- the extensibility element to serializedef
- the definition this extensibility element was encountered inextReg
- the ExtensionRegistry to use (if needed again)- Throws:
WSDLException
-
unmarshall
public ExtensibilityElement unmarshall(Class parentType, QName elementType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException Description copied from interface:ExtensionDeserializer
This method deserializes elements into instances of classes which implement the ExtensibilityElement interface. The return value should be explicitly cast to the more-specific implementing type.- Specified by:
unmarshall
in interfaceExtensionDeserializer
- Parameters:
parentType
- a class object indicating where in the WSDL document this extensibility element was encountered. For example, javax.wsdl.Binding.class would be used to indicate this element was encountered as an immediate child of a <wsdl:binding> element.elementType
- the qname of the extensibility elementel
- the extensibility element to deserializedef
- the definition this extensibility element was encountered inextReg
- the ExtensionRegistry to use (if needed again)- Throws:
WSDLException
-