Eclipse Platform
2.0

org.eclipse.update.core
Interface IPluginEntry

All Superinterfaces:
IAdaptable
All Known Implementing Classes:
PluginEntry

public interface IPluginEntry
extends IAdaptable

Plug-in entry defines a packaging reference from a feature to a plug-in. It indicates that the referenced plug-in is to be considered as part of the feature. Note, that this does not necessarily indicate that the plug-in files are packaged together with any other feature files. The actual packaging details are determined by the feature content provider for the feature.

Clients may implement this interface. However, in most cases clients should directly instantiate or subclass the provided implementation of this interface.

Since:
2.0
See Also:
PluginEntry, FeatureContentProvider

Method Summary
 String getArch()
          Returns optional system architecture specification.
 long getDownloadSize()
          Returns the download size of the entry, if it can be determined.
 long getInstallSize()
          Returns the install size of the feature, if it can be determined.
 String getNL()
          Returns optional locale specification.
 String getOS()
          Returns optional operating system specification.
 VersionedIdentifier getVersionedIdentifier()
          Returns the identifier of this plugin entry
 String getWS()
          Returns optional system architecture specification.
 boolean isFragment()
          Returns an indication whethyer this entry represents a fragment.
 void setVersionedIdentifier(VersionedIdentifier identifier)
          Sets the identifier of this plugin entry.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getVersionedIdentifier

public VersionedIdentifier getVersionedIdentifier()
Returns the identifier of this plugin entry

Returns:
plugin entry identifier
Since:
2.0

isFragment

public boolean isFragment()
Returns an indication whethyer this entry represents a fragment.

Returns:
true if the entry represents a plug-in fragment, false if the entry represents a plug-in
Since:
2.0

getDownloadSize

public long getDownloadSize()
Returns the download size of the entry, if it can be determined.

Returns:
download size of the feature in KiloBytes, or an indication the size could not be determined
Since:
2.0
See Also:
ContentEntryModel.UNKNOWN_SIZE

getInstallSize

public long getInstallSize()
Returns the install size of the feature, if it can be determined.

Returns:
install size of the feature in KiloBytes, or an indication the size could not be determined
Since:
2.0
See Also:
ContentEntryModel.UNKNOWN_SIZE

getOS

public String getOS()
Returns optional operating system specification. A comma-separated list of os designators defined by the platform. Indicates this entry should only be installed on one of the specified os systems. If this attribute is not specified, the entry can be installed on all systems (portable implementation). This information is used as a hint by the installation and update support.

Returns:
the operating system specification, or null.
Since:
2.0
See Also:
BootLoader

getWS

public String getWS()
Returns optional system architecture specification. A comma-separated list of arch designators defined by the platform. Indicates this entry should only be installed on one of the specified systems. If this attribute is not specified, the entry can be installed on all systems (portable implementation). This information is used as a hint by the installation and update support.

Returns:
system architecture specification, or null.
Since:
2.0
See Also:
BootLoader

getArch

public String getArch()
Returns optional system architecture specification. A comma-separated list of arch designators defined by the platform. Indicates this entry should only be installed on one of the specified systems. If this attribute is not specified, the entry can be installed on all systems (portable implementation). This information is used as a hint by the installation and update support.

Returns:
system architecture specification, or null.
Since:
2.0
See Also:
BootLoader

getNL

public String getNL()
Returns optional locale specification. A comma-separated list of locale designators defined by Java. Indicates this entry should only be installed on a system running with a compatible locale (using Java locale-matching rules). If this attribute is not specified, the entry can be installed on all systems (language-neutral implementation). This information is used as a hint by the installation and update support.

Returns:
the locale specification, or null.
Since:
2.0

setVersionedIdentifier

public void setVersionedIdentifier(VersionedIdentifier identifier)
Sets the identifier of this plugin entry. This is typically performed as part of the plug-in entry creation operation. Once set, the identifier should not be reset.

Parameters:
identifier - plugin entry identifier
Since:
2.0

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.