|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.equinox.p2.metadata.MetadataFactory.InstallableUnitDescription
public static class MetadataFactory.InstallableUnitDescription
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 | |
---|---|
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. |
Constructor Summary | |
---|---|
MetadataFactory.InstallableUnitDescription()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Constructor Detail |
---|
public MetadataFactory.InstallableUnitDescription()
Method Detail |
---|
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 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.
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.