public class VisADPersistence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_AMOUNT
attribute for scaled unit amount
|
static java.lang.String |
ATTR_NAME
attribute for scaled unit name
|
Modifier and Type | Method and Description |
---|---|
static visad.Unit |
createUnit(XmlEncoder e,
org.w3c.dom.Element o)
Create a unit from the XML
|
static java.lang.Class |
getUnitClass(visad.Unit unit)
Get the Unit class
|
static void |
init(XmlEncoder encoder)
Initialize a new VisADPersistence with the encoder
|
static void |
main(java.lang.String[] args)
Test by running java ucar.visad.VisADPersistence
|
public static final java.lang.String ATTR_AMOUNT
public static final java.lang.String ATTR_NAME
public static void init(XmlEncoder encoder)
encoder
- encoder to uspublic static java.lang.Class getUnitClass(visad.Unit unit)
unit
- unitpublic static visad.Unit createUnit(XmlEncoder e, org.w3c.dom.Element o) throws visad.VisADException
e
- the encodero
- the XML elementvisad.VisADException
- problem creating the unitpublic static void main(java.lang.String[] args)
args
- arguments