Package ucar.visad

Class VisADPersistence

java.lang.Object
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 Details

  • Method Details

    • 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