Package com.eviware.x.form

Examples of com.eviware.x.form.XForm


    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Oracle Artifacts");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "The target package for generated classes", XForm.FieldType.JAVA_PACKAGE);

        buildArgsForm(builder, true, "wsa");

        ActionList actions = buildDefaultActions(HelpUrls.ORACLEWSA_HELP_URL, modelItem);
        return builder.buildDialog(actions, "Specify arguments for Oracle wsa.jar genProxy functionality",
View Full Code Here


        }
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Axis2 artifacts");
        XForm mainForm = builder.createForm("Basic");

        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "root directory for generated files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "target package nam", XForm.FieldType.JAVA_PACKAGE);

        XFormField dbComboBox = mainForm.addComboBox(DATABINDING, new String[]{"xmlbeans", "adb", "jibx", "jaxme"},
                "Specifies the Databinding framework.");

        mainForm.addCheckBox(ASYNC, "(generate code only for async style)");
        mainForm.addCheckBox(SYNC, "(generate code only for sync style)");
        mainForm.addCheckBox(TESTCASE, "(Generate a test case)");

        XFormField serverSideCB = mainForm.addCheckBox(SERVERSIDE, "(Generate server side code (i.e. skeletons))");

        XFormField ssiCB = mainForm.addCheckBox(SERVERSIDEINTERFACE, "(Generate interface for server side)");
        XFormField sdCB = mainForm.addCheckBox(SERICEDESCRIPTOR, "(Generate the service descriptor (i.e. server.xml).)");
        serverSideCB.addComponentEnabler(ssiCB, "true");
        serverSideCB.addComponentEnabler(sdCB, "true");

        XForm advForm = builder.createForm("Advanced");

        advForm.addCheckBox(GENERATEALL, "(Genrates all the classes)");
        advForm.addCheckBox(UNPACK, "(Unpacks the databinding classes)");

        advForm.addTextField(SERVICE_NAME, "the service name to be code generated", XForm.FieldType.TEXT);
        advForm.addTextField(PORT_NAME, "the port name to be code generated", XForm.FieldType.TEXT);

        advForm.addComponent(NAMESPACE_MAPPING, new NamespaceTable((WsdlInterface) modelItem));

        XFormField adbWrapCB = advForm.addCheckBox(ADB_WRAP,
                "(Sets the packing flag. if true the classes will be packed.)");
        XFormField adbWriteCB = advForm.addCheckBox(ADB_WRITE,
                "(Sets the write flag. If set to true the classes will be written by ADB)");
        XFormTextField jibxCB = advForm.addTextField(JIBX_BINDING_FILE, "The JIBX binding file to use",
                XForm.FieldType.PROJECT_FILE);
        dbComboBox.addComponentEnabler(adbWrapCB, "adb");
        dbComboBox.addComponentEnabler(adbWriteCB, "adb");
        dbComboBox.addComponentEnabler(jibxCB, "jibx");
