Class XMLResultsReader

java.lang.Object
common.xml.XMLResultsReader
All Implemented Interfaces:
XMLResultsConstants

public class XMLResultsReader extends Object implements XMLResultsConstants

Title: XML Results Reader

Description: Reads stored results information from an XML file. This class is designed to work both with XMLResultsWriter and with engine's generated output files. Obviously the first one will provide much more informations.

Author:
Bertoli Marco Date: 3-ott-2005 Time: 12.27.00
  • Constructor Details

    • XMLResultsReader

      public XMLResultsReader()
  • Method Details

    • loadGuiModel

      public static void loadGuiModel(StoredResultsModel model, File archiveName)
      Loads stored GUI results into specified StoredResultsModel
      Parameters:
      model - CommonModel where all loaded informations should be stored
      archiveName - name of the archive to be opened
    • loadModel

      public static void loadModel(StoredResultsModel model, File archiveName)
      Loads stored engine results into specified StoredResultsModel
      Parameters:
      model - CommonModel where all loaded informations should be stored
      archiveName - name of the archive to be opened
    • parseXML

      public static void parseXML(Document xml, MeasureDefinition model)
      Parses given XMLResultsWriter or engine's generated output XML Document.
      Parameters:
      xml - Document to be parsed
      model - data model to be elaborated
    • parseXML

      public static void parseXML(Element root, MeasureDefinition model)
      Parses given XMLResultsWriter or engine's generated output XML Document.
      Parameters:
      root - xml document root to be parsed
      model - data model to be elaborated