JPF 0.10

org.java.plugin.registry
Interface PluginDescriptor

All Superinterfaces:
Documentable, Identity, UniqueIdentity

public interface PluginDescriptor
extends UniqueIdentity, Documentable

Main interface to get access to all meta-information for particular plug-in, described in plug-in manifest file.

Plug-in UID is a combination of plug-in ID and version identifier that is unique within whole set of registered plug-ins.

Version:
$Id: PluginDescriptor.java,v 1.2 2005/12/10 13:15:28 ddimon Exp $
See Also:
plug-in DTD for standard registry implementation, PluginRegistry

Method Summary
 PluginAttribute getAttribute(java.lang.String id)
           
 java.util.Collection getAttributes()
          Returns collection of all top level attributes defined in manifest.
 java.util.Collection getAttributes(java.lang.String id)
           
 Extension getExtension(java.lang.String id)
           
 ExtensionPoint getExtensionPoint(java.lang.String id)
           
 java.util.Collection getExtensionPoints()
          Returns collection of all extension points defined in manifest.
 java.util.Collection getExtensions()
          Returns collection of all extensions defined in manifest.
 java.util.Collection getFragments()
          Returns collection of plug-in fragments which contributes to this plug-in.
 java.util.Collection getLibraries()
          Returns collection of all libraries defined in manifest.
 Library getLibrary(java.lang.String id)
           
 java.net.URL getLocation()
           
 java.lang.String getPluginClassName()
           
 PluginPrerequisite getPrerequisite(java.lang.String id)
           
 java.util.Collection getPrerequisites()
          Returns collection of all prerequisites defined in manifest.
 PluginRegistry getRegistry()
           
 java.lang.String getVendor()
           
 Version getVersion()
           
 
Methods inherited from interface org.java.plugin.registry.UniqueIdentity
getUniqueId
 
Methods inherited from interface org.java.plugin.registry.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
 

Method Detail

getVendor

public java.lang.String getVendor()
Returns:
vendor as specified in manifest file or empty string

getVersion

public Version getVersion()
Returns:
plug-in version identifier as specified in manifest file

getAttributes

public java.util.Collection getAttributes()
Returns collection of all top level attributes defined in manifest.

Returns:
collection of PluginAttribute objects

getAttribute

public PluginAttribute getAttribute(java.lang.String id)
Parameters:
id - ID of attribute to look for
Returns:
top level attribute with given ID

getAttributes

public java.util.Collection getAttributes(java.lang.String id)
Parameters:
id - ID of attribute to look for
Returns:
collection of all top level attributes with given ID

getPrerequisites

public java.util.Collection getPrerequisites()
Returns collection of all prerequisites defined in manifest.

Returns:
collection of PluginPrerequisite objects

getPrerequisite

public PluginPrerequisite getPrerequisite(java.lang.String id)
Parameters:
id - prerequisite ID
Returns:
plug-in prerequisite object instance or null

getExtensionPoints

public java.util.Collection getExtensionPoints()
Returns collection of all extension points defined in manifest.

Returns:
collection of ExtensionPoint objects

getExtensionPoint

public ExtensionPoint getExtensionPoint(java.lang.String id)
Parameters:
id - extension point ID
Returns:
extension point object or null

getExtensions

public java.util.Collection getExtensions()
Returns collection of all extensions defined in manifest.

Returns:
collection of Extension objects

getExtension

public Extension getExtension(java.lang.String id)
Parameters:
id - extension ID
Returns:
extension object or null

getLibraries

public java.util.Collection getLibraries()
Returns collection of all libraries defined in manifest.

Returns:
collection of Library objects

getLibrary

public Library getLibrary(java.lang.String id)
Parameters:
id - library ID
Returns:
library object or null

getRegistry

public PluginRegistry getRegistry()
Returns:
plug-ins registry

getPluginClassName

public java.lang.String getPluginClassName()
Returns:
plug-in class name as specified in manifest file or null

getFragments

public java.util.Collection getFragments()
Returns collection of plug-in fragments which contributes to this plug-in. One plug-in fragment may contribute to several versions of the same plug-in, according to it's manifest.

Returns:
collection of PluginFragment objects

getLocation

public java.net.URL getLocation()
Returns:
location from which this plug-in was registered

JPF 0.10

Copyright © 2004-2005 Dmitry Olshansky. All Rights Reserved.