Examples of XMLFile


Examples of com.qspin.qtaste.io.XMLFile

  public void loadXMLFile(String fileName) {
    try {
      m_TestRequirementModel.removeTableModelListener(tableListener);
      m_TestRequirementTable.getColumnModel().removeColumnModelListener(m_TableColumnModelListener);
      XMLFile xmlFile = new XMLFile(fileName);
      m_TestRequirementModel.setRowCount(0);
      m_TestRequirementModel.setColumnCount(0);

      currentXMLFile = fileName;
      m_TestRequirementModel.setRequirements(xmlFile.getXMLDataSet());

      Enumeration<TableColumn> columns = m_TestRequirementTable.getColumnModel().getColumns();
      while (columns.hasMoreElements()) {
        TableColumn hcol = columns.nextElement();
        hcol.setHeaderRenderer(new MyTableHeaderRenderer());
View Full Code Here

Examples of edu.indiana.extreme.weps.XMLFile

        // I do not have a bpel document around to test this. So sending my build.xml as the bpel document ;)
        documentsType.setBPEL(XmlObject.Factory.parse("<BPELFile>BPEL File will come here</BPELFile>"));
        documentsType.setDeploymentDescriptor(XmlObject.Factory.parse("<DD>BPEL File will come here</DD>"));

        XMLFile processWSDL = XMLFile.Factory.newInstance();
        processWSDL.setFileName("Process WSDL");
        processWSDL.setContent(XmlObject.Factory.parse("<ProcessWSDL>BPEL File will come here</ProcessWSDL>"));
        documentsType.setProcessWSDL(processWSDL);

        XMLFile serviceWSDL = XMLFile.Factory.newInstance();
        serviceWSDL.setFileName("Service WSDL");
        serviceWSDL.setContent(XmlObject.Factory.parse("<ServiceWSDL>BPEL File will come here</ServiceWSDL>"));
        documentsType.setServiceWSDLsArray(new XMLFile[]{serviceWSDL});

        deploymentInformation.setDeploymentDocuments(documentsType);

View Full Code Here

Examples of edu.indiana.extreme.weps.XMLFile

          .parse(XmlConstants.BUILDER
              .serializeToStringPretty(workflow
                  .getODEDeploymentDescriptor(dscURI,
                      configuration.getODEURL()))));

      XMLFile processWSDL = XMLFile.Factory.newInstance();
      processWSDL.setFileName(workflowWSDL.xml().attributeValue("name")
          + ".wsdl");
      processWSDL.setContent(XBeansUtil
          .xmlElementToXmlObject(workflowWSDL.xmlStringPretty()));
      documentsType.setProcessWSDL(processWSDL);

      XMLFile serviceWSDL;
      Map<String, WsdlDefinitions> wsdlMap = workflow.getOdeServiceWSDLs(
          dscURI, configuration.getODEURL());
      XMLFile[] serviceWSDLs = new XMLFile[wsdlMap.size() + 3];
      int index = 0;
      for (String id : wsdlMap.keySet()) {
        WsdlDefinitions wsdl = wsdlMap.get(id);
        serviceWSDL = XMLFile.Factory.newInstance();
        serviceWSDL.setFileName(wsdl.xml().attributeValue("name")
            + ".wsdl");
        serviceWSDL.setContent(XBeansUtil.xmlElementToXmlObject(wsdl
            .xmlStringPretty()));
        serviceWSDLs[index++] = serviceWSDL;
      }
     
      //add the xsds
      //crosscutt
      XMLFile crossCutXsd = XMLFile.Factory.newInstance();
      crossCutXsd.setFileName("lead-crosscut-parameters.xsd");
      crossCutXsd.setContent(XBeansUtil.xmlElementToXmlObject(LeadCrosscutXSD.getXml()));
      serviceWSDLs[index++] = crossCutXsd;
     
     
      //gfac-simple-types.xsd
     
      XMLFile gfacXsd = XMLFile.Factory.newInstance();
      gfacXsd.setFileName("gfac-simple-types.xsd");
      gfacXsd.setContent(XBeansUtil.xmlElementToXmlObject(GFacSimpleTypesXSD.getXml()));
      serviceWSDLs[index++] = gfacXsd;
     
      //fileidtype
      XMLFile lch = XMLFile.Factory.newInstance();
      lch.setFileName("lead-context.xsd");
      lch.setContent(XBeansUtil.xmlElementToXmlObject(LeadContextHeaderXSD.getXml()));
      serviceWSDLs[index++] = lch;
     
      documentsType.setServiceWSDLsArray(serviceWSDLs);
     
     
View Full Code Here

Examples of hudson.XmlFile

        getConfigFile().write(this);
        SaveableListener.fireOnChange(this, getConfigFile());
    }

    public synchronized boolean load() throws IOException {
        XmlFile config = getConfigFile();
        if (config != null && config.exists()) {
            config.unmarshal(this);
            return true;
        }
        return false;

View Full Code Here

Examples of hudson.XmlFile


    }

    protected final XmlFile getConfigFile() {
        return new XmlFile(XSTREAM, new File(getRootDir(), name + "/config.xml"));
    }
View Full Code Here

Examples of hudson.XmlFile

    String oldDescription = implementation.getDescription();
    boolean oldDisabled = implementation.isDisabled();
        Map<TriggerDescriptor, Trigger> oldTriggers = implementation.getTriggers();

        XmlFile implementationXmlFile = replaceConfig(template, implementation, propertiesMap);
    refreshAndSave(template, implementationBuildWrapper, implementationXmlFile, oldDescription, oldDisabled, oldTriggers);
  }
View Full Code Here

Examples of hudson.XmlFile

    return patternPairsBuilder.build();
  }

  private static XmlFile replaceConfig(AbstractProject template, AbstractProject implementation, Map<Pattern, String> propertiesMap) throws IOException {
    XmlFile implementationXmlFile = implementation.getConfigFile();
    File implementationFile = implementationXmlFile.getFile();

    assert template.getConfigFile() != null : "template config file shouldn't be null";

    InputStream templateFileStream = new FileInputStream(template.getConfigFile().getFile());
    try {
View Full Code Here

Examples of hudson.XmlFile

    /**
     * The file we save our configuration.
     */
    private XmlFile getConfigFile() {
        return new XmlFile(XSTREAM, new File(root,"config.xml"));
    }
View Full Code Here

Examples of hudson.XmlFile

            public void run(Reactor session) throws Exception {
                // JENKINS-8043: some slaves (eg. swarm slaves) are not saved into the config file
                // and will get overwritten when reloading. Make a backup copy now, and re-add them later
                NodeList oldSlaves = slaves;
               
                XmlFile cfg = getConfigFile();
                if (cfg.exists()) {
                    // reset some data that may not exist in the disk file
                    // so that we can take a proper compensation action later.
                    primaryView = null;
                    views.clear();

                    // load from disk
                    cfg.unmarshal(Jenkins.this);
                }

                // if we are loading old data that doesn't have this field
                if (slaves == null) slaves = new NodeList();
View Full Code Here

Examples of hudson.XmlFile

     * XML prior to the test code refactoring.
     *
     * @throws Exception
     */
    public void testXmlCompatibility() throws Exception {
        XmlFile xmlFile = new XmlFile(XSTREAM, getDataFile("junitResult.xml"));
        TestResult result = (TestResult)xmlFile.read();

        // Regenerate the transient data
        result.tally();
        assertEquals(9, result.getTotalCount());
        assertEquals(1, result.getSkipCount());
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.