Package org.eclipse.tycho.p2.resolver
Class DefaultP2ResolutionResultEntry
- java.lang.Object
-
- org.eclipse.tycho.p2.resolver.DefaultP2ResolutionResultEntry
-
- All Implemented Interfaces:
ArtifactKey
,P2ResolutionResult.Entry
public class DefaultP2ResolutionResultEntry extends java.lang.Object implements P2ResolutionResult.Entry
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
classifier
private java.lang.String
id
private java.util.Set<java.lang.Object>
installableUnits
private java.util.function.Supplier<java.io.File>
location
private java.io.File
resolvedFile
private java.lang.String
type
private java.lang.String
version
-
Constructor Summary
Constructors Constructor Description DefaultP2ResolutionResultEntry(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.io.File resolvedLocation)
DefaultP2ResolutionResultEntry(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.util.function.Supplier<java.io.File> delayedLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addInstallableUnit(java.lang.Object installableUnit)
java.lang.String
getClassifier()
java.lang.String
getId()
Eclipse/OSGi artifact id (bundle symbolic name, feature id, etc).java.util.Set<java.lang.Object>
getInstallableUnits()
java.io.File
getLocation(boolean fetch)
java.lang.String
getType()
Artifact type.java.lang.String
getVersion()
Eclipse/OSGi artifact version.void
setId(java.lang.String id)
void
setType(java.lang.String type)
void
setVersion(java.lang.String version)
-
-
-
Field Detail
-
type
private java.lang.String type
-
id
private java.lang.String id
-
version
private java.lang.String version
-
installableUnits
private java.util.Set<java.lang.Object> installableUnits
-
classifier
private java.lang.String classifier
-
location
private final java.util.function.Supplier<java.io.File> location
-
resolvedFile
private java.io.File resolvedFile
-
-
Constructor Detail
-
DefaultP2ResolutionResultEntry
public DefaultP2ResolutionResultEntry(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.util.function.Supplier<java.io.File> delayedLocation)
-
DefaultP2ResolutionResultEntry
public DefaultP2ResolutionResultEntry(java.lang.String type, java.lang.String id, java.lang.String version, java.lang.String classifier, java.io.File resolvedLocation)
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from interface:ArtifactKey
Artifact type. Should be one of theArtifactType
constants.- Specified by:
getType
in interfaceArtifactKey
-
getId
public java.lang.String getId()
Description copied from interface:ArtifactKey
Eclipse/OSGi artifact id (bundle symbolic name, feature id, etc). Can differ from Maven artifactId.- Specified by:
getId
in interfaceArtifactKey
-
getVersion
public java.lang.String getVersion()
Description copied from interface:ArtifactKey
Eclipse/OSGi artifact version. Can differ from Maven version. For maven projects, this version corresponds to version specified in the project sources and does not reflect qualifier expansion.- Specified by:
getVersion
in interfaceArtifactKey
-
getLocation
public java.io.File getLocation(boolean fetch)
- Specified by:
getLocation
in interfaceP2ResolutionResult.Entry
- Parameters:
fetch
- whether to force fetching the artifact from the repository if file isn't already available locally.- Returns:
- the artifact file location on local filesystem. If file is not already available
locally and
fetch=false
, this returnsnull
.
-
getInstallableUnits
public java.util.Set<java.lang.Object> getInstallableUnits()
- Specified by:
getInstallableUnits
in interfaceP2ResolutionResult.Entry
-
addInstallableUnit
void addInstallableUnit(java.lang.Object installableUnit)
-
getClassifier
public java.lang.String getClassifier()
- Specified by:
getClassifier
in interfaceP2ResolutionResult.Entry
-
setType
public void setType(java.lang.String type)
-
setId
public void setId(java.lang.String id)
-
setVersion
public void setVersion(java.lang.String version)
-
-