Package de.timroes.axmlrpc.serializer
Class DateTimeSerializer
- java.lang.Object
-
- de.timroes.axmlrpc.serializer.DateTimeSerializer
-
- All Implemented Interfaces:
Serializer
public class DateTimeSerializer extends java.lang.Object implements Serializer
- Author:
- timroes
-
-
Constructor Summary
Constructors Constructor Description DateTimeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdeserialize(java.lang.String dateStr)java.lang.Objectdeserialize(org.w3c.dom.Element content)This method takes an xml type element and deserialize it to an object.XmlElementserialize(java.lang.Object object)This method takes an object and returns a representation as a string containing the right xml type tag.
-
-
-
Method Detail
-
deserialize
public java.lang.Object deserialize(org.w3c.dom.Element content) throws XMLRPCExceptionDescription copied from interface:SerializerThis method takes an xml type element and deserialize it to an object.- Specified by:
deserializein interfaceSerializer- Parameters:
content- Must be an xml element of a specific type.- Returns:
- The deserialized content.
- Throws:
XMLRPCException- Will be thrown whenervt the deserialization fails.
-
deserialize
public java.lang.Object deserialize(java.lang.String dateStr) throws XMLRPCException- Throws:
XMLRPCException
-
serialize
public XmlElement serialize(java.lang.Object object)
Description copied from interface:SerializerThis method takes an object and returns a representation as a string containing the right xml type tag. The returning string must be useable within a value tag.- Specified by:
serializein interfaceSerializer- Parameters:
object- The object that should be serialized.- Returns:
- An XmlElement representation of the object.
-
-