View Full Code Here

    }

    protected XFormDialog buildDialog(WsdlInterface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Regenerate JBossWS WSDL Artifacts");

        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(ENDPOINT, "Serice Endpoint Interface", XForm.FieldType.JAVA_CLASS);
        mainForm.addTextField(SERVICE_NAME, "The name of the generated Service", XForm.FieldType.TEXT);
        mainForm
                .addComboBox(STYLE, new String[]{Style.DOCUMENT.toString(), Style.RPC.toString()}, "The style to use");
        mainForm.addComboBox(PARAMETER_STYLE,
                new String[]{ParameterStyle.BARE.toString(), ParameterStyle.WRAPPED.toString()}, "The style to use");
        mainForm.addTextField(CLASSPATH, "Classpath to use", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(MAPPING, "mapping file to generate", XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(TARGET_NAMESPACE, "The target namespace for the generated WSDL", XForm.FieldType.TEXT);
        mainForm.addTextField(TYPES_NAMESPACE, "The namespace for the generated types", XForm.FieldType.TEXT);
        mainForm.addTextField(EJB_LINK, "The name of the source EJB to link to", XForm.FieldType.TEXT);
        mainForm.addTextField(SERVLET_LINK, "The name of the source Servlet to link to", XForm.FieldType.TEXT);

        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, modelItem);
        actions.addAction(new ShowConfigFileAction("JBossWS Wsdl2Java", "Contents of generated wsconfig.xml file") {
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("JAXB Artifacts");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "generated files will go into this directory", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "the target package", XForm.FieldType.JAVA_PACKAGE);

        mainForm.addTextField(BINDINGS, "external bindings file(s), comma-separated", XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(CATALOG, "catalog files to resolve external entity references",
                XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(CLASSPATH, "where to find user class files", XForm.FieldType.PROJECT_FOLDER);

        mainForm.addTextField(HTTPPROXY, "set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost[:proxyPort]",
                XForm.FieldType.TEXT);
        mainForm.addCheckBox(READONLY, "(generated files will be in read-only mode)");
        mainForm.addCheckBox(NOVALIDATION, "(do not resolve strict validation of the input schema(s))");
        mainForm.addCheckBox(NPA, "(suppress generation of package level annotations (**/package-info.java))");

        mainForm.addCheckBox(VERBOSE, "(be extra verbose)");

        buildArgsForm(builder, false, "xjc");

        return builder.buildDialog(buildDefaultActions(HelpUrls.JABXJC_HELP_URL, modelItem),
                "Specify arguments for the JAXB 2 xjc compiler", UISupport.TOOL_ICON);
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("WSCompile");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm
                .addTextField(PACKAGE, "the package of the classes generated by wscompile", XForm.FieldType.JAVA_PACKAGE);
        mainForm.addTextField(OUTPUT, "where to place generated output files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addCheckBox(KEEP, "(Keep generated files)");
        mainForm.addTextField(MAPPING, "Generate a J2EE mapping.xml file", XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(MODEL, "Write the internal model to the given file", XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(SOURCE, "Where to place generated source files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(NONCLASS, "Where to place non-class generated files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addCheckBox(OPTIMIZE, "(Optimize generated code)");
        mainForm.addCheckBox(DEBUG, "(Generate debugging info)");
        mainForm.addComboBox(SOURCE_VERSION, new String[]{"1.0.1", "1.0.3", "1.1", "1.1.1", "1.1.2"},
                "Generate code for the specified JAX-RPC SI version");
        mainForm.addTextField(SECURITY, "Security configuration file to generate security code",
                XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(PROXY, "Specify a HTTP proxy server", XForm.FieldType.URL);

        XForm featuresForm = builder.createForm("Features");

        featuresForm.addCheckBox(DATAHANDLERONLY, "(Always map attachments to the DataHandler type)");
        featuresForm.addCheckBox(DONOTUNWRAP, "(Disable unwrapping of document/literal wrapper elements in WSI mode)");
        featuresForm.addCheckBox(EXPLICITCONTEXT, "(Turn on explicit service context mapping)");
        featuresForm.addCheckBox(JAXBENUMTYPE, "(Map anonymous enumeration to its base type)");
        featuresForm.addCheckBox(NODATABINDING, "(Turn off data binding for literal encoding)");
        featuresForm.addCheckBox(NOENCODEDTYPES, "(Turn off encoding type information)");
        featuresForm.addCheckBox(NOMULTIREFS, "(Turn off support for multiple references)");
        featuresForm.addCheckBox(NORPCSTRUCTURES, "(Do not generate RPC structures)");
        featuresForm.addCheckBox(NOVALIDATION, "(Turn off full validation of imported WSDL documents)");
        featuresForm.addCheckBox(RESOLVEIDREF, "(Resolve xsd:IDREF)");
        featuresForm.addCheckBox(SEARCHSCHEMA, "(Search schema aggressively for types)");
        featuresForm.addCheckBox(SERIALIZEINTERFACES, "(Turn on direct serialization of interface types)");
        featuresForm.addCheckBox(STRICT, "(Generate code strictly compliant with JAXRPC spec)");
        featuresForm.addCheckBox(UNWRAP, "(Enable unwrapping of document/literal wrapper elements in WSI mode)");
        featuresForm.addCheckBox(WSI,
                "(Enable WSI-Basic Profile features, to be used for document/literal and rpc/literal)");

        XForm advForm = builder.createForm("Advanced");
        advForm.addNameSpaceTable(NAMESPACE_MAPPING, modelItem);

        buildArgsForm(builder, false, "wscompile");

        ActionList actions = buildDefaultActions(HelpUrls.WSCOMPILE_HELP_URL, modelItem);
        actions.addAction(new WSCompileShowConfigFileAction("JAX-RPC wscompile",
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("GSoap Artifacts");

        XForm wsdl2hAdvForm = builder.createForm("wsdl2h");

        wsdl2hAdvForm.addCheckBox(WSDL2H, null);
        addWSDLFields(wsdl2hAdvForm, modelItem);

        wsdl2hAdvForm.addTextField(WSDL2H_OUTPUT, "name of output file", XForm.FieldType.PROJECT_FILE);

        XForm soapcpp2AdvForm = builder.createForm("soapcpp2");

        soapcpp2AdvForm.addCheckBox(SOAPCPP2, null);

        wsdl2hAdvForm.addCheckBox(GENERATE_INDEXED_STRUCT, null);
        wsdl2hAdvForm.addCheckBox(GENERATE_C_SOURCE, null);
        wsdl2hAdvForm.addCheckBox(DOM, null);
        wsdl2hAdvForm.addCheckBox(DONT_QUALIFY_ENUM_NAMES, null);
        wsdl2hAdvForm.addCheckBox(FLAT_CPP_CLASS_HIERARCHY, null);
        wsdl2hAdvForm.addCheckBox(GLOBAL_TOP_LEVEL_DECLARATIONS, null);
        wsdl2hAdvForm.addTextField(PATH, "use path to find files", XForm.FieldType.PROJECT_FOLDER);
        wsdl2hAdvForm.addCheckBox(INCLUDE_LICENSE_INFORMATION, null);
        wsdl2hAdvForm.addCheckBox(USE_XSD_H, null);
        wsdl2hAdvForm.addTextField(BASE_NAMESPACE_PREFIX_INSTEAD_OF_NS,
                "use name as the base namespace prefix name instead of ns", XForm.FieldType.TEXT);
        wsdl2hAdvForm.addTextField(BASE_NAMESPACE_PREFIX_FOR_SERVICE_NS,
                "use name as the base namespace prefix name for service namespaces", XForm.FieldType.TEXT);

        wsdl2hAdvForm.addCheckBox(POLYMORPHIC_TYPES, null);
        wsdl2hAdvForm.addTextField(PROXY_HOST_PORT, "connect via proxy host and port (host:port)", XForm.FieldType.TEXT);
        wsdl2hAdvForm.addCheckBox(NO_STL, null);
        wsdl2hAdvForm.addTextField(TYPE_MAP_FILE, "use type map file instead of the default file typemap.dat",
                XForm.FieldType.PROJECT_FILE);
        wsdl2hAdvForm.addCheckBox(NO_UNIONS, null);
        wsdl2hAdvForm.addCheckBox(VERBOSE, null);
        wsdl2hAdvForm.addCheckBox(WRAP_RESPONSE_STRUCT, null);
        wsdl2hAdvForm.addCheckBox(NO_ANY, null);
        wsdl2hAdvForm.addCheckBox(TYPEDEF_SYNONYMS, null);

        soapcpp2AdvForm.addCheckBox(SOAP_11, null);
        soapcpp2AdvForm.addCheckBox(SOAP_12, null);
        soapcpp2AdvForm.addCheckBox(CLIENT_SIDE, null);
        soapcpp2AdvForm.addCheckBox(SERVER_SIDE, null);
        soapcpp2AdvForm.addCheckBox(NO_LIB, null);
        soapcpp2AdvForm.addCheckBox(SOAP_ACTION, null);
        soapcpp2AdvForm.addCheckBox(GENERATE_C_SOURCE_CPP, null);
        // soapcpp2AdvForm.addTextField(SAVE_PATH, "", XForm.FieldType.DIRECTORY);
        soapcpp2AdvForm.addCheckBox(SOAP_RPC, null);
        soapcpp2AdvForm.addCheckBox(SERVICE_PROXIES, null);
        soapcpp2AdvForm.addTextField(IMPORT_PATH, "use path(s) for #import", XForm.FieldType.PROJECT_FOLDER);
        soapcpp2AdvForm.addCheckBox(GENERATE_LINKABLE_MODULES, null);
        soapcpp2AdvForm.addCheckBox(GENERATE_MATLAB_CODE, null);
        soapcpp2AdvForm.addCheckBox(SERVICE_NAME, null);
        soapcpp2AdvForm.addTextField(NAME_PREFIX, "save files with new prefix name instead of 'soap'",
                XForm.FieldType.TEXT);
        soapcpp2AdvForm.addCheckBox(XSI_TYPED, null);
        soapcpp2AdvForm.addCheckBox(NO_GEN_WSDL_SCHEMA, null);
        soapcpp2AdvForm.addCheckBox(NO_GEN_SAMPLE_XML, null);

        return builder.buildDialog(buildDefaultActions(HelpUrls.GSOAP_HELP_URL, modelItem),
                "Specify arguments for GSoap wsdl2h and soap2cpp", UISupport.TOOL_ICON);
    }
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("JBossWS Artifacts");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(MAPPING, "mapping file to generate", XForm.FieldType.PROJECT_FILE);
        mainForm.addCheckBox(UNWRAP, "unwrap doc-literal operations");

        mainForm.addNameSpaceTable(NAMESPACE_MAPPING, modelItem);

        mainForm.addSeparator("webservices.xml generation options");
        ejbLinkField = mainForm.addTextField(EJB_LINK, "The ejb-jar.xml ejb-link for Stateless Session Bean endpoints",
                XForm.FieldType.TEXT);
        ejbLinkField.addFormFieldListener(new XFormFieldListener() {
            public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
                servletLinkField.setEnabled(newValue.length() == 0);
                appendField.setEnabled(newValue.length() > 0);
            }
        });

        servletLinkField = mainForm.addTextField(SERVLET_LINK,
                "The web.xml servlet-link that is used by Java Service Endpoints (WAR)", XForm.FieldType.TEXT);
        servletLinkField.addFormFieldListener(new XFormFieldListener() {
            public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
                ejbLinkField.setEnabled(newValue.length() == 0);
                appendField.setEnabled(newValue.length() > 0);
            }
        });

        appendField = mainForm.addCheckBox(APPEND, "append to existing file");
        appendField.setEnabled(false);
        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, modelItem);
        actions.addAction(new JBossWSShowConfigFileAction("JBossWS Wsdl2Java",
View Full Code Here

        return true;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Add Request to TestCase");
        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(STEP_NAME, "Name of TestStep", XForm.FieldType.URL).setWidth(30);

        mainForm.addCheckBox(ADD_SOAP_RESPONSE_ASSERTION, "(adds validation that response is a SOAP message)");
        mainForm.addCheckBox(ADD_SCHEMA_ASSERTION, "(adds validation that response complies with its schema)");
        mainForm.addCheckBox(ADD_SOAP_FAULT_ASSERTION, "(adds validation that response is not a SOAP Fault)");
        mainForm.addCheckBox(CREATE_OPTIONAL_ELEMENTS_IN_REQUEST, "(creates optional content in sample request)");

        dialog = builder.buildDialog(builder.buildOkCancelActions(),
                "Specify options for adding a new request to a TestCase", UISupport.OPTIONS_ICON);

        dialogValues.put(ADD_SOAP_RESPONSE_ASSERTION, Boolean.TRUE.toString());
View Full Code Here

TOP

Related Classes of com.eviware.x.form.XForm

Copyright © 2018 www.massapicom. 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.