Package xal.model.xml
Class ProbeXmlWriter
java.lang.Object
xal.model.xml.ProbeXmlWriter
Saves probe instances to an XML file.
- Version:
- $id:
- Author:
- Craig McChesney
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Document
documentForProbe
(Probe<?> probe) Returns a DOM document for the supplied probe.writeProbeToDoc
(Probe<?> aProbe) Writes suppliedProbe
to the specified XML file.static void
Writes suppliedProbe
to the specified XML file.
-
Constructor Details
-
ProbeXmlWriter
public ProbeXmlWriter()
-
-
Method Details
-
writeXml
Writes suppliedProbe
to the specified XML file.- Parameters:
aProbe
-Probe
to outputfileURI
- String URI of output file- Throws:
IOException
- error writing to fileURI
-
documentForProbe
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
Writes suppliedProbe
to the specified XML file.- Parameters:
aProbe
-Probe
to write to XML file- Throws:
IOException
- error writing to fileURI
-