Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap.keySet()


    builder.addString( PASSWORD, "-P" );

    try
    {
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      for( String namespace : nsMappings.keySet() )
      {
        builder.addArgs( "-N" + namespace + "=" + nsMappings.get( namespace ) );
      }
    }
    catch( Exception e )
View Full Code Here


    try
    {
      StringBuilder nsMapArg = new StringBuilder();
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      for( String namespace : nsMappings.keySet() )
      {
        if( nsMapArg.length() > 0 )
          nsMapArg.append( ',' );

        nsMapArg.append( namespace ).append( '=' ).append( nsMappings.get( namespace ) );
View Full Code Here

      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      if( !nsMappings.isEmpty() )
      {
        GlobalType global = config.addNewGlobal();

        for( String namespace : nsMappings.keySet() )
        {
          PkgNSType entry = global.addNewPackageNamespace();
          entry.setNamespace( namespace );
          entry.setPackage( nsMappings.get( namespace ) );
        }
View Full Code Here

      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 );
View Full Code Here

    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 )
View Full Code Here

    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
View Full Code Here

    recentWorkspacesMenu.removeAll();

    if( history.size() > 0 )
    {
      for( Iterator<String> i = history.keySet().iterator(); i.hasNext(); )
      {
        String filePath = i.next();
        DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
            SwitchWorkspaceAction.SOAPUI_ACTION_ID, null, null, false, filePath );
        String wsName = history.get( filePath );
View Full Code Here

    String recent = SoapUI.getSettings().getString( RECENT_PROJECTS_SETTING, null );
    StringToStringMap history = recent == null ? new StringToStringMap() : StringToStringMap.fromXml( recent );

    if( history.size() > 0 )
    {
      for( Iterator<String> i = history.keySet().iterator(); i.hasNext(); )
      {
        String filePath = i.next();
        DefaultActionMapping<WorkspaceImpl> mapping = new DefaultActionMapping<WorkspaceImpl>(
            ImportWsdlProjectAction.SOAPUI_ACTION_ID, null, null, false, filePath );
        String wsName = history.get( filePath );
View Full Code Here

  {
    String script = "import com.eviware.soapui.support.XmlHolder\n\n"
        + "def holder = new XmlHolder( messageExchange.responseContentAsXml )\n";

    StringToStringMap nsMap = xpathData.getNamespaceMap();
    for( String ns : nsMap.keySet() )
    {
      script += "holder.namespaces[\"" + nsMap.get( ns ) + "\"] = \"" + ns + "\"\n";
    }

    script += "def node = holder.getDomNode( \"" + xpathData.getPath() + "\" )\n";
View Full Code Here

    for( SettingConfig setting : settingList )
    {
      values.put( setting.getId(), setting );
    }

    for( String key : changed.keySet() )
    {
      notifySettingChanged( key, getString( key, null ), changed.get( key ) );
    }
    notifySettingsReloaded();
  }
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.