Utility class that represents either an available "Optional Package"
(formerly known as "Standard Extension") as described in the manifest
of a JAR file, or the requirement for such an optional package.
For more information about optional packages, see the document
Optional Package Versioning in the documentation bundle for your
Java2 Standard Edition package, in file
guide/extensions/versioning.html.
getAvailable(Manifest manifest) Return an array of Extension objects representing optional
packages that are available in the JAR file associated with the
specified Manifest.
getOptions(Manifest manifest) Return the set of Extension objects representing "Optional
Packages" that the application declares they will use if present.
getRequired(Manifest manifest) Return the set of Extension objects representing optional
packages that are required by the application contained in the JAR
file associated with the specified Manifest.
isCompatibleWith(Extension required) Return true if the specified Extension
(which represents an optional package required by an application)
is satisfied by this Extension (which represents an
optional package that is already installed.
Enum indicating that extension is incompatible with
other extension in ways other than other enums
indicate). For example the other extension may have
a different ID.
Name object for Optional-Extension-List
manifest attribute used for declaring optional dependencies on
installed extensions. Note that the dependencies declared by this method
are not required for the library to operate but if present will be used.
It is NOT part of the official "Optional Package" specification.
See Also:
* Installed extension dependency
The constructor to create Extension object.
Note that every component is allowed to be specified
but only the extensionName is mandatory.
Parameters: extensionName - the name of extension. Parameters: specificationVersion - the specification Version of extension. Parameters: specificationVendor - the specification Vendor of extension. Parameters: implementationVersion - the implementation Version of extension. Parameters: implementationVendor - the implementation Vendor of extension. Parameters: implementationVendorId - the implementation VendorId of extension. Parameters: implementationURL - the implementation URL of extension.
Add Extension to the specified manifest Attributes.
Parameters: attributes - the attributes of manifest to add to Parameters: extension - the extension
Add Extension to the specified manifest Attributes.
Use the specified prefix so that dependencies can added
with a prefix such as "java3d-" etc.
Parameters: attributes - the attributes of manifest to add to Parameters: extension - the extension Parameters: prefix - the name to prefix to extension
Return an array of Extension objects representing optional
packages that are available in the JAR file associated with the
specified Manifest. If there are no such optional
packages, a zero-length array is returned.
Parameters: manifest - Manifest to be parsed the "available" extensions in specified manifest
Return a Compatibility enum indicating the relationship of this
Extension with the specified Extension.
Parameters: required - Description of the required optional package the enum indicating the compatibility (or lack thereof)of specifed extension
Return the set of Extension objects representing "Optional
Packages" that the application declares they will use if present. If
there are no such optional packages, a zero-length list is returned.
Parameters: manifest - Manifest to be parsed the optional dependencies that are specified in manifest
Return the set of Extension objects representing optional
packages that are required by the application contained in the JAR
file associated with the specified Manifest. If there
are no such optional packages, a zero-length list is returned.
Parameters: manifest - Manifest to be parsed the dependencies that are specified in manifes
Return true if the specified Extension
(which represents an optional package required by an application)
is satisfied by this Extension (which represents an
optional package that is already installed. Otherwise, return
false.
Parameters: required - Description of the required optional package true if the specified extension is compatible with this extension