/** * Add the specified capabilities to the installable unit. * @param additional the capabilities to add. */ public void addProvidedCapabilities(Collection<IProvidedCapability> additional) { if (additional == null || additional.size() == 0) return; Collection<IProvidedCapability> current = unit().getProvidedCapabilities(); ArrayList<IProvidedCapability> all = new ArrayList<IProvidedCapability>(additional.size() + current.size()); all.addAll(current); all.addAll(additional); unit().setCapabilities(all.toArray(new IProvidedCapability[all.size()])); }
/** * Return the versiono on this installable unit description. */ public Version getVersion() { return unit().getVersion(); }
/** * Return a collection of the requirements specified on this installable unit. */ public List<IRequirement> getRequirements() { return unit().getRequirements(); }
/** * Return a collection of all the capabilities specified on this installable unit. */ public Collection<IProvidedCapability> getProvidedCapabilities() { return unit().getProvidedCapabilities(); }
/** * Returns the id of the installable unit. */ public String getId() { return unit().getId(); }
IInstallableUnit unitCreate() { IInstallableUnit result = unit(); this.unit = null; return result; } }
/** * Change the singleton status of the installable unit. */ public void setSingleton(boolean singleton) { unit().setSingleton(singleton); }
/** * Set the meta requirements for the installable unit. Previous values will be overwritten. * @param metaRequirements the meta requirements to be used. */ public void setMetaRequirements(IRequirement[] metaRequirements) { unit().setMetaRequiredCapabilities(metaRequirements); }
/** * Set the copyright for the installable unit. Previous values will be overwritten. * @param copyright the copyright to be used. */ public void setCopyright(ICopyright copyright) { unit().setCopyright(copyright); }
/** * Set the artifact keys for the installable unit. Previous values will be overwritten. * @param value the artifacts to the used. */ public void setArtifacts(IArtifactKey[] value) { unit().setArtifacts(value); }
/** * Returns the UpdateDescriptor for this IU * @since 2.1 */ public IUpdateDescriptor getUpdateDescriptor() { return unit().getUpdateDescriptor(); }
/** * Set the requirements for the installable unit. Previous values will be overwritten. * @param requirements the requirements to be used. */ public void setRequirements(IRequirement[] requirements) { unit().setRequiredCapabilities(requirements); }
/** * Set the licenses for the installable unit. Previous values will be overwritten. */ public void setLicenses(ILicense[] licenses) { unit().setLicenses(licenses); }
/** * Set the id of the installable unit. */ public void setId(String id) { unit().setId(id); }
/** * Set the version of this installable unit. * @param newVersion version to be set on the installable unit. */ public void setVersion(Version newVersion) { unit().setVersion(newVersion); }
/** * Set the update descriptor for the installable unit. */ public void setUpdateDescriptor(IUpdateDescriptor updateInfo) { unit().setUpdateDescriptor(updateInfo); }
/** * Set the touchpoint type for the installable unit. */ public void setTouchpointType(ITouchpointType type) { unit().setTouchpointType(type); }
/** * Set a property with a specified value for this installable unit. * @param key key with which the specified value is to be associated * @param value value to be associated with the specified key */ public void setProperty(String key, String value) { unit().setProperty(key, value); }
/** * Returns the current touchpoint data on this installable unit description. The * touchpoint data may change if further data is added to the description. * * @return The current touchpoint data on this description */ public Collection<ITouchpointData> getTouchpointData() { return unit().getTouchpointData(); }
/** * Return a collection of the meta requirements specified on this installable unit. */ public Collection<IRequirement> getMetaRequirements() { return unit().getMetaRequirements(); }