dsto.dfc.databeans.io
Interface XmlDecoder

All Known Implementing Classes:
DefaultSWTXmlCodec, XmlAliasCodec, XmlAwtCodec, XmlCollectionsCodec, XmlDataObjectCodec, XmlDateCodec, XmlDefaultDecoder, XmlEntityCodec, XmlEnumerationCodec, XmlLinkCodec, XmlMemberwiseCodec, XmlPropertyPathCodec, XmlSingletonCodec, XmlURICodec

public interface XmlDecoder

An object that can decode an XML representation into a value.

Version:
$Revision$
Author:
mpp

Method Summary
 Object decode(XmlDecodeContext context, org.jdom.Element element)
          Decode an XML representation into a value.
 

Method Detail

decode

Object decode(XmlDecodeContext context,
              org.jdom.Element element)
              throws IllegalArgumentException,
                     ClassNotFoundException
Decode an XML representation into a value.

Parameters:
context - The decode context.
element - The element to decode.
Returns:
The new object.
Throws:
IllegalArgumentException - if an error is found in the structure of the document.
ClassNotFoundException - if a referenced class cannot be found.


Copyright © 2008 Commonwealth of Australia