public class

RepositoryOptionImpl

extends Object
implements RepositoryOption
java.lang.Object
   ↳ org.ops4j.pax.exam.options.extra.RepositoryOptionImpl

Class Overview

RepositoryOption implementation.

Summary

Public Constructors
RepositoryOptionImpl(String repositoryUrl)
Constructor.
Public Methods
RepositoryOptionImpl allowSnapshots()
Mark repository as allowing snapshots.
RepositoryOptionImpl disableReleases()
Mark repository as not allowing releases.
String getRepository()
Returns the full repository url.
String getValue()
RepositoryOption id(String _id)
Defines repository identifier to be referenced in Maven settings.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ops4j.pax.exam.options.ValueOption
From interface org.ops4j.pax.exam.options.extra.RepositoryOption

Public Constructors

public RepositoryOptionImpl (String repositoryUrl)

Constructor.

Parameters
repositoryUrl repository url (cannot be null or empty)
Throws
IllegalArgumentException - If repository url is null or empty

Public Methods

public RepositoryOptionImpl allowSnapshots ()

Mark repository as allowing snapshots.

Returns
  • this for fluent API

public RepositoryOptionImpl disableReleases ()

Mark repository as not allowing releases.

Returns
  • this for fluent API

public String getRepository ()

Returns the full repository url.

Returns
  • the full repository as given plus eventual snapshot/release tags (cannot be null or empty)
Throws
IllegalStateException - if both snapshots and releases are not allowed

public String getValue ()

public RepositoryOption id (String _id)

Defines repository identifier to be referenced in Maven settings.

Returns
  • this for fluent API

public String toString ()