info.joseluismartin.xml
Interface XMLMapper

All Known Implementing Classes:
JibXXMLMapper

public interface XMLMapper

Interface to marshal/unmarshall java objects to/from xml. Use to hide the xml binding framework.

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 Object deserialize(String xml)
          Deserialize a xml string to an java object
 String serialize(Object obj)
          Serialize an object to xml string
 

Method Detail

serialize

String serialize(Object obj)
Serialize an object to xml string

Parameters:
obj - the object to serialize
Returns:
xml string representation of obj.

deserialize

Object deserialize(String xml)
Deserialize a xml string to an java object

Parameters:
xml - to deserialize
Returns:
a java object.


Copyright © 2012 JDAL. All Rights Reserved.