com.wingfoot.soap.encoding
Class BeanSerializer
java.lang.Object
|
+--com.wingfoot.soap.encoding.BeanSerializer
- All Implemented Interfaces:
- SerializerDeserializer
- public class BeanSerializer
- extends java.lang.Object
- implements SerializerDeserializer
Converts instances of WSerializable to XML
and vice-versa.
- Since:
- 0.90
Method Summary |
void |
marshall(com.wingfoot.soap.encoding.XMLWriter xmlwriter,
java.lang.String parameterName,
java.lang.Object o,
TypeMappingRegistry registry,
BaseSerializer serializer)
Converts a parameter - the user specified using
Envelope.setBody(String, Object) - that is an instance
of WSerializable to XML. |
void |
unmarshall(com.wingfoot.soap.encoding.XmlParser parser,
TypeMappingRegistry registry,
java.lang.Object classInstance,
BaseSerializer deserializer)
Converts a parameter (represented as XML), that
is an instance of WSerializable to XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanSerializer
public BeanSerializer()
marshall
public void marshall(com.wingfoot.soap.encoding.XMLWriter xmlwriter,
java.lang.String parameterName,
java.lang.Object o,
TypeMappingRegistry registry,
BaseSerializer serializer)
throws java.lang.Exception
- Converts a parameter - the user specified using
Envelope.setBody(String, Object) - that is an instance
of WSerializable to XML.
- Specified by:
marshall
in interface SerializerDeserializer
- Parameters:
xmlwriter
- XMLWriter to aid in writing
the XML.parameterName
- the name of the parameter as
specified by the user.o
- instance of WSerializable, representing
the object to convert to XML.registry
- the TypeMappingRegistry the user
specified in Envelope to map a class to its serializer
and deserializer class.serialize
- an instance of BaseSerializer. Custom
serializers can use the serialize method in BaseSerializer
to serialize primitive data types.- Throws:
java.lang.Exception
- if any error occurs during writing the
XML or during serialization process.- Since:
- 0.90
unmarshall
public void unmarshall(com.wingfoot.soap.encoding.XmlParser parser,
TypeMappingRegistry registry,
java.lang.Object classInstance,
BaseSerializer deserializer)
throws java.lang.Exception
- Converts a parameter (represented as XML), that
is an instance of WSerializable to XML.
- Specified by:
unmarshall
in interface SerializerDeserializer
- Parameters:
parser
- XmlParser to parser the XML.registry
- the TypeMappingRegistry the user specified in
Envelope to map a class to its serializer and
deserializer class.classInstance
- an instance of WSerializable
that is accessible to the user as a return parameter.deserialize
- an instance of BaseSerializer. Custom
deserializers can use the deserialize method in BaseSerializer
to deserialize primitive data types.- Throws:
java.lang.Exception
- if any error occurs during writing the
XML or during serialization process.- Since:
- 0.90
Copyright(c) Wingfoot Software (www.wingfoot.com). All Rights Reserved.
KXML is a XML parser by Lutris Technologies