public class DependencySeed
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
DependencySeed.Filter |
Modifier and Type | Field and Description |
---|---|
private DependencySeed.Filter |
addOnFilter |
private java.lang.String |
id |
private java.lang.Object |
installableUnit |
private java.lang.String |
type |
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId() |
java.lang.Object |
getInstallableUnit() |
java.lang.String |
getType() |
boolean |
isAddOnFor(java.lang.String otherType,
java.lang.String otherId)
Returns
true if this dependency is an add-on for the given other dependency
seed. |
java.lang.String |
toString() |
private final java.lang.String type
private final java.lang.String id
private final java.lang.Object installableUnit
private final DependencySeed.Filter addOnFilter
public DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit)
type
- The type of the seed unit. See ArtifactType
for known types. May be
null
.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
be null
.public DependencySeed(java.lang.String type, java.lang.String id, java.lang.Object installableUnit, DependencySeed.Filter isAddOnFor)
type
- The type of the seed unit. See ArtifactType
for known types. May be
null
.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
be null
.isAddOnFor
- Filter used to answer calls to isAddOnFor(String, String)
public java.lang.String getType()
ArtifactType
for known types. May be
null
.public java.lang.String getId()
public java.lang.Object getInstallableUnit()
null
.public boolean isAddOnFor(java.lang.String otherType, java.lang.String otherId)
true
if 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.public java.lang.String toString()
toString
in class java.lang.Object