Examples of Versions


Examples of com.dubture.getcomposer.core.collection.Versions

      public void packageLoaded(final RepositoryPackage repositoryPackage) {
        dataArrived = true;
        pkg = repositoryPackage;
       
        // get major and minor
        Versions versions = pkg.getVersions();
       
        majorVersion = versions.getRecentMajor();
        minorVersion = versions.getRecentMinor(majorVersion);
       
        if (!updatingTarget) {
          updateUI();
        }
      }
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Versions

        isLoadingVersions = false;
      }

      @Override
      public void packageLoaded(RepositoryPackage repositoryPackage) {
        Versions versions = repositoryPackage.getVersions();
        final List<String> versionNames = new ArrayList<String>();
        for (Entry<String, ComposerPackage> version : versions) {
          versionNames.add(version.getValue().getVersion());
        }
View Full Code Here

Examples of com.dubture.getcomposer.core.collection.Versions

       
      }

      @Override
      public void packageLoaded(RepositoryPackage repositoryPackage) {
        Versions versions = repositoryPackage.getVersions();
        final List<String> versionNames = new ArrayList<String>();
        for (Entry<String, ComposerPackage> version : versions) {
          versionNames.add(version.getValue().getVersion());
        }
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.parsers.Versions

    String url = "/rs/products/{prodName}/versions";
    prodName = URLEncoder.encode(prodName, "UTF-8").replace("+", "%20");
    url = url.replace("{prodName}", prodName);
    WebResource webResource = connectionManager.getConnection().resource(
        connectionManager.getConfig().getUrl() + url);
    Versions vers = get(webResource, Versions.class);
    return vers.getVersion();
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.container.Versions

    return projects;
  }
 
  public Versions getVersions() {
    if(versions==null) {
      versions = new Versions();
    }
    return versions;
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.container.Versions

    input.close();
  }

  @Test
  public void testParseResponse() throws Exception {
    Versions ct = testee.parseResponse(input, HttpStatus.SC_OK);
   
    assertNotNull(ct);
    assertEquals(VersionValidator.COUNT, ct.getAll().size());
   
    VersionValidator.validate1(ct.getById(1));
    VersionValidator.validate2(ct.getById(2));
    VersionValidator.validate3(ct.getById(3));
   
    List<Version> versions = ct.getById(new int[]{2,3});
    assertNotNull(versions);
    assertEquals(2, versions.size());
    VersionValidator.validate2(versions.get(0));
    VersionValidator.validate3(versions.get(1));

    versions = ct.getOpenById(new int[]{1,2,3});
    assertEquals(2, versions.size());
    assertEquals(2, versions.get(0).getId());
    assertEquals(3, versions.get(1).getId());
  }
View Full Code Here

Examples of org.dtk.resources.dependencies.DojoScriptVersions.Versions

   * @return Dojo script tag found or Versions.UNKNOWN
   * @throws ParseException - Error creating digest
   */
  protected Versions lookupExactDojoVersionForScript() throws ParseException {
    MessageDigest md;
    Versions scriptVersion = Versions.UNKNOWN;
    try {
      // Create digest from script contents
      md = MessageDigest.getInstance(DIGEST_ALGO);
      md.update(getScriptSource());
     
View Full Code Here

Examples of org.jboss.remotingjmx.protocol.Versions

                throw new IOException("Timeout out waiting for header, status=" + result.toString());
        }

        InitialHeader header = futureHeader.get();

        Versions versions = new Versions(environment);
        Set<Byte> supportedVersions = versions.getSupportedVersions(getRequiredCapabilities(serviceURL));

        // Find the highest version. - By this point the exceptional handling of version 0x00 will have completed.
        byte highest = 0x00;
        for (byte current : header.versions) {
            // Only accept it if it is one of the supported versions otherwise ignore as noise.
            if (supportedVersions.contains(current) && current > highest) {
                highest = current;
            }
        }

        if (highest == 0x00) {
            throw new IllegalStateException("No matching supported protocol version found.");
        }

        // getVersionedConnection may also make use of an IoFuture but our previous use of one has ended.
        return versions.getVersionedConnection(highest, channel, serviceURL);
    }
View Full Code Here

Examples of org.jboss.remotingjmx.protocol.Versions

            final Executor executor, final Map<String, ?> environment,
            final ServerMessageInterceptorFactory serverMessageInterceptorFactory) {
        this.mbeanServerManager = new DelegatingMBeanServerManager(mbeanServerLocator);
        this.endpoint = endpoint;
        this.executor = executor;
        versions = new Versions(environment);
        this.serverMessageInterceptorFactory = serverMessageInterceptorFactory != null ? serverMessageInterceptorFactory : DefaultServerInterceptorFactory.FACTORY_INSTANCE;
    }
View Full Code Here

Examples of org.jboss.remotingjmx.protocol.Versions

            final Executor executor, final Map<String, ?> environment,
            final ServerMessageInterceptorFactory serverMessageInterceptorFactory) {
        this.mbeanServerManager = mbeanServerManager;
        this.endpoint = endpoint;
        this.executor = executor;
        versions = new Versions(environment);
        this.serverMessageInterceptorFactory = serverMessageInterceptorFactory != null ? serverMessageInterceptorFactory : DefaultServerInterceptorFactory.FACTORY_INSTANCE;
    }
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.