gov.sns.tools.xml
Class XmlTableIO

java.lang.Object
  |
  +--gov.sns.tools.xml.XmlTableIO

public class XmlTableIO
extends java.lang.Object

Static methods for reading and writing tables from/to XML files.


Constructor Summary
protected XmlTableIO()
          Creates a new instance of XmlTableReader
 
Method Summary
static void readTableGroupFromFile(EditContext editContext, java.lang.String tableGroup, java.io.File file)
          Read the table group from the specified file into editContext without XML validation.
static void readTableGroupFromUrl(EditContext editContext, java.lang.String tableGroup, java.lang.String urlSpec)
          Read the table group from the URL file into editContext without XML validation.
static void readTableGroupFromUrl(EditContext editContext, java.lang.String tableGroup, java.lang.String urlSpec, boolean isValidating)
          Read the table group from the URL file into editContext with the specified XML validation flag.
static void writeTableGroupToFile(EditContext editContext, java.lang.String group, java.io.File file)
          Write all tables associated with the specified group in editContext to an XML file.
static void writeTableGroupToUrl(EditContext editContext, java.lang.String group, java.lang.String urlSpec)
          Write all tables associated with the specified group in editContext to an XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTableIO

protected XmlTableIO()
Creates a new instance of XmlTableReader

Method Detail

readTableGroupFromFile

public static void readTableGroupFromFile(EditContext editContext,
                                          java.lang.String tableGroup,
                                          java.io.File file)
                                   throws UrlTool.FilePathException
Read the table group from the specified file into editContext without XML validation.

UrlTool.FilePathException

readTableGroupFromUrl

public static void readTableGroupFromUrl(EditContext editContext,
                                         java.lang.String tableGroup,
                                         java.lang.String urlSpec)
Read the table group from the URL file into editContext without XML validation.


readTableGroupFromUrl

public static void readTableGroupFromUrl(EditContext editContext,
                                         java.lang.String tableGroup,
                                         java.lang.String urlSpec,
                                         boolean isValidating)
Read the table group from the URL file into editContext with the specified XML validation flag.


writeTableGroupToFile

public static void writeTableGroupToFile(EditContext editContext,
                                         java.lang.String group,
                                         java.io.File file)
                                  throws UrlTool.FilePathException
Write all tables associated with the specified group in editContext to an XML file.

UrlTool.FilePathException

writeTableGroupToUrl

public static void writeTableGroupToUrl(EditContext editContext,
                                        java.lang.String group,
                                        java.lang.String urlSpec)
Write all tables associated with the specified group in editContext to an XML file.