Package xal.tools.xml

Class XmlTableIO

java.lang.Object
xal.tools.xml.XmlTableIO

public class XmlTableIO extends Object
Static methods for reading and writing tables from/to XML files.
Author:
tap
  • Constructor Details

    • XmlTableIO

      protected XmlTableIO()
      Creates a new instance of XmlTableReader
  • Method Details

    • readTableGroupFromFile

      public static void readTableGroupFromFile(EditContext editContext, String tableGroup, File file) throws URLUtil.FilePathException
      Read the table group from the specified file into editContext without XML validation.
      Throws:
      URLUtil.FilePathException
    • readTableGroupFromUrl

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

      public static void readTableGroupFromUrl(EditContext editContext, String tableGroup, 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, String group, File file) throws URLUtil.FilePathException
      Write all tables associated with the specified group in editContext to an XML file.
      Throws:
      URLUtil.FilePathException
    • writeTableGroupToUrl

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