Tabnine Logo
VersionRange.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.aries.util.VersionRange

Best Java code snippets using org.apache.aries.util.VersionRange.toString (Showing top 14 results out of 315)

origin: org.apache.aries.application/org.apache.aries.application.utils

public ContentImpl (String bundleSymbolicName, VersionRange version) { 
 this.contentName = bundleSymbolicName;
 this.nameValueMap = new HashMap<String, String>();
 nameValueMap.put("version", version.toString());
 setup();
}
/**
origin: apache/aries

public ContentImpl (String bundleSymbolicName, VersionRange version) { 
 this.contentName = bundleSymbolicName;
 this.nameValueMap = new HashMap<String, String>();
 nameValueMap.put("version", version.toString());
 setup();
}
/**
origin: org.apache.aries.application/org.apache.aries.application.resolver.obr

private Collection<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
{
 log.debug(LOG_ENTRY, "toImportedBundle", content);
 List<ImportedBundle> result = new ArrayList<ImportedBundle>();
 for (Content c : content) {
  try {
  result.add(modellingManager.getImportedBundle(c.getContentName(), c.getVersion().toString()));
  } catch (InvalidAttributeException iae) {
   throw new ResolverException(iae);
  }
 }
 log.debug(LOG_EXIT, "toImportedBundle", result);
 return result;
}
origin: apache/aries

private Collection<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
{
 log.debug(LOG_ENTRY, "toImportedBundle", content);
 List<ImportedBundle> result = new ArrayList<ImportedBundle>();
 for (Content c : content) {
  try {
  result.add(modellingManager.getImportedBundle(c.getContentName(), c.getVersion().toString()));
  } catch (InvalidAttributeException iae) {
   throw new ResolverException(iae);
  }
 }
 log.debug(LOG_EXIT, "toImportedBundle", result);
 return result;
}
origin: apache/aries

/**
 * Covert a collection of contents to a collection of ImportedBundle objects
 * @param content a collection of content
 * @return a collection of ImportedBundle objects
 * @throws ResolverException
 */
private Set<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
{
 _logger.debug(LOG_ENTRY, "toImportedBundle", new Object[]{content});
 Set<ImportedBundle> result = new HashSet<ImportedBundle>();
 for (Content c : content) {
  try {
   result.add(modellingManager.getImportedBundle(c.getContentName(), c.getVersion().toString()));
  } catch (InvalidAttributeException iax) { 
   ResolverException rx = new ResolverException (iax);
   _logger.debug(LOG_EXIT, "toImportedBundle", new Object[]{rx});
   throw rx;
  }
 }
 _logger.debug(LOG_EXIT, "toImportedBundle", new Object[]{result});
 return result;
}
origin: org.apache.aries.application/org.apache.aries.application.resolver.obr

@Override
public BundleInfo getBundleInfo(String bundleSymbolicName, Version bundleVersion)
{
 Map<String, String> attribs = new HashMap<String, String>();
 // bundleVersion is an exact version - so ensure right version filter is generated
 VersionRange range = ManifestHeaderProcessor.parseVersionRange(bundleVersion.toString(), true);
 attribs.put(Resource.VERSION, range.toString());
 String filterString = ManifestHeaderProcessor.generateFilter(Resource.SYMBOLIC_NAME, bundleSymbolicName, attribs);
 Resource[] resources;
 try {
  resources = repositoryAdmin.discoverResources(filterString);
  if (resources != null && resources.length > 0) {
   return toBundleInfo(resources[0], false);
  } else {
   return null;
  }
 } catch (InvalidSyntaxException e) {
  log.error("Invalid filter", e);
  return null;
 }
}
origin: org.apache.aries.application/org.apache.aries.application.deployment.management

/**
 * Covert a collection of contents to a collection of ImportedBundle objects
 * @param content a collection of content
 * @return a collection of ImportedBundle objects
 * @throws ResolverException
 */
private Set<ImportedBundle> toImportedBundle(Collection<Content> content) throws ResolverException
{
 _logger.debug(LOG_ENTRY, "toImportedBundle", new Object[]{content});
 Set<ImportedBundle> result = new HashSet<ImportedBundle>();
 for (Content c : content) {
  try {
   result.add(modellingManager.getImportedBundle(c.getContentName(), c.getVersion().toString()));
  } catch (InvalidAttributeException iax) { 
   ResolverException rx = new ResolverException (iax);
   _logger.debug(LOG_EXIT, "toImportedBundle", new Object[]{rx});
   throw rx;
  }
 }
 _logger.debug(LOG_EXIT, "toImportedBundle", new Object[]{result});
 return result;
}
origin: apache/aries

@Override
public BundleInfo getBundleInfo(String bundleSymbolicName, Version bundleVersion)
{
 Map<String, String> attribs = new HashMap<String, String>();
 // bundleVersion is an exact version - so ensure right version filter is generated
 VersionRange range = ManifestHeaderProcessor.parseVersionRange(bundleVersion.toString(), true);
 attribs.put(Resource.VERSION, range.toString());
 String filterString = ManifestHeaderProcessor.generateFilter(Resource.SYMBOLIC_NAME, bundleSymbolicName, attribs);
 Resource[] resources;
 try {
  resources = repositoryAdmin.discoverResources(filterString);
  if (resources != null && resources.length > 0) {
   return toBundleInfo(resources[0], false);
  } else {
   return null;
  }
 } catch (InvalidSyntaxException e) {
  log.error("Invalid filter", e);
  return null;
 }
}
origin: org.apache.aries.application/org.apache.aries.application.modeller

mergedAttribs.put(Constants.VERSION_ATTRIBUTE, intersectRange.toString());
origin: apache/aries

mergedAttribs.put(Constants.VERSION_ATTRIBUTE, intersectRange.toString());
origin: apache/aries

Content content = ContentFactory.parseContent(constraint.getBundleName(), constraint.getVersionRange().toString());
restrictedReqs.add(content);
origin: org.apache.aries.application/org.apache.aries.application.deployment.management

Content content = ContentFactory.parseContent(constraint.getBundleName(), constraint.getVersionRange().toString());
restrictedReqs.add(content);
origin: org.apache.aries.application/org.apache.aries.application.resolver.obr

if ((constraints != null ) && (constraints.length > 0 )) {
 for (ResolveConstraint con: constraints) {
  contents.add(ContentFactory.parseContent(con.getBundleName(), con.getVersionRange().toString()));
origin: apache/aries

if ((constraints != null ) && (constraints.length > 0 )) {
 for (ResolveConstraint con: constraints) {
  contents.add(ContentFactory.parseContent(con.getBundleName(), con.getVersionRange().toString()));
org.apache.aries.utilVersionRangetoString

Popular methods of VersionRange

  • getMaximumVersion
    get the maximum version
  • getMinimumVersion
    get the minimum version
  • isMaximumExclusive
    is the maximum version exclusive
  • isMinimumExclusive
    is the minimum version exclusive
  • matches
    This method checks that the provided version matches the desired version.
  • equals
  • getExactVersion
    this method returns the exact version from the versionInfo obj. this is used for DeploymentContent o
  • isExactVersion
    check if the versioninfo is the exact version
  • parseVersionRange
    Parse a version range and indicate if the version is an exact version
  • <init>
    Constructor designed for internal use only.
  • assertInvariants
    Assert object invariants. Called by constructors to verify that arguments were valid.
  • intersect
    Create a new version range that is the intersection of this and the argument. In other words, the la
  • assertInvariants,
  • intersect,
  • isRangeValid,
  • processExactVersionAttribute,
  • processVersionAttribute

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now