org.xeril.xml
Class XmlMapperDate

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

public class XmlMapperDate
extends java.lang.Object
implements XmlMapper

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


Constructor Summary
XmlMapperDate()
           
 
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

XmlMapperDate

public XmlMapperDate()
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