Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.dods.store.doml
Class DOMLFactory  view DOMLFactory download DOMLFactory.java

java.lang.Object
  extended bycom.lutris.dods.store.doml.DOMLFactory

public class DOMLFactory
extends java.lang.Object

This class is mostly an example use of the com.lutris.dods.project.doml package. It contains just a main method, which can be used for converting an existing DOA file into a DOML file, or a DOML file of any format into a nicely humanly-readable, indented, but possibly incorrect DOML file. This file refers to both the old style dods package dods.data and the new package com.lutris.dods.store.doa


Constructor Summary
DOMLFactory()
           
 
Method Summary
static void main(java.lang.String[] args)
          This method is mostly an example use of the com.lutris.dods.project.doml package, which shows how to convert an existing DOA file into a DOML file, or a DOML file of any format into a nicely humanly-readable, indented, but possibly incorrect DOML file.
private static void printWarnings(DOMLWarning[] warnings)
           
static com.lutris.dods.store.doa.DODSProject readDOML(java.io.File file)
           
private static void writeDOA(com.lutris.dods.store.doa.DODSProject project, java.io.File outFile)
           
static void writeDOML(com.lutris.dods.store.doa.DODSProject project, java.io.File outFile, boolean indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMLFactory

public DOMLFactory()
Method Detail

printWarnings

private static void printWarnings(DOMLWarning[] warnings)

readDOML

public static com.lutris.dods.store.doa.DODSProject readDOML(java.io.File file)

writeDOA

private static void writeDOA(com.lutris.dods.store.doa.DODSProject project,
                             java.io.File outFile)

writeDOML

public static void writeDOML(com.lutris.dods.store.doa.DODSProject project,
                             java.io.File outFile,
                             boolean indent)

main

public static void main(java.lang.String[] args)
This method is mostly an example use of the com.lutris.dods.project.doml package, which shows how to convert an existing DOA file into a DOML file, or a DOML file of any format into a nicely humanly-readable, indented, but possibly incorrect DOML file.

Usage:

java com.lutris.dods.project.doml.DOMLFactory file.doa
converts a DOA file into a DOML file of the same name
java com.lutris.dods.project.doml.DOMLFactory -i file.doml file2.doml
converts a DOML file into a humanly readable DOML file, with possibly illegal DOML.DTD structure.
java com.lutris.dods.project.doml.DOMLFactory file.doml
converts a DOML file into a DOA file.