Class DependencySeed

java.lang.Object
org.eclipse.tycho.DependencySeed

public class DependencySeed extends Object
Handle 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.
  • Constructor Details

    • DependencySeed

      public DependencySeed(String type, String id, org.eclipse.equinox.p2.metadata.IInstallableUnit installableUnit)
      Parameters:
      type - The type of the seed unit. See ArtifactType for known types. May be null.
      id - Identifier of the seed unit.
      installableUnit - The seed unit as IInstallableUnit, which contains the dependency information. May be null.
      version - Exact version (i.e. qualified) version of the unit.
    • DependencySeed

      public DependencySeed(String type, String id, org.eclipse.equinox.p2.metadata.IInstallableUnit installableUnit, DependencySeed.Filter isAddOnFor)
      Parameters:
      type - The type of the seed unit. See ArtifactType for known types. May be null.
      id - Identifier of the seed 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)
      version - Exact version (i.e. qualified) version of the unit.
  • Method Details

    • getType

      public String getType()
      Returns:
      the type of the seed unit. See ArtifactType for known types. May be null.
    • getId

      public String getId()
      Returns:
      the identifier of the seed unit.
    • getInstallableUnit

      public org.eclipse.equinox.p2.metadata.IInstallableUnit getInstallableUnit()
      Returns:
      the seed unit as IInstallableUnit. May be null.
    • isAddOnFor

      public boolean isAddOnFor(String otherType, String otherId)
      Returns 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.
      Parameters:
      otherType - Type of the other dependency seed (as returned by getType())
      otherId - Identifier of the other dependency see (as returned by getId())
      Returns:
      true if this dependency is an add-on for the other dependency seed. The default is false.
    • toString

      public String toString()
      Overrides:
      toString in class Object