common-util

local.tomas.common.xml
Interface XMLSerializable


public interface XMLSerializable

Implement this interface to do your own object to XML conversion and vice versa.

Author:
Teubner

Method Summary
 void setFromXML(String name, Object obj)
          Set object's property name.
 void streamToXML(XMLOutputStream stream)
          Called to output the description of this object.
 

Method Detail

setFromXML

void setFromXML(String name,
                Object obj)
                throws XMLException
Set object's property name.

Parameters:
name - - property name
obj - - value to set
Throws:
XMLException

streamToXML

void streamToXML(XMLOutputStream stream)
                 throws XMLException
Called to output the description of this object.

Parameters:
stream - - XML output stream
Throws:
XMLException

common-util

Copyright © 2007 null. All Rights Reserved.