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
Modifier and TypeFieldDescriptionstatic final String
A property key (value"org.eclipse.equinox.p2.type.category"
) for a boolean property indicating that an installable unit is a category.static final String
A property key (value"org.eclipse.equinox.p2.type.fragment"
) for a boolean property indicating that an installable unit is a fragment.static final String
A property key (value"org.eclipse.equinox.p2.type.patch"
) for a boolean property indicating that an installable unit is a group.static final String
A property key (value"org.eclipse.equinox.p2.type.patch"
) for a boolean property indicating that an installable unit is a patch.static final String
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. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvidedCapabilities
(Collection<IProvidedCapability> additional) Add the specified capabilities to the installable unit.void
addRequiredCapabilities
(Collection<IRequirement> additional) Deprecated.Use addRequirements(additional) insteadvoid
addRequirements
(Collection<IRequirement> additional) Add the specified requirements to the installable unit.void
getId()
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.void
setArtifacts
(IArtifactKey[] value) Set the artifact keys for the installable unit.void
setCapabilities
(IProvidedCapability[] exportedCapabilities) Set the capabilities for the installable unit.void
setCopyright
(ICopyright copyright) Set the copyright for the installable unit.void
void
setFilter
(IMatchExpression<IInstallableUnit> filter) void
Set the id of the installable unit.void
setLicenses
(ILicense[] licenses) Set the licenses for the installable unit.void
setMetaRequiredCapabilities
(IRequirement[] metaRequirements) Deprecated.Use setMetaRequirements(requirements) insteadvoid
setMetaRequirements
(IRequirement[] metaRequirements) Set the meta requirements for the installable unit.void
setProperty
(String key, String value) Set a property with a specified value for this installable unit.void
setRequiredCapabilities
(IRequirement[] requirements) Deprecated.Use setRequirements(requirements) insteadvoid
setRequirements
(IRequirement[] requirements) Set the requirements for the installable unit.void
setSingleton
(boolean singleton) Change the singleton status of the installable unit.void
Set the touchpoint type for the installable unit.void
setUpdateDescriptor
(IUpdateDescriptor updateInfo) Set the update descriptor for the installable unit.void
setVersion
(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.
-