org.xeril.xml
Class XmlMapperDateTime

java.lang.Object
  |
  +--org.xeril.xml.XmlMapperDateTime
All Implemented Interfaces:
XmlMapper

public class XmlMapperDateTime
extends java.lang.Object
implements XmlMapper

This class is the implementation of the XmlMapper interface for a Date/Time object. Basically a Date will be represented as MM/DD/YYYY hh:mm:ss in XML (and not as a Date object)


Constructor Summary
XmlMapperDateTime()
           
 
Method Summary
 java.lang.String map(java.lang.Object o)
          Maps an object to its XML representation (which is a String)
 java.lang.Object unmap(java.lang.String s)
          Unmaps an object from its XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMapperDateTime

public XmlMapperDateTime()
Method Detail

map

public java.lang.String map(java.lang.Object o)
                     throws XmlMapperException
Maps an object to its XML representation (which is a String)

Specified by:
map in interface XmlMapper
Parameters:
o - the object to map
Returns:
the xml representation of the object

unmap

public java.lang.Object unmap(java.lang.String s)
                       throws XmlMapperException
Unmaps an object from its XML representation.

Specified by:
unmap in interface XmlMapper
Parameters:
s - the xml representation of the object
Returns:
the object rebuilt
Throws:
XmlMapperException - when the unmmap operation is impossible