thredds.catalog.parser.jdom
Class DqcConvert2

java.lang.Object
  extended by thredds.catalog.parser.jdom.DqcConvert2
All Implemented Interfaces:
DqcConvertIF

public class DqcConvert2
extends Object
implements DqcConvertIF

DQC Converter of DOM to object model. Reads DQC.xml files, constructs object representation.

Author:
John Caron

Field Summary
static boolean debugDBurl
           
static boolean debugURL
           
static boolean debugXML
           
static boolean debugXMLopen
           
protected static org.jdom.Namespace defNS
           
static boolean showParsedXML
           
static boolean showXMLoutput
           
protected static org.jdom.Namespace xlinkNS
           
 
Constructor Summary
DqcConvert2()
           
 
Method Summary
 org.jdom.Document makeQC(QueryCapability qc)
           
 QueryCapability parseXML(DqcFactory fac, org.jdom.Document jdomDoc, URI uri)
          Create an QueryCapability from an XML document at a named URL.
 void writeXML(QueryCapability qc, OutputStream os)
          Write the catalog as an XML document to the specified stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugURL

public static boolean debugURL

debugXML

public static boolean debugXML

debugDBurl

public static boolean debugDBurl

debugXMLopen

public static boolean debugXMLopen

showParsedXML

public static boolean showParsedXML

showXMLoutput

public static boolean showXMLoutput

defNS

protected static final org.jdom.Namespace defNS

xlinkNS

protected static final org.jdom.Namespace xlinkNS
Constructor Detail

DqcConvert2

public DqcConvert2()
Method Detail

parseXML

public QueryCapability parseXML(DqcFactory fac,
                                org.jdom.Document jdomDoc,
                                URI uri)
                         throws IOException
Create an QueryCapability from an XML document at a named URL.

Specified by:
parseXML in interface DqcConvertIF
Parameters:
uri - : the URI that the XML doc is at.
Returns:
an QueryCapability object
Throws:
IOException

makeQC

public org.jdom.Document makeQC(QueryCapability qc)

writeXML

public void writeXML(QueryCapability qc,
                     OutputStream os)
              throws IOException
Write the catalog as an XML document to the specified stream.

Specified by:
writeXML in interface DqcConvertIF
Parameters:
qc - write this QueryCapability
os - write to this OutputStream
Throws:
IOException


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