Examples of IXMLWriter


Examples of jSimMacs.fileIO.writer.XML.IXMLWriter

   * @param projectLocation
   */
  public void saveRemoteProject(ProjectLocation projectLocation) {
    if (projectLocation == ProjectLocation.SSH) {
      // RemoteProject remoteProject = (RemoteProject) project;
      IXMLWriter rProjectWriter = new RProjectSAXWriter(remoteProjects);
      try {
        rProjectWriter.writeXML(JSimConstants.REMOTEPROJECTFILE);
      } catch (Exception e) {
        JOptionPane.showMessageDialog(frame, e.getMessage(),
            "Remote error", JOptionPane.ERROR_MESSAGE);
        e.printStackTrace();
      }
View Full Code Here

Examples of jSimMacs.fileIO.writer.XML.IXMLWriter

    ProjectType type;
    try {
      type = findType(JSimConstants.EMPTYPROJECTSTRING);

      project.setType(type);
      IXMLWriter projectWriter = new ProjectSAXWriter(project);

      projectWriter.writeXML(projectFile.getPath());
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(),
          "Create error", JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

Examples of jSimMacs.fileIO.writer.XML.IXMLWriter

      projectFile = handler
          .createTempPath(rmProject.getPath() + rmProject.getName()
              + "/" + JSimConstants.PROJECTCONFFILE);
      projectFile += JSimConstants.PROJECTCONFFILE;
    }
    IXMLWriter projectWriter = new ProjectSAXWriter(project);
    try {
      projectWriter.writeXML(projectFile);
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(), "Save error",
          JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

Examples of jSimMacs.fileIO.writer.XML.IXMLWriter

      projectFile = handler
          .createTempPath(rmProject.getPath() + rmProject.getName()
              + "/" + JSimConstants.PROJECTCONFFILE);
      projectFile += JSimConstants.PROJECTCONFFILE;
    }
    IXMLWriter projectWriter = new ProjectSettingSAXWriter(project);
    try {
      projectWriter.writeXML(projectFile);
    } catch (Exception e) {
      JOptionPane.showMessageDialog(frame, e.getMessage(), "Save error",
          JOptionPane.ERROR_MESSAGE);
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     * @throws IOException
     * @throws RatException
     */
    public static ClaimStatistic report(final IReportable container, final Writer out,
            ReportConfiguration pConfiguration) throws IOException, RatException {
        IXmlWriter writer = new XmlWriter(out);
        final ClaimStatistic statistic = new ClaimStatistic();
        RatReport report = XmlReportFactory.createStandardReport(writer, statistic, pConfiguration);
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
        return statistic;
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     * @throws IOException
     * @throws RatReportFailedException
     */
    public static void report(final IReportable container, final Writer out, final IHeaderMatcher matcher,
             final ILicenseFamily[] approvedLicenseNames) throws IOException, RatReportFailedException {
        IXmlWriter writer = new XmlWriter(out);
        RatReport report = XmlReportFactory.createStandardReport(writer, matcher, approvedLicenseNames)
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     * @throws IOException
     * @throws RatException
     */
    public static ClaimStatistic report(final IReportable container, final Writer out,
            ReportConfiguration pConfiguration) throws IOException, RatException {
        IXmlWriter writer = new XmlWriter(out);
        final ClaimStatistic statistic = new ClaimStatistic();
        RatReport report = XmlReportFactory.createStandardReport(writer, statistic, pConfiguration);
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
        return statistic;
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     *
     * @return the currently collected numerical statistics.
     */
    public static ClaimStatistic report(final IReportable container, final Writer out,
            ReportConfiguration pConfiguration) throws IOException, RatException {
        IXmlWriter writer = new XmlWriter(out);
        final ClaimStatistic statistic = new ClaimStatistic();
        RatReport report = XmlReportFactory.createStandardReport(writer, statistic, pConfiguration);
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
        return statistic;
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     * @throws IOException
     * @throws RatException
     */
    public static ClaimStatistic report(final IReportable container, final Writer out,
            ReportConfiguration pConfiguration) throws IOException, RatException {
        IXmlWriter writer = new XmlWriter(out);
        final ClaimStatistic statistic = new ClaimStatistic();
        RatReport report = XmlReportFactory.createStandardReport(writer, statistic, pConfiguration);
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
        return statistic;
    }
View Full Code Here

Examples of org.apache.rat.report.xml.writer.IXmlWriter

     * @throws IOException
     * @throws RatException
     */
    public static ClaimStatistic report(final IReportable container, final Writer out,
            ReportConfiguration pConfiguration) throws IOException, RatException {
        IXmlWriter writer = new XmlWriter(out);
        final ClaimStatistic statistic = new ClaimStatistic();
        RatReport report = XmlReportFactory.createStandardReport(writer, statistic, pConfiguration);
        report.startReport();
        container.run(report);
        report.endReport();
        writer.closeDocument();
        return statistic;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.