Package xal.model.xml

Class ProbeXmlWriter

java.lang.Object
xal.model.xml.ProbeXmlWriter

public class ProbeXmlWriter extends Object
Saves probe instances to an XML file.
Version:
$id:
Author:
Craig McChesney
  • Constructor Details

    • ProbeXmlWriter

      public ProbeXmlWriter()
  • Method Details

    • writeXml

      public static void writeXml(Probe<?> aProbe, String fileURI) throws IOException
      Writes supplied Probe to the specified XML file.
      Parameters:
      aProbe - Probe to output
      fileURI - String URI of output file
      Throws:
      IOException - error writing to fileURI
    • documentForProbe

      public static Document documentForProbe(Probe<?> probe) throws IOException
      Returns a DOM document for the supplied probe.
      Parameters:
      probe - probe whose state will be recorded to a document
      Returns:
      a DOM for the supplied lattice
      Throws:
      IOException
    • writeProbeToDoc

      public XmlDataAdaptor writeProbeToDoc(Probe<?> aProbe) throws IOException
      Writes supplied Probe to the specified XML file.
      Parameters:
      aProbe - Probe to write to XML file
      Throws:
      IOException - error writing to fileURI