| java.lang.Object org.apache.tools.ant.taskdefs.optional.extension.Specification
Specification | final public class Specification (Code) | | 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 .
|
Constructor Summary | |
public | Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor) The constructor to create Package Specification object. | public | Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor, String[] sections) The constructor to create Package Specification object. |
COMPATIBLE | final public static Compatibility COMPATIBLE(Code) | | Enum indicating that extension is compatible with other Package
Specification.
|
IMPLEMENTATION_TITLE | final public static Attributes.Name IMPLEMENTATION_TITLE(Code) | | Manifest Attribute Name object for IMPLEMENTATION_TITLE.
|
IMPLEMENTATION_VENDOR | final public static Attributes.Name IMPLEMENTATION_VENDOR(Code) | | Manifest Attribute Name object for IMPLEMENTATION_VENDOR.
|
IMPLEMENTATION_VERSION | final public static Attributes.Name IMPLEMENTATION_VERSION(Code) | | Manifest Attribute Name object for IMPLEMENTATION_VERSION.
|
INCOMPATIBLE | final public static Compatibility INCOMPATIBLE(Code) | | This enum indicates that an extension is incompatible with
other Package Specification in ways other than other enums
indicate. For example, the other Package Specification
may have a different ID.
|
REQUIRE_IMPLEMENTATION_CHANGE | final public static Compatibility REQUIRE_IMPLEMENTATION_CHANGE(Code) | | Enum indicating that extension requires an upgrade
of implementation to be compatible with other Package Specification.
|
REQUIRE_SPECIFICATION_UPGRADE | final public static Compatibility REQUIRE_SPECIFICATION_UPGRADE(Code) | | Enum indicating that extension requires an upgrade
of specification to be compatible with other Package Specification.
|
REQUIRE_VENDOR_SWITCH | final public static Compatibility REQUIRE_VENDOR_SWITCH(Code) | | Enum indicating that extension requires a vendor
switch to be compatible with other Package Specification.
|
SPECIFICATION_TITLE | final public static Attributes.Name SPECIFICATION_TITLE(Code) | | Manifest Attribute Name object for SPECIFICATION_TITLE.
|
SPECIFICATION_VENDOR | final public static Attributes.Name SPECIFICATION_VENDOR(Code) | | Manifest Attribute Name object for SPECIFICATION_VENDOR.
|
SPECIFICATION_VERSION | final public static Attributes.Name SPECIFICATION_VERSION(Code) | | Manifest Attribute Name object for SPECIFICATION_VERSION.
|
Specification | public Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor)(Code) | | The constructor to create Package Specification object.
Note that every component is allowed to be specified
but only the specificationTitle is mandatory.
Parameters: specificationTitle - the name of specification. Parameters: specificationVersion - the specification Version. Parameters: specificationVendor - the specification Vendor. Parameters: implementationTitle - the title of implementation. Parameters: implementationVersion - the implementation Version. Parameters: implementationVendor - the implementation Vendor. |
Specification | public Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor, String[] sections)(Code) | | The constructor to create Package Specification object.
Note that every component is allowed to be specified
but only the specificationTitle is mandatory.
Parameters: specificationTitle - the name of specification. Parameters: specificationVersion - the specification Version. Parameters: specificationVendor - the specification Vendor. Parameters: implementationTitle - the title of implementation. Parameters: implementationVersion - the implementation Version. Parameters: implementationVendor - the implementation Vendor. Parameters: sections - the sections/packages that Specification applies to. |
getCompatibilityWith | public Compatibility getCompatibilityWith(Specification other)(Code) | | Return a Compatibility enum indicating the relationship of this
Package Specification with the specified
Extension .
Parameters: other - the other specification the enum indicating the compatibility (or lack thereof)of specifed Package Specification |
getImplementationTitle | public String getImplementationTitle()(Code) | | Get the title of the specification.
the title of the specification. |
getImplementationVendor | public String getImplementationVendor()(Code) | | Get the vendor of the extensions implementation.
the vendor of the extensions implementation. |
getImplementationVersion | public String getImplementationVersion()(Code) | | Get the version of the implementation.
the version of the implementation. |
getSections | public String[] getSections()(Code) | | Return an array containing sections to which specification applies
or null if relevent to no sections.
an array containing sections to which specification appliesor null if relevent to no sections. |
getSpecificationTitle | public String getSpecificationTitle()(Code) | | Get the title of the specification.
the title of speciication |
getSpecificationVendor | public String getSpecificationVendor()(Code) | | Get the vendor of the specification.
the vendor of the specification. |
getSpecificationVersion | public DeweyDecimal getSpecificationVersion()(Code) | | Get the version of the specification.
the version of the specification. |
getSpecifications | public static Specification[] getSpecifications(Manifest manifest) throws ParseException(Code) | | Return an array of Package Specification objects.
If there are no such optional packages, a zero-length array is returned.
Parameters: manifest - Manifest to be parsed the Package Specifications extensions in specified manifest throws: ParseException - if the attributes of the specifications cannotbe parsed according to their expected formats. |
isCompatibleWith | public boolean isCompatibleWith(Specification other)(Code) | | Return true if the specified package
is satisfied by this Specification . Otherwise, return
false .
Parameters: other - the specification true if the specification is compatible with this specification |
toString | public String toString()(Code) | | Return a String representation of this object.
string representation of object. |
|
|