Package ucar.visad
Class VisADPersistence
java.lang.Object
ucar.visad.VisADPersistence
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Unit
createUnit
(XmlEncoder e, Element o) Create a unit from the XMLstatic Class
getUnitClass
(Unit unit) Get the Unit classstatic void
init
(XmlEncoder encoder) Initialize a new VisADPersistence with the encoderstatic void
Test by running java ucar.visad.VisADPersistence
-
Field Details
-
ATTR_AMOUNT
attribute for scaled unit amount- See Also:
-
ATTR_NAME
attribute for scaled unit name- See Also:
-
-
Method Details
-
init
Initialize a new VisADPersistence with the encoder- Parameters:
encoder
- encoder to us
-
getUnitClass
Get the Unit class- Parameters:
unit
- unit- Returns:
- the class
-
createUnit
Create a unit from the XML- Parameters:
e
- the encodero
- the XML element- Returns:
- the unit
- Throws:
VisADException
- problem creating the unit
-
main
Test by running java ucar.visad.VisADPersistence- Parameters:
args
- arguments
-