public class InstallableUnit extends java.lang.Object implements IInstallableUnit, IMemberProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MEMBER_ARTIFACTS |
static java.lang.String |
MEMBER_COPYRIGHT |
static java.lang.String |
MEMBER_FILTER |
static java.lang.String |
MEMBER_ID |
static java.lang.String |
MEMBER_LICENSES |
static java.lang.String |
MEMBER_PROFILE_PROPERTIES |
static java.lang.String |
MEMBER_PROPERTIES |
static java.lang.String |
MEMBER_PROVIDED_CAPABILITIES |
static java.lang.String |
MEMBER_REQUIREMENTS |
static java.lang.String |
MEMBER_SINGLETON |
static java.lang.String |
MEMBER_TOUCHPOINT_DATA |
static java.lang.String |
MEMBER_TOUCHPOINT_TYPE |
static java.lang.String |
MEMBER_TRANSLATED_PROPERTIES |
static java.lang.String |
MEMBER_UPDATE_DESCRIPTOR |
static java.lang.String |
MEMBER_VERSION |
NAMESPACE_IU_ID, PROP_BUNDLE_LOCALIZATION, PROP_CONTACT, PROP_DESCRIPTION, PROP_DESCRIPTION_URL, PROP_DOC_URL, PROP_ICON, PROP_NAME, PROP_PARTIAL_IU, PROP_PROVIDER| Constructor and Description |
|---|
InstallableUnit() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTouchpointData(ITouchpointData newData) |
int |
compareTo(IInstallableUnit other) |
static IInstallableUnit |
contextIU(java.util.Map<java.lang.String,java.lang.String> environment) |
static IInstallableUnit |
contextIU(java.lang.String ws,
java.lang.String os,
java.lang.String arch) |
boolean |
equals(java.lang.Object obj)
Returns whether this InstallableUnit is equal to the given object.
|
java.util.Collection<IArtifactKey> |
getArtifacts()
Returns the collection of artifacts associated with this installable unit.
|
ICopyright |
getCopyright()
Returns the untranslated copyright that applies to this installable unit.
|
ICopyright |
getCopyright(java.lang.String locale)
Returns the copyright that applies to this installable unit.
|
IMatchExpression<IInstallableUnit> |
getFilter()
Returns the filter on this installable unit.
|
java.util.Collection<IInstallableUnitFragment> |
getFragments()
Returns the fragments that have been bound to this installable unit, or
null if this unit is not resolved. |
java.lang.String |
getId()
Returns the id portion of this versioned id.
|
java.util.Collection<ILicense> |
getLicenses()
Returns the untranslated licenses that apply to this installable unit.
|
java.util.Collection<ILicense> |
getLicenses(java.lang.String locale)
Returns the licenses that apply to this installable unit.
|
java.lang.String |
getLocalizedProperty(java.lang.String key) |
java.lang.Object |
getMember(java.lang.String memberName)
Returns the value for the specified member.
|
java.util.Collection<IRequirement> |
getMetaRequirements() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Get an unmodifiable copy of the properties associated with the
installable unit.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the untranslated property of this installable unit associated with the given key.
|
java.lang.String |
getProperty(java.lang.String key,
java.lang.String locale)
Returns the property of this installable unit associated with the given key.
|
java.util.Collection<IProvidedCapability> |
getProvidedCapabilities()
Returns the collection of capabilities provided by this installable unit.
|
java.util.List<IRequirement> |
getRequirements() |
java.util.Collection<ITouchpointData> |
getTouchpointData() |
ITouchpointType |
getTouchpointType() |
IUpdateDescriptor |
getUpdateDescriptor()
Returns information about what this installable unit is an update of.
|
Version |
getVersion()
Returns the version portion of this versioned id.
|
int |
hashCode() |
boolean |
isResolved()
Returns whether this installable unit has been resolved.
|
boolean |
isSingleton()
Returns whether this installable unit is a singleton.
|
static IMatchExpression<IInstallableUnit> |
parseFilter(java.lang.String filterStr) |
boolean |
satisfies(IRequirement candidate)
Returns whether this unit has a provided capability that satisfies the given
requirement.
|
void |
setArtifacts(IArtifactKey[] value) |
void |
setCapabilities(IProvidedCapability[] newCapabilities) |
void |
setCopyright(ICopyright copyright) |
void |
setFilter(IMatchExpression<IInstallableUnit> filter) |
void |
setFilter(java.lang.String filter) |
void |
setId(java.lang.String id) |
void |
setLicenses(ILicense[] license) |
java.lang.String |
setLocalizedProperty(java.lang.String key,
java.lang.String value) |
void |
setMetaRequiredCapabilities(IRequirement[] metaReqs) |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value) |
void |
setRequiredCapabilities(IRequirement[] capabilities) |
void |
setSingleton(boolean singleton) |
void |
setTouchpointType(ITouchpointType type) |
void |
setUpdateDescriptor(IUpdateDescriptor updateInfo) |
void |
setVersion(Version newVersion) |
java.lang.String |
toString() |
IInstallableUnit |
unresolved()
Returns the unresolved equivalent of this installable unit.
|
public static final java.lang.String MEMBER_PROVIDED_CAPABILITIES
public static final java.lang.String MEMBER_ID
public static final java.lang.String MEMBER_VERSION
public static final java.lang.String MEMBER_PROPERTIES
public static final java.lang.String MEMBER_FILTER
public static final java.lang.String MEMBER_ARTIFACTS
public static final java.lang.String MEMBER_REQUIREMENTS
public static final java.lang.String MEMBER_LICENSES
public static final java.lang.String MEMBER_COPYRIGHT
public static final java.lang.String MEMBER_TOUCHPOINT_DATA
public static final java.lang.String MEMBER_TOUCHPOINT_TYPE
public static final java.lang.String MEMBER_UPDATE_DESCRIPTOR
public static final java.lang.String MEMBER_SINGLETON
public static final java.lang.String MEMBER_TRANSLATED_PROPERTIES
public static final java.lang.String MEMBER_PROFILE_PROPERTIES
public void addTouchpointData(ITouchpointData newData)
public int compareTo(IInstallableUnit other)
compareTo in interface java.lang.Comparable<IInstallableUnit>public boolean equals(java.lang.Object obj)
IInstallableUnitequals in interface IInstallableUnitequals in class java.lang.Objectpublic java.util.Collection<IArtifactKey> getArtifacts()
IInstallableUnitgetArtifacts in interface IInstallableUnitpublic IMatchExpression<IInstallableUnit> getFilter()
IInstallableUnitgetFilter in interface IInstallableUnitnullpublic java.util.Collection<IInstallableUnitFragment> getFragments()
IInstallableUnitnull if this unit is not resolved.getFragments in interface IInstallableUnitnullIInstallableUnit.isResolved()public java.lang.String getId()
IVersionedIdgetId in interface IVersionedIdpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties in interface IInstallableUnitpublic java.lang.String getLocalizedProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key)
IInstallableUnitnull if no such property is defined.
If the property value has been externalized, this method will return a string containing
the translation key rather than a human-readable string. For this reason, clients
wishing to obtain the value for a property that is typically translated should use
IInstallableUnit.getProperty(String, String) instead.
getProperty in interface IInstallableUnitkey - The property key to retrieve a property value fornullpublic java.util.Collection<IProvidedCapability> getProvidedCapabilities()
IInstallableUnitgetProvidedCapabilities in interface IInstallableUnitpublic java.lang.String getProperty(java.lang.String key,
java.lang.String locale)
IInstallableUnitnull if no such property is defined or no applicable
translation is available.getProperty in interface IInstallableUnitkey - The property key to retrieve a property value forlocale - The locale to translate the property for, or null to use the current locale.nullpublic java.util.List<IRequirement> getRequirements()
getRequirements in interface IInstallableUnitpublic java.util.Collection<ITouchpointData> getTouchpointData()
getTouchpointData in interface IInstallableUnitpublic ITouchpointType getTouchpointType()
getTouchpointType in interface IInstallableUnitpublic Version getVersion()
IVersionedIdgetVersion in interface IVersionedIdpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isResolved()
IInstallableUnitisResolved in interface IInstallableUnittrue if this installable unit is resolved, and
false otherwise.IInstallableUnit.getFragments(),
IInstallableUnit.unresolved()public boolean isSingleton()
IInstallableUnitisSingleton in interface IInstallableUnittrue if this unit is a singleton, and false otherwisepublic void setArtifacts(IArtifactKey[] value)
public void setCapabilities(IProvidedCapability[] newCapabilities)
public void setFilter(IMatchExpression<IInstallableUnit> filter)
public void setFilter(java.lang.String filter)
public void setId(java.lang.String id)
public static IMatchExpression<IInstallableUnit> parseFilter(java.lang.String filterStr)
public java.lang.String setLocalizedProperty(java.lang.String key,
java.lang.String value)
public java.lang.String setProperty(java.lang.String key,
java.lang.String value)
public void setRequiredCapabilities(IRequirement[] capabilities)
public void setSingleton(boolean singleton)
public void setTouchpointType(ITouchpointType type)
public void setVersion(Version newVersion)
public java.lang.String toString()
toString in class java.lang.Objectpublic IInstallableUnit unresolved()
IInstallableUnitunresolved in interface IInstallableUnitIInstallableUnit.getFragments(),
IInstallableUnit.isResolved()public IUpdateDescriptor getUpdateDescriptor()
IInstallableUnitgetUpdateDescriptor in interface IInstallableUnitpublic void setUpdateDescriptor(IUpdateDescriptor updateInfo)
public void setLicenses(ILicense[] license)
public java.util.Collection<ILicense> getLicenses()
IInstallableUnit
If the license text has been externalized, this method will return strings containing
the translation keys rather than human-readable strings. For this reason, clients
wishing to obtain a license for display to an end user should use IInstallableUnit.getLicenses(String)
instead.
getLicenses in interface IInstallableUnitpublic java.util.Collection<ILicense> getLicenses(java.lang.String locale)
IInstallableUnitgetLicenses in interface IInstallableUnitlocale - The locale to translate the license for, or null to use the current locale.public void setCopyright(ICopyright copyright)
public ICopyright getCopyright()
IInstallableUnit
If the copyright text has been externalized, this method will return strings containing
the translation keys rather than human-readable strings. For this reason, clients
wishing to obtain a copyright for display to an end user should use IInstallableUnit.getCopyright(String)
instead.
getCopyright in interface IInstallableUnitnullpublic ICopyright getCopyright(java.lang.String locale)
IInstallableUnitnull if this
unit has no copyright, or if the copyright is externalized and no translations are
available for the given locale.getCopyright in interface IInstallableUnitlocale - The locale to translate the copyright for, or null to use the current locale.nullpublic boolean satisfies(IRequirement candidate)
IInstallableUnitsatisfies in interface IInstallableUnittrue if this unit satisfies the given requirement, and false otherwise.public java.util.Collection<IRequirement> getMetaRequirements()
getMetaRequirements in interface IInstallableUnitpublic void setMetaRequiredCapabilities(IRequirement[] metaReqs)
public java.lang.Object getMember(java.lang.String memberName)
IMemberProvidermemberName is a string that has been
internalized using String.intern().getMember in interface IMemberProvidermemberName - The name of the memberpublic static IInstallableUnit contextIU(java.lang.String ws, java.lang.String os, java.lang.String arch)
public static IInstallableUnit contextIU(java.util.Map<java.lang.String,java.lang.String> environment)