Package org.eclipse.equinox.p2.metadata
Class MetadataFactory.InstallableUnitDescription
java.lang.Object
org.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription
- Direct Known Subclasses:
MetadataFactory.InstallableUnitFragmentDescription,MetadataFactory.InstallableUnitPatchDescription
- Enclosing class:
MetadataFactory
A description containing information about an installable unit. Once created,
installable units are immutable. This description class allows a client to
build up the state for an installable unit incrementally, and then finally
produce the resulting immutable unit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA property key (value"org.eclipse.equinox.p2.type.category") for a boolean property indicating that an installable unit is a category.static final StringA property key (value"org.eclipse.equinox.p2.type.fragment") for a boolean property indicating that an installable unit is a fragment.static final StringA property key (value"org.eclipse.equinox.p2.type.patch") for a boolean property indicating that an installable unit is a group.static final StringA property key (value"org.eclipse.equinox.p2.type.patch") for a boolean property indicating that an installable unit is a patch.static final StringA property key (value"org.eclipse.equinox.p2.type.product") for a boolean property indicating that an installable unit is the root IU of a product. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvidedCapabilities(Collection<IProvidedCapability> additional) Add the specified capabilities to the installable unit.voidaddRequiredCapabilities(Collection<IRequirement> additional) Deprecated.Use addRequirements(additional) insteadvoidaddRequirements(Collection<IRequirement> additional) Add the specified requirements to the installable unit.voidgetId()Returns the id of the installable unit.Deprecated.Use getMetaRequirements() insteadReturn a collection of the meta requirements specified on this installable unit.Return a collection of all the capabilities specified on this installable unit.Deprecated.Use getRequirements() insteadReturn a collection of the requirements specified on this installable unit.Returns the current touchpoint data on this installable unit description.Returns the UpdateDescriptor for this IUReturn the versiono on this installable unit description.voidsetArtifacts(IArtifactKey[] value) Set the artifact keys for the installable unit.voidsetCapabilities(IProvidedCapability[] exportedCapabilities) Set the capabilities for the installable unit.voidsetCopyright(ICopyright copyright) Set the copyright for the installable unit.voidvoidsetFilter(IMatchExpression<IInstallableUnit> filter) voidSet the id of the installable unit.voidsetLicenses(ILicense[] licenses) Set the licenses for the installable unit.voidsetMetaRequiredCapabilities(IRequirement[] metaRequirements) Deprecated.Use setMetaRequirements(requirements) insteadvoidsetMetaRequirements(IRequirement[] metaRequirements) Set the meta requirements for the installable unit.voidsetProperty(String key, String value) Set a property with a specified value for this installable unit.voidsetRequiredCapabilities(IRequirement[] requirements) Deprecated.Use setRequirements(requirements) insteadvoidsetRequirements(IRequirement[] requirements) Set the requirements for the installable unit.voidsetSingleton(boolean singleton) Change the singleton status of the installable unit.voidSet the touchpoint type for the installable unit.voidsetUpdateDescriptor(IUpdateDescriptor updateInfo) Set the update descriptor for the installable unit.voidsetVersion(Version newVersion) Set the version of this installable unit.
-
Field Details
-
PROP_TYPE_GROUP
A property key (value"org.eclipse.equinox.p2.type.patch") for a boolean property indicating that an installable unit is a group.- See Also:
-
PROP_TYPE_PATCH
A property key (value"org.eclipse.equinox.p2.type.patch") for a boolean property indicating that an installable unit is a patch.- See Also:
-
PROP_TYPE_FRAGMENT
A property key (value"org.eclipse.equinox.p2.type.fragment") for a boolean property indicating that an installable unit is a fragment.- See Also:
-
PROP_TYPE_CATEGORY
A property key (value"org.eclipse.equinox.p2.type.category") for a boolean property indicating that an installable unit is a category.- See Also:
-
PROP_TYPE_PRODUCT
A property key (value"org.eclipse.equinox.p2.type.product") for a boolean property indicating that an installable unit is the root IU of a product.- Since:
- 2.2
- See Also:
-
-
Constructor Details
-
InstallableUnitDescription
public InstallableUnitDescription()
-
-
Method Details
-
addProvidedCapabilities
Add the specified capabilities to the installable unit.- Parameters:
additional- the capabilities to add.
-
addRequiredCapabilities
Deprecated.Use addRequirements(additional) instead -
addRequirements
Add the specified requirements to the installable unit.- Parameters:
additional- the requirements to add
-
addTouchpointData
-
getId
Returns the id of the installable unit. -
getProvidedCapabilities
Return a collection of all the capabilities specified on this installable unit. -
getRequiredCapabilities
Deprecated.Use getRequirements() instead -
getRequirements
Return a collection of the requirements specified on this installable unit. -
getMetaRequiredCapabilities
Deprecated.Use getMetaRequirements() instead -
getMetaRequirements
Return a collection of the meta requirements specified on this installable unit. -
getTouchpointData
Returns the current touchpoint data on this installable unit description. The touchpoint data may change if further data is added to the description.- Returns:
- The current touchpoint data on this description
-
getVersion
Return the versiono on this installable unit description. -
getUpdateDescriptor
Returns the UpdateDescriptor for this IU- Since:
- 2.1
-
setArtifacts
Set the artifact keys for the installable unit. Previous values will be overwritten.- Parameters:
value- the artifacts to the used.
-
setCapabilities
Set the capabilities for the installable unit. Previous values will be overwritten.- Parameters:
exportedCapabilities- the capabilities to be used.
-
setCopyright
Set the copyright for the installable unit. Previous values will be overwritten.- Parameters:
copyright- the copyright to be used.
-
setFilter
-
setFilter
-
setId
Set the id of the installable unit. -
setLicenses
Set the licenses for the installable unit. Previous values will be overwritten. -
setProperty
Set a property with a specified value for this installable unit.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key
-
setRequiredCapabilities
Deprecated.Use setRequirements(requirements) instead -
setRequirements
Set the requirements for the installable unit. Previous values will be overwritten.- Parameters:
requirements- the requirements to be used.
-
setMetaRequiredCapabilities
Deprecated.Use setMetaRequirements(requirements) instead -
setMetaRequirements
Set the meta requirements for the installable unit. Previous values will be overwritten.- Parameters:
metaRequirements- the meta requirements to be used.
-
setSingleton
public void setSingleton(boolean singleton) Change the singleton status of the installable unit. -
setTouchpointType
Set the touchpoint type for the installable unit. -
setUpdateDescriptor
Set the update descriptor for the installable unit. -
setVersion
Set the version of this installable unit.- Parameters:
newVersion- version to be set on the installable unit.
-