Examples of Version


Examples of org.outerj.daisy.repository.Version

        String query = "select id, name where InCollection('" + collection + "') and branch = '" + branch + "'";
        VariantKey[] keys = queryManager.performQueryReturnKeys(query, Locale.getDefault());

        for (VariantKey key : keys) {
            Document doc = repository.getDocument(key, false);
            Version version = doc.getLiveVersion();
            if (version == null) {
                continue;
            }

            for (Part part : version.getParts().getArray()) {
                if (schema.getPartTypeById(part.getTypeId(), false).isDaisyHtml()) {
                    InputStream is = part.getDataStream();
                    org.w3c.dom.Document domDoc = DocumentHelper.parse(is);
                    NodeList links = XPathUtils.evalNodeList("//a/@href", domDoc.getDocumentElement());
                    for (int j = 0; j < links.getLength(); j++) {
                        String link = ((Attr)links.item(j)).getValue();
                        System.out.printf("[%1$10.10s][%2$30.30s][%3$10.10s] %4$s\n", key.getDocumentId(),
                                version.getDocumentName(), part.getTypeName(), link);
                    }
                    is.close();
                }
            }
        }
View Full Code Here

Examples of org.pdfclown.Version

  */
  public FileInfo readInfo(
    ) throws FileFormatException
  {
//TODO:hybrid xref table/stream
    Version version = Version.get(parser.retrieveVersion());
    PdfDictionary trailer = null;
    SortedMap<Integer,XRefEntry> xrefEntries = new TreeMap<Integer,XRefEntry>();
    {
      long sectionOffset = parser.retrieveXRefOffset();
      while(sectionOffset > -1)
View Full Code Here

Examples of org.projectforge.Version

  public DatabaseUpdateDO setVersionString(final String versionString)
  {
    if (versionString == null) {
      version = null;
    } else {
      version = new Version(versionString);
    }
    return this;
  }
View Full Code Here

Examples of org.renjin.primitives.io.serialization.Version

public class VersionTest {

  @Test
  public void pack() {
    Version version = new Version(2,10,1);
    assertThat( version.asPacked(), equalTo(133633));

  }
View Full Code Here

Examples of org.semanticweb.owlapi.util.Version

        }
        while (filled<version.length) {
            version[filled]=0;
            filled++;
        }
        return new Version(version[0],version[1],version[2],version[3]);
    }
View Full Code Here

Examples of org.sonar.updatecenter.common.Version

    if (null == this.sonarVersion) {
      // Plugins without sonar version are so old, they are compatible with a version containing this code
      return true;
    }

    Version minimumVersion = Version.createRelease(this.sonarVersion);
    Version actualVersion = Version.createRelease(sonarVersion);
    return actualVersion.compareTo(minimumVersion) >= 0;
  }
View Full Code Here

Examples of org.sonatype.aether.version.Version

        if (artifact.getVersion().equals("LATEST")) {
            artifact = artifact.setVersion(LATEST_VERSION_RANGE);

            VersionRangeResult versionResult = m_repoSystem.resolveVersionRange(session, new VersionRangeRequest(artifact, m_remoteRepos, null));
            if (versionResult != null) {
                Version v = versionResult.getHighestVersion();
                if (v != null) {

                    artifact = artifact.setVersion(v.toString());
                } else {
                    throw new VersionRangeResolutionException(versionResult, "Not highest version found for " + artifact);
                }
            }
        }
View Full Code Here

Examples of org.sonatype.nexus.client.core.condition.internal.Version

    /**
     * Returns true if both, editionShort and version matches the given constraints.
     */
    public boolean isSatisfiedBy(final NexusStatus status) {
      final Version version = parseVersion(status.getVersion());
      return suitableVersions.containsVersion(version);
    }
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.metadata.operations.ModelVersionUtility.Version

    // and it was true even for userSupportedVersion being null (ie. not user agent string supplied!)!!!
    final boolean remoteCall = request.getRequestContext().containsKey(AccessManager.REQUEST_REMOTE_ADDRESS);
    final String userAgent = (String) request.getRequestContext().get(AccessManager.REQUEST_AGENT);

    if (remoteCall && null != userAgent) {
      final Version userSupportedVersion = getClientSupportedVersion(userAgent);

      // we still can make up our mind here, we do this only if we know: this request is about metadata,
      // the client's metadata version is known and it is not the latest one
      if (M2ArtifactRecognizer.isMetadata(request.getRequestPath()) && userSupportedVersion != null
          && !ModelVersionUtility.LATEST_MODEL_VERSION.equals(userSupportedVersion)) {
        // metadata checksum files are calculated and cached as side-effect
        // of doRetrieveMetadata.
        final StorageFileItem mdItem;
        if (M2ArtifactRecognizer.isChecksum(request.getRequestPath())) {
          String path = request.getRequestPath();
          if (request.getRequestPath().endsWith(".md5")) {
            path = path.substring(0, path.length() - 4);
          }
          else if (request.getRequestPath().endsWith(".sha1")) {
            path = path.substring(0, path.length() - 5);
          }
          // we have to keep original reqest's flags: localOnly and remoteOnly are strange ones, so
          // we do a hack here
          // second, since we initiate a request for different path within a context of this request,
          // we need to be careful about it
          ResourceStoreRequest mdRequest =
              new ResourceStoreRequest(path, request.isRequestLocalOnly(), request.isRequestRemoteOnly());
          mdRequest.getRequestContext().setParentContext(request.getRequestContext());

          mdItem = (StorageFileItem) super.retrieveItem(false, mdRequest);
        }
        else {
          mdItem = (StorageFileItem) super.doRetrieveItem(request);
        }

        try {
          Metadata metadata;
          try (final InputStream inputStream = mdItem.getInputStream()) {
            metadata = MetadataBuilder.read(inputStream);
          }

          Version requiredVersion = getClientSupportedVersion(userAgent);
          Version metadataVersion = ModelVersionUtility.getModelVersion(metadata);

          if (requiredVersion == null || requiredVersion.equals(metadataVersion)) {
            return super.doRetrieveItem(request);
          }
View Full Code Here

Examples of org.springframework.data.redis.Version

    connectionFactory.setTimeout(100);

    connectionFactory.afterPropertiesSet();
    RedisConnection connection = connectionFactory.getConnection();

    Version version = Version.UNKNOWN;

    try {
      version = RedisVersionUtils.getRedisVersion(connection);
      connection.close();
    } finally {
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.