Class VersionRangeRequest

java.lang.Object
org.eclipse.aether.resolution.VersionRangeRequest

public final class VersionRangeRequest extends Object
A request to resolve a version range.
See Also:
  • Constructor Details

    • VersionRangeRequest

      Creates an uninitialized request.
    • VersionRangeRequest

      public VersionRangeRequest(Artifact artifact, List<RemoteRepository> repositories, String context)
      Creates a request with the specified properties.
      Parameters:
      artifact - The artifact whose version range should be resolved, may be null.
      repositories - The repositories to resolve the version from, may be null.
      context - The context in which this request is made, may be null.
  • Method Details

    • getArtifact

      Gets the artifact whose version range shall be resolved.
      Returns:
      The artifact or null if not set.
    • setArtifact

      Sets the artifact whose version range shall be resolved.
      Parameters:
      artifact - The artifact, may be null.
      Returns:
      This request for chaining, never null.
    • getRepositories

      Gets the repositories to resolve the version range from.
      Returns:
      The repositories, never null.
    • setRepositories

      Sets the repositories to resolve the version range from.
      Parameters:
      repositories - The repositories, may be null.
      Returns:
      This request for chaining, never null.
    • addRepository

      Adds the specified repository for the resolution.
      Parameters:
      repository - The repository to add, may be null.
      Returns:
      This request for chaining, never null.
    • getRequestContext

      Gets the context in which this request is made.
      Returns:
      The context, never null.
    • setRequestContext

      Sets the context in which this request is made.
      Parameters:
      context - The context, may be null.
      Returns:
      This request for chaining, never null.
    • getTrace

      Gets the trace information that describes the higher level request/operation in which this request is issued.
      Returns:
      The trace information about the higher level operation or null if none.
    • setTrace

      Sets the trace information that describes the higher level request/operation in which this request is issued.
      Parameters:
      trace - The trace information about the higher level operation, may be null.
      Returns:
      This request for chaining, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object