|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.spice.extension.Specification
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
.
Field Summary | |
static Compatability |
COMPATIBLE
Enum indicating that extension is compatible with other Package Specification. |
static Attributes.Name |
IMPLEMENTATION_TITLE
Manifest Attribute Name object for IMPLEMENTATION_TITLE. |
static Attributes.Name |
IMPLEMENTATION_VENDOR
Manifest Attribute Name object for IMPLEMENTATION_VENDOR. |
static Attributes.Name |
IMPLEMENTATION_VERSION
Manifest Attribute Name object for IMPLEMENTATION_VERSION. |
static Compatability |
INCOMPATIBLE
Enum indicating that extension is incompatible with other Package Specification in ways other than other enums indicate). |
static Compatability |
REQUIRE_IMPLEMENTATION_CHANGE
Enum indicating that extension requires an upgrade of implementation to be compatible with other Package Specification. |
static Compatability |
REQUIRE_SPECIFICATION_UPGRADE
Enum indicating that extension requires an upgrade of specification to be compatible with other Package Specification. |
static Compatability |
REQUIRE_VENDOR_SWITCH
Enum indicating that extension requires a vendor switch to be compatible with other Package Specification. |
static Attributes.Name |
SPECIFICATION_TITLE
Manifest Attribute Name object for SPECIFICATION_TITLE. |
static Attributes.Name |
SPECIFICATION_VENDOR
Manifest Attribute Name object for SPECIFICATION_VENDOR. |
static Attributes.Name |
SPECIFICATION_VERSION
Manifest Attribute Name object for SPECIFICATION_VERSION. |
Constructor Summary | |
Specification(String specificationTitle,
String specificationVersion,
String specificationVendor,
String implementationTitle,
String implementationVersion,
String implementationVendor)
The constructor to create Package Specification object. |
|
Specification(String specificationTitle,
String specificationVersion,
String specificationVendor,
String implementationTitle,
String implementationVersion,
String implementationVendor,
String[] sections)
The constructor to create Package Specification object. |
Method Summary | |
Compatability |
getCompatibilityWith(Specification other)
Return a Compatibility enum indicating the relationship of this Package Specification with the specified Extension . |
String |
getImplementationTitle()
Get the title of the specification. |
String |
getImplementationVendor()
Get the vendor of the extensions implementation. |
String |
getImplementationVersion()
Get the version of the implementation. |
String[] |
getSections()
Return an array containing sections to which specification applies or null if relevant to no sections. |
static Specification[] |
getSpecifications(Manifest manifest)
Return an array of Package Specification objects. |
String |
getSpecificationTitle()
Get the title of the specification. |
String |
getSpecificationVendor()
Get the vendor of the specification. |
DeweyDecimal |
getSpecificationVersion()
Get the version of the specification. |
boolean |
isCompatibleWith(Specification other)
Return true if the specified package
is satisfied by this Specification . |
String |
toString()
Return a String representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Attributes.Name SPECIFICATION_TITLE
Attributes.Name#SPECIFICATION_TITLE
public static final Attributes.Name SPECIFICATION_VERSION
Attributes.Name#SPECIFICATION_VERSION
public static final Attributes.Name SPECIFICATION_VENDOR
Attributes.Name#SPECIFICATION_VENDOR
public static final Attributes.Name IMPLEMENTATION_TITLE
Attributes.Name#IMPLEMENTATION_TITLE
public static final Attributes.Name IMPLEMENTATION_VERSION
Attributes.Name#IMPLEMENTATION_VERSION
public static final Attributes.Name IMPLEMENTATION_VENDOR
Attributes.Name#IMPLEMENTATION_VENDOR
public static final Compatability COMPATIBLE
public static final Compatability REQUIRE_SPECIFICATION_UPGRADE
public static final Compatability REQUIRE_VENDOR_SWITCH
public static final Compatability REQUIRE_IMPLEMENTATION_CHANGE
public static final Compatability INCOMPATIBLE
Constructor Detail |
public Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor)
specificationTitle
- the name of specification.specificationVersion
- the specification Version.specificationVendor
- the specification Vendor.implementationTitle
- the title of implementation.implementationVersion
- the implementation Version.implementationVendor
- the implementation Vendor.public Specification(String specificationTitle, String specificationVersion, String specificationVendor, String implementationTitle, String implementationVersion, String implementationVendor, String[] sections)
specificationTitle
- the name of specification.specificationVersion
- the specification Version.specificationVendor
- the specification Vendor.implementationTitle
- the title of implementation.implementationVersion
- the implementation Version.implementationVendor
- the implementation Vendor.sections
- the sections/packages that Specification applies to.Method Detail |
public static Specification[] getSpecifications(Manifest manifest) throws ParseException
Package Specification
objects.
If there are no such optional packages, a zero-length array is returned.
manifest
- Manifest to be parsed
ParseException
public String getSpecificationTitle()
public String getSpecificationVendor()
public String getImplementationTitle()
public DeweyDecimal getSpecificationVersion()
public String getImplementationVendor()
public String getImplementationVersion()
public String[] getSections()
public Compatability getCompatibilityWith(Specification other)
Package Specification
with the specified Extension
.
other
- the other specification
public boolean isCompatibleWith(Specification other)
true
if the specified package
is satisfied by this Specification
. Otherwise, return
false
.
other
- the specification
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |