public class

ExtensionInfo

extends Object
java.lang.Object
   ↳ sun.misc.ExtensionInfo

Class Overview

This class holds all necessary information to install or upgrade a extension on the user's disk

Summary

Constants
int COMPATIBLE

public static values returned by the isCompatible method

int INCOMPATIBLE
int REQUIRE_IMPLEMENTATION_UPGRADE
int REQUIRE_SPECIFICATION_UPGRADE
int REQUIRE_VENDOR_SWITCH
Fields
public String implementationVersion
public String name
public String specVendor
public String specVersion
public String title

attributes fully describer an extension.

public String url
public String vendor
public String vendorId
Public Constructors
ExtensionInfo()

Create a new uninitialized extension information object

ExtensionInfo(String extensionKey, Attributes attr)

Create and initialize an extension information object.

Public Methods
int isCompatibleWith(ExtensionInfo ei)

String toString()

helper method to print sensible information on the undelying described extension

[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int COMPATIBLE

public static values returned by the isCompatible method

Constant Value: 0 (0x00000000)

public static final int INCOMPATIBLE

Constant Value: 4 (0x00000004)

public static final int REQUIRE_IMPLEMENTATION_UPGRADE

Constant Value: 2 (0x00000002)

public static final int REQUIRE_SPECIFICATION_UPGRADE

Constant Value: 1 (0x00000001)

public static final int REQUIRE_VENDOR_SWITCH

Constant Value: 3 (0x00000003)

Fields

public String implementationVersion

public String name

public String specVendor

public String specVersion

public String title

attributes fully describer an extension. The underlying described extension may be installed and requested.

public String url

public String vendor

public String vendorId

Public Constructors

public ExtensionInfo ()

Create a new uninitialized extension information object

public ExtensionInfo (String extensionKey, Attributes attr)

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 manifest
attr Attributes of a manifest file

Public Methods

public int isCompatibleWith (ExtensionInfo ei)

Returns
  • true if the extension described by this extension information is compatible with the extension described by the extension information passed as a parameter

public String toString ()

helper method to print sensible information on the undelying described extension

Returns
  • a string representation of the object.