Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap


  protected ArgumentBuilder buildArgs( WsdlProject modelItem ) throws IOException
  {
    XFormDialog dialog = getDialog();
    if( dialog == null )
    {
      ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
      builder.startScript( "testrunner", ".bat", ".sh" );
      return builder;
    }

    StringToStringMap values = dialog.getValues();

    ArgumentBuilder builder = new ArgumentBuilder( values );

    builder.startScript( "testrunner", ".bat", ".sh" );

    builder.addString( ENDPOINT, "-e", "" );
    builder.addString( HOSTPORT, "-h", "" );

    if( !values.get( TESTSUITE ).equals( ALL_VALUE ) )
      builder.addString( TESTSUITE, "-s", "" );

    if( !values.get( TESTCASE ).equals( ALL_VALUE ) )
      builder.addString( TESTCASE, "-c", "" );

    builder.addString( USERNAME, "-u", "" );
    builder.addStringShadow( PASSWORD, "-p", "" );
    builder.addString( DOMAIN, "-d", "" );
View Full Code Here


        "Specify arguments for XFire 1.X WsGen", UISupport.TOOL_ICON );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );
    values.putIfMissing( BINDING, "jaxb" );
    return values;
  }
View Full Code Here

    return builder.buildDialog( actions, "Specify arguments for JAX-RPC wscompile", UISupport.TOOL_ICON );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );
    values.putIfMissing( SOURCE_VERSION, "1.1.2" );
    values.putIfMissing( WSI, Boolean.toString( true ) );

    return values;
  }
View Full Code Here

    wsdl.setLocation( getWsdlUrl( values, modelItem ) );
    wsdl.setPackageName( values.get( PACKAGE ).toString() );

    try
    {
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      if( !nsMappings.isEmpty() )
      {
        NamespaceMappingRegistryType nsMappingRegistry = wsdl.addNewNamespaceMappingRegistry();

        for( String namespace : nsMappings.keySet() )
        {
          String packageName = nsMappings.get( namespace );

          NamespaceMappingType newMapping = nsMappingRegistry.addNewNamespaceMapping();
          newMapping.setNamespace( namespace );
          newMapping.setPackageName( packageName );
        }
View Full Code Here

        "Specify arguments for Apache CXF wsdl2java", UISupport.TOOL_ICON );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );
    values.putIfMissing( DNS, "true" );
    values.putIfMissing( DEX, "true" );
    return values;
  }
View Full Code Here

    values.put( OUTPUT, Tools.ensureDir( values.get( OUTPUT ), "" ) );

    ArgumentBuilder builder = new ArgumentBuilder( values );

    builder.startScript( "wsdl2java" );
    StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
    String packages = values.get( PACKAGE ).trim();
    for( String key : nsMappings.keySet() )
    {
      packages += " " + key + "=" + nsMappings.get( key );
    }

    if( packages.length() > 0 )
      builder.addBoolean( NAMESPACE_MAPPING, "-p", null, packages );

    builder.addString( BINDING_FILES, "-b" );
    builder.addString( CATALOG_FILE, "-catalog" );
    builder.addString( OUTPUT, "-d" );

    builder.addBoolean( COMPILE, "-compile" );
    builder.addString( CLASSDIR, "-classdir" );

    builder.addBoolean( CLIENT_STUBS, "-client" );
    builder.addBoolean( SERVER_STUBS, "-server" );
    builder.addBoolean( IMPL_STUBS, "-impl" );
    builder.addBoolean( GENERATE_ALL, "-all" );
    builder.addBoolean( ANT_FILE, "-ant" );

    StringToStringMap excludes = StringToStringMap.fromXml( values.get( EXCLUDE_NAMESPACES ) );
    for( String key : excludes.keySet() )
    {
      String value = excludes.get( key );
      if( value.equals( "-" ) )
        builder.addArgs( "-b", key );
      else
        builder.addArgs( "-b", key + "=" + value );
    }
View Full Code Here

    return editorForm;
  }

  public void getFormValues( Settings settings )
  {
    StringToStringMap values = new StringToStringMap();
    editorForm.getValues( values );
    storeValues( values, settings );
  }
View Full Code Here

    abortCheckBox.setEnabled( settings.getBoolean( UISettings.AUTO_VALIDATE_REQUEST ) );
  }

  public StringToStringMap getValues( Settings settings )
  {
    StringToStringMap values = new StringToStringMap();
    values.put( NO_RESIZE_REQUEST_EDITOR, settings.getBoolean( UISettings.NO_RESIZE_REQUEST_EDITOR ) );
    values.put( START_WITH_REQUEST_TABS, settings.getBoolean( UISettings.START_WITH_REQUEST_TABS ) );
    values.put( AUTO_VALIDATE_REQUEST, settings.getBoolean( UISettings.AUTO_VALIDATE_REQUEST ) );
    values.put( ABORT_ON_INVALID_REQUEST, settings.getBoolean( UISettings.ABORT_ON_INVALID_REQUEST ) );
    values.put( AUTO_VALIDATE_RESPONSE, settings.getBoolean( UISettings.AUTO_VALIDATE_RESPONSE ) );
    values.put( XML_LINE_NUMBERS, settings.getBoolean( UISettings.SHOW_XML_LINE_NUMBERS ) );
    values.put( GROOVY_LINE_NUMBERS, settings.getBoolean( UISettings.SHOW_GROOVY_LINE_NUMBERS ) );

    return values;
  }
View Full Code Here

    }
  }

  public StringToStringMap getValues( Settings settings )
  {
    StringToStringMap result = new StringToStringMap();

    for( Field field : settingsClass.getFields() )
    {
      Setting annotation = field.getAnnotation( Setting.class );
      if( annotation != null )
      {
        try
        {
          result.put( annotation.name(),
              settings.getString( field.get( null ).toString(), annotation.defaultValue() ) );
        }
        catch( Exception e )
        {
          SoapUI.logError( e );
View Full Code Here

    getForm().setValues( getValues( settings ) );
  }

  public void getFormValues( Settings settings )
  {
    StringToStringMap values = new StringToStringMap();
    getForm().getValues( values );
    storeValues( values, settings );
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringToStringMap

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.