Class DependencySeed
- java.lang.Object
-
- org.eclipse.tycho.core.resolver.shared.DependencySeed
-
public class DependencySeed extends java.lang.ObjectHandle on a unit which defines dependencies of a project. There may be more than one dependency seed per project. The seeds are used for product and p2 repository assembly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDependencySeed.Filter
-
Field Summary
Fields Modifier and Type Field Description private DependencySeed.FilteraddOnFilterprivate java.lang.Stringidprivate java.lang.ObjectinstallableUnitprivate java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit)DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit, DependencySeed.Filter isAddOnFor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()java.lang.ObjectgetInstallableUnit()java.lang.StringgetType()booleanisAddOnFor(java.lang.String otherType, java.lang.String otherId)Returnstrueif this dependency is an add-on for the given other dependency seed.java.lang.StringtoString()
-
-
-
Field Detail
-
type
private final java.lang.String type
-
id
private final java.lang.String id
-
installableUnit
private final java.lang.Object installableUnit
-
addOnFilter
private final DependencySeed.Filter addOnFilter
-
-
Constructor Detail
-
DependencySeed
public DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit)- Parameters:
type- The type of the seed unit. SeeArtifactTypefor known types. May benull.id- Identifier of the seed unit.version- Exact version (i.e. qualified) version of the unit.installableUnit- The seed unit as IInstallableUnit, which contains the dependency information. May benull.
-
DependencySeed
public DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit, DependencySeed.Filter isAddOnFor)- Parameters:
type- The type of the seed unit. SeeArtifactTypefor known types. May benull.id- Identifier of the seed unit.version- Exact version (i.e. qualified) version of the unit.installableUnit- The seed unit as IInstallableUnit, which contains the dependency information. May benull.isAddOnFor- Filter used to answer calls toisAddOnFor(String, String)
-
-
Method Detail
-
getType
public java.lang.String getType()
- Returns:
- the type of the seed unit. See
ArtifactTypefor known types. May benull.
-
getId
public java.lang.String getId()
- Returns:
- the identifier of the seed unit.
-
getInstallableUnit
public java.lang.Object getInstallableUnit()
- Returns:
- the seed unit as IInstallableUnit. May be
null.
-
isAddOnFor
public boolean isAddOnFor(java.lang.String otherType, java.lang.String otherId)Returnstrueif this dependency is an add-on for the given other dependency seed. This is used to identify features which shall be installed at root level together with products.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-