public static class MetadataFactory.InstallableUnitDescription extends Object
Modifier and Type | Field and Description |
---|---|
static String |
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. |
static String |
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. |
static String |
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. |
static String |
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. |
static String |
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. |
Constructor and Description |
---|
InstallableUnitDescription() |
Modifier and Type | Method and Description |
---|---|
void |
addProvidedCapabilities(Collection<IProvidedCapability> additional)
Add the specified capabilities to the installable unit.
|
void |
addRequiredCapabilities(Collection<IRequirement> additional)
Deprecated.
Use addRequirements(additional) instead
|
void |
addRequirements(Collection<IRequirement> additional)
Add the specified requirements to the installable unit.
|
void |
addTouchpointData(ITouchpointData data) |
String |
getId()
Returns the id of the installable unit.
|
Collection<IRequirement> |
getMetaRequiredCapabilities()
Deprecated.
Use getMetaRequirements() instead
|
Collection<IRequirement> |
getMetaRequirements()
Return a collection of the meta requirements specified on this installable unit.
|
Collection<IProvidedCapability> |
getProvidedCapabilities()
Return a collection of all the capabilities specified on this installable unit.
|
List<IRequirement> |
getRequiredCapabilities()
Deprecated.
Use getRequirements() instead
|
List<IRequirement> |
getRequirements()
Return a collection of the requirements specified on this installable unit.
|
Collection<ITouchpointData> |
getTouchpointData()
Returns the current touchpoint data on this installable unit description.
|
IUpdateDescriptor |
getUpdateDescriptor()
Returns the UpdateDescriptor for this IU
|
Version |
getVersion()
Return 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 |
setFilter(IMatchExpression<IInstallableUnit> filter) |
void |
setFilter(String filter) |
void |
setId(String id)
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) instead
|
void |
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) instead
|
void |
setRequirements(IRequirement[] requirements)
Set the requirements for the installable unit.
|
void |
setSingleton(boolean singleton)
Change the singleton status of the installable unit.
|
void |
setTouchpointType(ITouchpointType type)
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.
|
public static final String PROP_TYPE_GROUP
"org.eclipse.equinox.p2.type.patch"
) for a
boolean property indicating that an installable unit is a group.public static final String PROP_TYPE_PATCH
"org.eclipse.equinox.p2.type.patch"
) for a
boolean property indicating that an installable unit is a patch.public static final String PROP_TYPE_FRAGMENT
"org.eclipse.equinox.p2.type.fragment"
) for a
boolean property indicating that an installable unit is a fragment.public static final String PROP_TYPE_CATEGORY
"org.eclipse.equinox.p2.type.category"
) for a
boolean property indicating that an installable unit is a category.public static final String PROP_TYPE_PRODUCT
"org.eclipse.equinox.p2.type.product"
) for a
boolean property indicating that an installable unit is the root IU of a product.public void addProvidedCapabilities(Collection<IProvidedCapability> additional)
additional
- the capabilities to add.public void addRequiredCapabilities(Collection<IRequirement> additional)
public void addRequirements(Collection<IRequirement> additional)
additional
- the requirements to addpublic void addTouchpointData(ITouchpointData data)
public String getId()
public Collection<IProvidedCapability> getProvidedCapabilities()
public List<IRequirement> getRequiredCapabilities()
public List<IRequirement> getRequirements()
public Collection<IRequirement> getMetaRequiredCapabilities()
public Collection<IRequirement> getMetaRequirements()
public Collection<ITouchpointData> getTouchpointData()
public Version getVersion()
public IUpdateDescriptor getUpdateDescriptor()
public void setArtifacts(IArtifactKey[] value)
value
- the artifacts to the used.public void setCapabilities(IProvidedCapability[] exportedCapabilities)
exportedCapabilities
- the capabilities to be used.public void setCopyright(ICopyright copyright)
copyright
- the copyright to be used.public void setFilter(IMatchExpression<IInstallableUnit> filter)
public void setFilter(String filter)
public void setId(String id)
public void setLicenses(ILicense[] licenses)
public void setProperty(String key, String value)
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified keypublic void setRequiredCapabilities(IRequirement[] requirements)
public void setRequirements(IRequirement[] requirements)
requirements
- the requirements to be used.public void setMetaRequiredCapabilities(IRequirement[] metaRequirements)
public void setMetaRequirements(IRequirement[] metaRequirements)
metaRequirements
- the meta requirements to be used.public void setSingleton(boolean singleton)
public void setTouchpointType(ITouchpointType type)
public void setUpdateDescriptor(IUpdateDescriptor updateInfo)
public void setVersion(Version newVersion)
newVersion
- version to be set on the installable unit.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.