ucar.unidata.view.sounding
Class ParcelMode.Factory

java.lang.Object
  extended by ucar.unidata.view.sounding.ParcelMode.Factory
All Implemented Interfaces:
XmlObjectFactory
Enclosing class:
ParcelMode

public static class ParcelMode.Factory
extends Object
implements XmlObjectFactory

Factory class for decoding an XML element into an instance of the enclosing class.


Constructor Summary
ParcelMode.Factory()
          Constructs from nothing.
 
Method Summary
 Object getObject(XmlEncoder encoder, Element elt)
          Returns an instance of the enclosing class corresponding to an XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParcelMode.Factory

public ParcelMode.Factory()
Constructs from nothing. Necessary for factory creation by XmlPersistable.

Method Detail

getObject

public Object getObject(XmlEncoder encoder,
                        Element elt)
Returns an instance of the enclosing class corresponding to an XML element.

Specified by:
getObject in interface XmlObjectFactory
Parameters:
encoder - The XML encoder.
elt - The XML element to be decoded.
Returns:
The object corresponding to the XML element.
Throws:
IllegalArgumentException - if the element can't be decoded.