Package com.sun.ts.lib.util.sec.misc
Class ExtensionInfo
java.lang.Object
com.sun.ts.lib.util.sec.misc.ExtensionInfo
This class holds all necessary information to install or upgrade a extension on the user's disk
- Author:
- Jerome Dochez
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intpublic static values returned by the isCompatible methodstatic final intstatic final intstatic final intstatic final intattributes fully describer an extension.
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new uninitialized extension information objectExtensionInfo(String extensionKey, Attributes attr) Create and initialize an extension information object.
- 
Method SummaryModifier and TypeMethodDescriptioninttoString()helper method to print sensible information on the undelying described extension
- 
Field Details- 
COMPATIBLEpublic static final int COMPATIBLEpublic static values returned by the isCompatible method- See Also:
 
- 
REQUIRE_SPECIFICATION_UPGRADEpublic static final int REQUIRE_SPECIFICATION_UPGRADE- See Also:
 
- 
REQUIRE_IMPLEMENTATION_UPGRADEpublic static final int REQUIRE_IMPLEMENTATION_UPGRADE- See Also:
 
- 
REQUIRE_VENDOR_SWITCHpublic static final int REQUIRE_VENDOR_SWITCH- See Also:
 
- 
INCOMPATIBLEpublic static final int INCOMPATIBLE- See Also:
 
- 
titleattributes fully describer an extension. The underlying described extension may be installed and requested.
- 
name
- 
specVersion
- 
specVendor
- 
implementationVersion
- 
vendor
- 
vendorId
- 
url
 
- 
- 
Constructor Details- 
ExtensionInfopublic ExtensionInfo()Create a new uninitialized extension information object
- 
ExtensionInfoCreate and initialize an extension information object. The initialization uses the attributes passed as being the content of a manifest file to load the extension information from. Since manifest file may contain information on several extension they may depend on, the extension key parameter is prepanded to the attribute name to make the key used to retrieve the attribute from the manifest file- Parameters:
- extensionKey- unique extension key in the manifest
- attr- Attributes of a manifest file
- Throws:
- NullPointerException
 
 
- 
- 
Method Details- 
isCompatibleWith- Parameters:
- the- requested extension information to compare to
- Returns:
- true if the extension described by this extension information is compatible with the extension described by the extension information passed as a parameter
 
- 
toStringhelper method to print sensible information on the undelying described extension
 
-