Package ucar.unidata.xml
Class XmlDelegateImpl
java.lang.Object
ucar.unidata.xml.XmlDelegateImpl
- All Implemented Interfaces:
XmlDelegate
A siomple implementation of the
XmlDelegate
interface. By default
it turns around and tells the encoder to create the element and to create the object.- Version:
- $Revision: 1.5 $Date: 2005/05/13 18:33:53 $
- Author:
- Metapps development team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateElement
(XmlEncoder encoder, Object object) Create the xml element for the given object.createObject
(XmlEncoder encoder, Element element) Create the Object defined by the given xml element.
-
Constructor Details
-
XmlDelegateImpl
public XmlDelegateImpl()Do nothing ctor.
-
-
Method Details
-
createElement
Create the xml element for the given object.- Specified by:
createElement
in interfaceXmlDelegate
- Parameters:
encoder
- The XmlEncoder that is calling this method.object
- The Object to encode.- Returns:
- The xml element that defines the given object.
-
createObject
Create the Object defined by the given xml element.- Specified by:
createObject
in interfaceXmlDelegate
- Parameters:
encoder
- The XmlEncoder that is calling this method.element
- The xml that defines the object.- Returns:
- The Object defined by the xml.
-