org.xeril.xml
Class XmlMapperURL

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

public class XmlMapperURL
extends java.lang.Object
implements XmlMapper

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


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

XmlMapperURL

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