ucar.visad
Class VisADPersistence

java.lang.Object
  extended by ucar.visad.VisADPersistence

public class VisADPersistence
extends Object

A class for supporting XML delegates for VisAD objects.

Version:
$Revision: 1.24 $ $Date: 2007/07/19 14:06:44 $
Author:
MetApps Development Team

Field Summary
static String ATTR_AMOUNT
          attribute for scaled unit amount
static String ATTR_NAME
          attribute for scaled unit name
 
Method Summary
static Unit createUnit(XmlEncoder e, Element o)
          Create a unit from the XML
static Class getUnitClass(Unit unit)
          Get the Unit class
static void init(XmlEncoder encoder)
          Initialize a new VisADPersistence with the encoder
static void main(String[] args)
          Test by running java ucar.visad.VisADPersistence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_AMOUNT

public static final String ATTR_AMOUNT
attribute for scaled unit amount

See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
attribute for scaled unit name

See Also:
Constant Field Values
Method Detail

init

public static void init(XmlEncoder encoder)
Initialize a new VisADPersistence with the encoder

Parameters:
encoder - encoder to us

getUnitClass

public static Class getUnitClass(Unit unit)
Get the Unit class

Parameters:
unit - unit
Returns:
the class

createUnit

public static Unit createUnit(XmlEncoder e,
                              Element o)
                       throws VisADException
Create a unit from the XML

Parameters:
e - the encoder
o - the XML element
Returns:
the unit
Throws:
VisADException - problem creating the unit

main

public static void main(String[] args)
Test by running java ucar.visad.VisADPersistence

Parameters:
args - arguments