com.wingfoot.soap.encoding
Interface SerializerDeserializer

All Known Implementing Classes:
BeanSerializer

public interface SerializerDeserializer


Method Summary
 void marshall(com.wingfoot.soap.encoding.XMLWriter xmlwriter, java.lang.String parameterName, java.lang.Object objectToMarshall, TypeMappingRegistry registry, BaseSerializer serializer)
          Converts a parameter specified by the user using Envelope.setBody(String, Object) to XML.
 void unmarshall(com.wingfoot.soap.encoding.XmlParser parser, TypeMappingRegistry registry, java.lang.Object classInstance, BaseSerializer deserializer)
          Abstract method to convert XML parameter to a Java object.
 

Method Detail

marshall

public void marshall(com.wingfoot.soap.encoding.XMLWriter xmlwriter,
                     java.lang.String parameterName,
                     java.lang.Object objectToMarshall,
                     TypeMappingRegistry registry,
                     BaseSerializer serializer)
              throws java.lang.Exception
Converts a parameter specified by the user using Envelope.setBody(String, Object) to XML.
Parameters:
xmlwriter - instance of XMLWriter to aid in writing XML.
parameterName - the name of the parameter as specified by the user.
objectToMarshall - the value of the parameter as specified by the user.
registry - the TypeMappingRegistry specified by the user in the Envelope.
serializer - instance of BaseSerializer. Custom serializers can call the serialize method in BaseSerializer to convert primitive parameters to XML..
Throws:
java.lang.Exception - if any error occurs during XML writing or during serialization.

unmarshall

public void unmarshall(com.wingfoot.soap.encoding.XmlParser parser,
                       TypeMappingRegistry registry,
                       java.lang.Object classInstance,
                       BaseSerializer deserializer)
                throws java.lang.Exception
Abstract method to convert XML parameter to a Java object.
Parameters:
parser - instance of XmlParser to parse the XML.
registry - TypeMappingRegistry specified by the user in the Envelope.
classInstance - an instance of the class to deserialize to.
deserializer - instance of BaseSerializer; custom deserializers can use the deserialize method in this BaseSerializer to deserialize primitive data types.
Throws:
java.lang.Exception - if any error occurs during deserialization.
Since:
0.90


Copyright(c) Wingfoot Software (www.wingfoot.com). All Rights Reserved.

KXML is a XML parser by Lutris Technologies