Package org.java.plugin.registry
Interface PluginFragment
- All Superinterfaces:
Documentable<PluginFragment>
,Identity
,UniqueIdentity
- All Known Implementing Classes:
MockPluginFragment
Interface to get access to main information about plug-in fragment. This
does not include information about libraries, extensions and extension
points, defined in this fragment, such information is available as part of
plug-in, to which this fragment contributes.
Plug-in fragment UID is a combination of plug-in fragment ID and version identifier that is unique within whole set of registered plug-ins and fragments.
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(PluginDescriptor descr) Checks is this fragment may contribute to given plug-in.Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
Methods inherited from interface org.java.plugin.registry.UniqueIdentity
getUniqueId
-
Method Details
-
getVendor
String getVendor()- Returns:
- vendor as specified in manifest file or empty string
-
getVersion
Version getVersion()- Returns:
- plug-in fragment version identifier as specified in manifest file
-
getPluginId
String getPluginId()- Returns:
- ID of plug-in to which this fragment may contribute
-
getPluginVersion
Version getPluginVersion()- Returns:
- version identifier of plug-in to which this fragment may
contribute or
null
if no version specified in manifest
-
getRegistry
PluginRegistry getRegistry()- Returns:
- plug-ins registry
-
matches
Checks is this fragment may contribute to given plug-in.- Parameters:
descr
- plug-in descriptor- Returns:
true
if this fragment may contribute to given plug-in
-
getMatchingRule
MatchingRule getMatchingRule()- Returns:
- the match rule as it specified in manifest
-
getLocation
URL getLocation()- Returns:
- location from which this fragment was registered
-