Examples of ConfigurationDocument


Examples of org.jboss.jbosswsTools.ConfigurationDocument

        return builder;
    }

    private String buildConfigFile(StringToStringMap values) throws IOException {
        File file = File.createTempFile("wstools-config", ".xml");
        ConfigurationDocument configDocument = createConfigFile(values);

        configDocument.save(file);

        return file.getAbsolutePath();
    }
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

        return file.getAbsolutePath();
    }

    private ConfigurationDocument createConfigFile(StringToStringMap values) {
        ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
        ConfigurationType config = configDocument.addNewConfiguration();

        JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
        ServiceType service = java2Wsdl.addNewService();
        service.setEndpoint(values.get(ENDPOINT));
        service.setStyle(Style.Enum.forString(values.get(STYLE)));
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, modelItem);
        actions.addAction(new ShowConfigFileAction("JBossWS Wsdl2Java", "Contents of generated wsconfig.xml file") {
            protected String getConfigFile() {
                ConfigurationDocument configDocument = createConfigFile(getDialog().getValues());
                return configDocument.toString();
            }
        });

        return builder.buildDialog(actions, "Specify arguments for JBossWS wstools java2wsdl functionality",
                UISupport.TOOL_ICON);
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

    }

    private String buildConfigFile(StringToStringMap values) throws IOException {
        File file = File.createTempFile("wstools-config", ".xml",
                new File(SoapUI.getSettings().getString(ToolsSettings.JBOSSWS_WSTOOLS_LOCATION, null)));
        ConfigurationDocument configDocument = createConfigFile(values);
        configDocument.save(file);
        return file.getName();
    }
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

        configDocument.save(file);
        return file.getName();
    }

    private ConfigurationDocument createConfigFile(StringToStringMap values) {
        ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
        ConfigurationType config = configDocument.addNewConfiguration();

        JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
        ServiceType service = java2Wsdl.addNewService();
        service.setEndpoint(values.get(ENDPOINT));
        service.setStyle(Style.Enum.forString(values.get(STYLE)));
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

        return builder;
    }

    private String buildConfigFile(StringToStringMap values, Interface modelItem) throws IOException {
        File file = File.createTempFile("wstools-config", ".xml");
        ConfigurationDocument configDocument = createConfigFile(values, modelItem);

        configDocument.save(file);

        return file.getAbsolutePath();
    }
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationDocument

        return file.getAbsolutePath();
    }

    private ConfigurationDocument createConfigFile(StringToStringMap values, Interface modelItem) {
        ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
        ConfigurationType config = configDocument.addNewConfiguration();

        try {
            StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
            if (!nsMappings.isEmpty()) {
                GlobalType global = config.addNewGlobal();
View Full Code Here

Examples of org.ogce.schemas.gfac.documents.ConfigurationDocument

            if (xmlConfigurationFile.exists()) {
                input = new FileInputStream(xmlConfigurationFile);
            } else {
                input = Thread.currentThread().getContextClassLoader().getResourceAsStream(gfacProfile);
            }
            ConfigurationDocument configurationDoc = ConfigurationDocument.Factory.parse(input);
            return configurationDoc.getConfiguration();
        } catch (FileNotFoundException e) {
            throw new GfacException(e,FaultCode.InitalizationError);
        } catch (XmlException e) {
            throw new GfacException(e,FaultCode.InitalizationError);
        } catch (IOException e) {
View Full Code Here

Examples of org.woped.config.ConfigurationDocument

   * @param confDoc
   * @return
   */
  public boolean readConfig(XmlObject configDoc) {
    // Create an instance of a type generated from schema to hold the XML.
    ConfigurationDocument confDoc = (ConfigurationDocument)configDoc;
    ConfigurationDocument.Configuration config;

    if (confDoc != null && (config = confDoc.getConfiguration()) != null) {
      // MAC, WIN, Linux and XPlatform LookAndFeel
      String lafConf = config.getGui().getWindow().getLookAndFeel();
      setLookAndFeel(lafConf);

      setWindowX(config.getGui().getWindow().getX());
View Full Code Here

Examples of org.woped.config.ConfigurationDocument

   * Returns the home directory.
   *
   * @return String
   */
  public String getHomedir() {
    ConfigurationDocument confDoc = getConfDocument();
    return confDoc.getConfiguration().getGeneral().getHomedir();
  }
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.