Package java.util.Map

Examples of java.util.Map.Entry


        defList.add(d);
        parseImports(d, defList);
        for (Definition def : defList) {

            for (Iterator ite = def.getPortTypes().entrySet().iterator(); ite.hasNext();) {
                Entry entry = (Entry)ite.next();
                PortType portType = def.getPortType((QName)entry.getKey());
                ServiceInfo serviceInfo = this.buildMockService(def, portType);
                serviceList.add(serviceInfo);
               
                for (Iterator it2 = d.getAllBindings().values().iterator(); it2.hasNext();) {
                    Binding b = (Binding)it2.next();
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public final boolean equals(Object o) {
      if (o instanceof Entry) {
    Entry e = (Entry) o;
    if (safeEquals(getKey(), e.getKey()) &&
        safeEquals(getValue(), e.getValue()))
    {
        return true;
    }
      }
      return false;
View Full Code Here

        throws TestSetFailedException
    {
        Map convertedOptions = super.getConvertedOptions( options );
        for ( Iterator iterator = convertedOptions.entrySet().iterator(); iterator.hasNext(); )
        {
            Entry entry = (Entry) iterator.next();
            String key = (String) entry.getKey();
            if ( "-objectfactory".equals( key ) )
            {
                Class value = (Class) entry.getValue();
                convertedOptions.put( key, value.getName() );
                break;
            }
        }
        return convertedOptions;
View Full Code Here

  }

  /** {@inheritDoc} */
  public boolean equals(Object o) {
      if (o instanceof Entry) {
    Entry entry = (Entry) o;
    Object entryKey = entry.getKey();
    Object entryValue = entry.getValue();
    return
        entryKey != null && getKey().equals(entryKey) &&
        entryValue != null && getValue().equals(entryValue);
      } else {
    return false;
View Full Code Here

   */
  public static String getSql(String sqlName){
    String sql = null;
    try {
      for (Iterator it = sqlHashMap.entrySet().iterator(); it.hasNext();) {
        Entry entry = (Entry) it.next();
        if (sqlName.equals(entry.getKey())) {
          sql = (String) entry.getValue();
          break;
        }
      }
    } catch (Exception e) {
      log.error("获取SQL语句失败");
View Full Code Here

                }
                files.add(resource.getLocation().toFile());
            }
           
            for (Iterator iEntry = projectToResources.entrySet().iterator(); iEntry.hasNext();) {
                Entry entry = (Entry) iEntry.next();
               
                IResource project = (IResource) entry.getKey();
                List files = (List) entry.getValue();
               
                ISVNClientAdapter client = SVNWorkspaceRoot.getSVNResourceFor(project).getRepository().getSVNClient();

                os.write(ECLIPSE_PROJECT_MARKER.getBytes());
                os.write(project.getName().getBytes());
View Full Code Here

        defList.add(d);
        parseImports(d, defList);
        for (Definition def : defList) {

            for (Iterator ite = def.getPortTypes().entrySet().iterator(); ite.hasNext();) {
                Entry entry = (Entry)ite.next();
                PortType portType = def.getPortType((QName)entry.getKey());
                ServiceInfo serviceInfo = this.buildMockService(def, portType);
                serviceList.add(serviceInfo);
            }

            if (def.getPortTypes().size() == 0) {
View Full Code Here

   * @param attributes the attributes to append (may be null).
   */
  public static void appendAttributes(StringBuffer result, Properties attributes) {
    if (null != attributes) {
      for (Iterator it = attributes.entrySet().iterator(); it.hasNext(); ) {
        Entry entry = (Entry) it.next();
        String key = entry.getKey().toString();
        String value = entry.getValue().toString();
        result.append(" ").append(key).append("=\"").append(value).append("\"");
      }
    }
  }
View Full Code Here

        // boolean properties are not written to the properties file because the value from the caller is always used

        for ( Object o : config.getReleaseVersions().entrySet() )
        {
            Entry entry = (Entry) o;
            properties.setProperty( "project.rel." + entry.getKey(), (String) entry.getValue() );
        }

        for ( Object o : config.getDevelopmentVersions().entrySet() )
        {
            Entry entry = (Entry) o;
            properties.setProperty( "project.dev." + entry.getKey(), (String) entry.getValue() );
        }

        for ( Object o : config.getOriginalScmInfo().entrySet() )
        {
            Entry entry = (Entry) o;
            Scm scm = (Scm) entry.getValue();
            String prefix = "project.scm." + entry.getKey();
            if ( scm != null )
            {
                if ( scm.getConnection() != null )
                {
                    properties.setProperty( prefix + ".connection", scm.getConnection() );
                }
                if ( scm.getDeveloperConnection() != null )
                {
                    properties.setProperty( prefix + ".developerConnection", scm.getDeveloperConnection() );
                }
                if ( scm.getUrl() != null )
                {
                    properties.setProperty( prefix + ".url", scm.getUrl() );
                }
                if ( scm.getTag() != null )
                {
                    properties.setProperty( prefix + ".tag", scm.getTag() );
                }
            }
            else
            {
                properties.setProperty( prefix + ".empty", "true" );
            }
        }

        for ( Object o : config.getEnvironments().entrySet() )
        {
            Entry entry = (Entry) o;
            properties.setProperty( "build.env." + entry.getKey(), (String) entry.getValue() );
        }

        if ( ( config.getResolvedSnapshotDependencies() != null ) &&
            ( config.getResolvedSnapshotDependencies().size() > 0 ) )
        {
View Full Code Here

    private void processResolvedDependencies( Properties prop, Map resolvedDependencies )
    {
        Set entries = resolvedDependencies.entrySet();
        Iterator iterator = entries.iterator();
        Entry currentEntry;

        while ( iterator.hasNext() )
        {
            currentEntry = (Entry) iterator.next();

            Map versionMap = (Map) currentEntry.getValue();

            prop.setProperty( "dependency." + currentEntry.getKey() + ".release",
                              (String) versionMap.get( ReleaseDescriptor.RELEASE_KEY ) );
            prop.setProperty( "dependency." + currentEntry.getKey() + ".development",
                              (String) versionMap.get( ReleaseDescriptor.DEVELOPMENT_KEY ) );
        }
    }
View Full Code Here

TOP

Related Classes of java.util.Map.Entry

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.