ucar.nc2.dt.grid
Class GridDatasetInfo

java.lang.Object
  extended by ucar.nc2.dt.grid.GridDatasetInfo

public class GridDatasetInfo
extends Object

A helper class to GridDataset; creates a GridDataset XML document. This is a candidate for the XML representation of the Grid SDT. Used to create form for NetcdfSubsetService for Grids.

Author:
caron

Constructor Summary
GridDatasetInfo(GridDataset gds, String path)
           
 
Method Summary
static void main(String[] args)
          debug
 org.jdom.Document makeDatasetDescription()
          Create the "Dataset Description" XML document from this GridDataset
 org.jdom.Document makeGridForm()
          Create the "Grid Form" XML document from this GridDataset.
 String writeXML(org.jdom.Document doc)
          Write the information as an XML document
 void writeXML(org.jdom.Document doc, OutputStream os)
          Write the information as an XML document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridDatasetInfo

public GridDatasetInfo(GridDataset gds,
                       String path)
Method Detail

writeXML

public String writeXML(org.jdom.Document doc)
Write the information as an XML document

Parameters:
doc - write XML for this Document
Returns:
String output

writeXML

public void writeXML(org.jdom.Document doc,
                     OutputStream os)
              throws IOException
Write the information as an XML document

Parameters:
doc - write XML for this Document
os - write to this output stream
Throws:
IOException - on write error

makeDatasetDescription

public org.jdom.Document makeDatasetDescription()
Create the "Dataset Description" XML document from this GridDataset

Returns:
a JDOM Document

makeGridForm

public org.jdom.Document makeGridForm()
Create the "Grid Form" XML document from this GridDataset. Used to create the Grid HTML form, cause I dont know XSLT

Returns:
the JDOM Document

main

public static void main(String[] args)
                 throws IOException
debug

Parameters:
args - ignored
Throws:
IOException - on io error


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.