public class RepositoryOptionImpl extends Object implements RepositoryOption
RepositoryOption implementation.| Constructor and Description |
|---|
RepositoryOptionImpl(String repositoryUrl)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public RepositoryOptionImpl(String repositoryUrl)
repositoryUrl - repository url (cannot be null or empty)IllegalArgumentException - - If repository url is null or emptypublic RepositoryOptionImpl allowSnapshots()
RepositoryOptionallowSnapshots in interface RepositoryOptionpublic RepositoryOptionImpl disableReleases()
RepositoryOptiondisableReleases in interface RepositoryOptionpublic RepositoryOption id(String _id)
RepositoryOptionid in interface RepositoryOption_id - repository identifierpublic String getRepository()
IllegalStateException - - if both snapshots and releases are not allowedpublic String getValue()
getValue in interface ValueOption<String>Copyright © 2006–2017 OPS4J - Open Participation Software for Java. All rights reserved.