Package com.eviware.x.form

Examples of com.eviware.x.form.XForm


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

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

    mainForm.addTextField( OUTPUT, "root directory for generated files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( NAMESPACE, "The namespace for the generated proxy or template", XForm.FieldType.TEXT );

    mainForm.addCheckBox( SERVER, "(Generates interfaces for server-side implementation of an ASP.Net Web Service)" );
    mainForm.addComboBox( LANGUAGE, new String[] { "CS", "VB", "JS", "VJS", "CPP" }, "add scope to deploy.wsdd" );

    mainForm.addComboBox( PROTOCOL, new String[] { "SOAP", "SOAP12", "HttpGet", "HttpPost" },
        "override the default protocol to implement" );

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

    advForm.addCheckBox( SHARETYPES, "(turns on type sharing feature)" );
    advForm.addCheckBox( FIELDS, "(generate fields instead of properties)" );
    advForm.addCheckBox( ORDER, "(generate explicit order identifiers on particle members)" );
    advForm.addCheckBox( ENABLEDATABINDING, "(implement INotifyPropertyChanged interface on all generated types)" );
    advForm.addTextField( URLKEY, "configuration key to use in the code generation to read the default URL value",
        XForm.FieldType.URL );
    advForm.addTextField( BASEURL, "base url to use when calculating the url fragment", XForm.FieldType.URL );

    XForm httpForm = builder.createForm( "HTTP settings" );
    httpForm.addTextField( USERNAME, "username to access the WSDL-URI", XForm.FieldType.TEXT );
    httpForm.addTextField( PASSWORD, "password to access the WSDL-URI", XForm.FieldType.PASSWORD );
    httpForm.addTextField( DOMAIN, "domain to access the WSDL-URI", XForm.FieldType.TEXT );
    httpForm.addTextField( PROXY, "username to access the WSDL-URI", XForm.FieldType.TEXT );
    httpForm.addTextField( PROXYUSERNAME, "proxy username to access the WSDL-URI", XForm.FieldType.TEXT );
    httpForm.addTextField( PROXYPASSWORD, "proxy password to access the WSDL-URI", XForm.FieldType.PASSWORD );
    httpForm.addTextField( PROXYDOMAIN, "proxy domain to access the WSDL-URI", XForm.FieldType.TEXT );

    buildArgsForm( builder, false, "wsdl.exe" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.DOTNET_HELP_URL, modelItem ),
        "Specify arguments for .NET 2 wsdl.exe", UISupport.TOOL_ICON );
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( 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( "JAX-WS Artifacts" );

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

    mainForm.addTextField( OUTPUT, "target directory for generated files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "target package nam", XForm.FieldType.JAVA_PACKAGE );
    mainForm.addTextField( SOURCE_OUTPUT, "target directory for generated source files",
        XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( HTTPPROXY, "HTTP Proxy-server", XForm.FieldType.TEXT );
    mainForm.addTextField( CATALOG, "catalog file to resolve external entity references",
        XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( BINDING_FILES, "comma-separated list of external JAX-WS or JAXB binding files",
        XForm.FieldType.TEXT );
    mainForm.addTextField( WSDLLOCATION, "@WebService.wsdlLocation and @WebServiceClient.wsdlLocation value",
        XForm.FieldType.TEXT );

    mainForm.addCheckBox( KEEP, "(keep generated files)" );

    buildArgsForm( builder, false, "WSImport" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.WSIMPORT_HELP_URL, modelItem ),
        "Specify arguments for JWSDP/JAX-WS wsimport", 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

  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( "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( "XFire 1.X Stubs" );

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

    mainForm.addTextField( OUTPUT, "Root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "Package for generated classes", XForm.FieldType.JAVA_PACKAGE ).setRequired(
        true, "Package is required" );
    XFormField bindingCombo = mainForm.addComboBox( BINDING, new String[] { "jaxb", "xmlbeans" },
        "Binding framework to use" );

    XFormTextField cpField = mainForm.addTextField( CLASSPATH, "Classpath to generated xmlbeans for binding",
        XForm.FieldType.PROJECT_FILE );
    XFormTextField extBindingsField = mainForm.addTextField( EXTERNAL_BINDINGS, "External jaxb binding file(s)",
        XForm.FieldType.PROJECT_FILE );
    bindingCombo.addComponentEnabler( cpField, "xmlbeans" );
    bindingCombo.addComponentEnabler( extBindingsField, "jaxb" );

    mainForm.addTextField( PROFILE, "Profile to use for generating artifacts", XForm.FieldType.TEXT );
    mainForm.addTextField( BASE_URI, "Base URI to use", XForm.FieldType.URL );
    mainForm.addCheckBox( OVERWRITE, null );
    mainForm.addCheckBox( EXPLICIT_ANNOTATION, null );
    mainForm.addCheckBox( SERVER_STUBS, null );

    buildArgsForm( builder, true, "WsGen" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.XFIRE_HELP_URL, modelItem ),
        "Specify arguments for XFire 1.X WsGen", 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( "JBossWS JAX-WS Artifacts" );

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

    mainForm.addTextField( OUTPUT, "target directory for generated files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "target package nam", XForm.FieldType.JAVA_PACKAGE );
    mainForm.addTextField( SOURCE_OUTPUT, "target directory for generated source files",
        XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( CATALOG, "catalog file to resolve external entity references",
        XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( BINDING_FILES, "comma-separated list of external JAX-WS or JAXB binding files",
        XForm.FieldType.TEXT );
    mainForm.addTextField( WSDLLOCATION, "@WebService.wsdlLocation and @WebServiceClient.wsdlLocation value",
        XForm.FieldType.TEXT );

    mainForm.addCheckBox( KEEP, "(keep generated files)" );
    mainForm.addCheckBox( STACKTRACE, "(show stacktrace for errors)" );

    buildArgsForm( builder, false, "wsconsume" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.JBOSSWS_WSCONSUME_HELP_URL, modelItem ),
        "Specify arguments for JBossWS wsconsume", UISupport.TOOL_ICON );
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.