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 Summary
FieldsModifier and TypeFieldDescriptionstatic final int
public static values returned by the isCompatible methodstatic final int
static final int
static final int
static final int
attributes fully describer an extension. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new uninitialized extension information objectExtensionInfo
(String extensionKey, Attributes attr) Create and initialize an extension information object. -
Method Summary
Modifier and TypeMethodDescriptionint
toString()
helper method to print sensible information on the undelying described extension
-
Field Details
-
COMPATIBLE
public static final int COMPATIBLEpublic static values returned by the isCompatible method- See Also:
-
REQUIRE_SPECIFICATION_UPGRADE
public static final int REQUIRE_SPECIFICATION_UPGRADE- See Also:
-
REQUIRE_IMPLEMENTATION_UPGRADE
public static final int REQUIRE_IMPLEMENTATION_UPGRADE- See Also:
-
REQUIRE_VENDOR_SWITCH
public static final int REQUIRE_VENDOR_SWITCH- See Also:
-
INCOMPATIBLE
public static final int INCOMPATIBLE- See Also:
-
title
attributes fully describer an extension. The underlying described extension may be installed and requested. -
name
-
specVersion
-
specVendor
-
implementationVersion
-
vendor
-
vendorId
-
url
-
-
Constructor Details
-
ExtensionInfo
public ExtensionInfo()Create a new uninitialized extension information object -
ExtensionInfo
Create 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 manifestattr
- 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
-
toString
helper method to print sensible information on the undelying described extension
-