Package dev.equo.solstice.p2
Class RepoStatus
- java.lang.Object
-
- dev.equo.solstice.p2.RepoStatus
-
- All Implemented Interfaces:
java.lang.Comparable<RepoStatus>
public class RepoStatus extends java.lang.Object implements java.lang.Comparable<RepoStatus>
Determines where a P2Unit is available. Therepo()method returns one of the following values:maven centralmeans the jar is on maven central. (MAVEN_CENTRAL)maven central?means the jar on maven central according to this heuristic. (MAVEN_CENTRAL_INFERRED)p2 4.25to indicate that the jar is on p2. The part after the p2 is the last segment in the p2 repository URL to help disambiguate between multiple p2 repositories. (P2_)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAVEN_This unit is available on some maven server, determined after this token.static java.lang.StringMAVEN_CENTRALThis unit is available on Maven Central because of a propertymaven-repository = eclipse.maven.central.mirrorstatic java.lang.StringMAVEN_CENTRAL_INFERREDThis unit is probably available on Maven Central because of the logic in MavenCentralMapping.javastatic java.lang.StringP2_This unit is only available in p2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RepoStatus o)Sorts on repo first, then based on coordinate.java.lang.Stringcoordinate()group:artifact:version ifisOnMavenCentral()else id:version.static RepoStatusforUnit(P2Unit unit)booleanisOnMavenCentral()java.lang.Stringrepo()UI string for showing where jars come from in a table, see class description.
-
-
-
Field Detail
-
MAVEN_
public static final java.lang.String MAVEN_
This unit is available on some maven server, determined after this token.- See Also:
- Constant Field Values
-
MAVEN_CENTRAL
public static final java.lang.String MAVEN_CENTRAL
This unit is available on Maven Central because of a propertymaven-repository = eclipse.maven.central.mirror- See Also:
- Constant Field Values
-
MAVEN_CENTRAL_INFERRED
public static final java.lang.String MAVEN_CENTRAL_INFERRED
This unit is probably available on Maven Central because of the logic in MavenCentralMapping.java- See Also:
- Constant Field Values
-
P2_
public static final java.lang.String P2_
This unit is only available in p2.- See Also:
- Constant Field Values
-
-
Method Detail
-
isOnMavenCentral
public boolean isOnMavenCentral()
-
coordinate
public java.lang.String coordinate()
group:artifact:version ifisOnMavenCentral()else id:version.
-
repo
public java.lang.String repo()
UI string for showing where jars come from in a table, see class description.
-
forUnit
public static RepoStatus forUnit(P2Unit unit)
-
compareTo
public int compareTo(RepoStatus o)
Sorts on repo first, then based on coordinate.- Specified by:
compareToin interfacejava.lang.Comparable<RepoStatus>
-
-