org.xeril.xml
Class XmlMapperFile

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

public class XmlMapperFile
extends java.lang.Object
implements XmlMapper

This class is the implementation of the XmlMapper interface for a File object.


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

XmlMapperFile

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