Package org.java.plugin.registry
Interface PluginFragment
-
- All Superinterfaces:
Documentable<PluginFragment>,Identity,UniqueIdentity
- All Known Implementing Classes:
MockPluginFragment
public interface PluginFragment extends UniqueIdentity, Documentable<PluginFragment>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URLgetLocation()MatchingRulegetMatchingRule()java.lang.StringgetPluginId()VersiongetPluginVersion()PluginRegistrygetRegistry()java.lang.StringgetVendor()VersiongetVersion()booleanmatches(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 Detail
-
getVendor
java.lang.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
java.lang.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
nullif no version specified in manifest
-
getRegistry
PluginRegistry getRegistry()
- Returns:
- plug-ins registry
-
matches
boolean matches(PluginDescriptor descr)
Checks is this fragment may contribute to given plug-in.- Parameters:
descr- plug-in descriptor- Returns:
trueif this fragment may contribute to given plug-in
-
getMatchingRule
MatchingRule getMatchingRule()
- Returns:
- the match rule as it specified in manifest
-
getLocation
java.net.URL getLocation()
- Returns:
- location from which this fragment was registered
-
-