com.ail.core.xmlbinding
Interface XMLBinding

All Known Implementing Classes:
Core

public interface XMLBinding

This interface describes the contract between the Core class and the XML binding framework.

Version:
$Revision: 1.3 $

Method Summary
<T> T
fromXML(java.lang.Class<T> clazz, XMLString xml)
          Convert an XMLString into an object of the Type that it represents.
 XMLString toXML(java.lang.Object type)
          Convert a type into its XML representation.
 

Method Detail

fromXML

<T> T fromXML(java.lang.Class<T> clazz,
              XMLString xml)
          throws XMLException
Convert an XMLString into an object of the Type that it represents.

Parameters:
clazz - The class represented by the xml argument.
xml - The XML representation of the object to be unmarshalled.
Returns:
An instance of clazz representing xml
Throws:
XMLException - If there is a problem parsing the XML
VersionException - If the request version is not defined.

toXML

XMLString toXML(java.lang.Object type)
Convert a type into its XML representation.

Parameters:
type - The object to be marshalled
Throws:
VersionException - If the requested version either is not defined.