Package org.java.plugin.registry
Interface ExtensionPoint
- All Superinterfaces:
Documentable<ExtensionPoint>
,Identity
,PluginElement<ExtensionPoint>
,UniqueIdentity
- All Known Implementing Classes:
MockExtensionPoint
This interface abstracts the extension point - a place where the
functionality of plug-in can be extended.
Extension point UID is a combination of declaring plug-in ID and extension point ID that is unique within whole set of registered plug-ins.
- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
This interface abstracts parameter definition - a parameter "type declaration". -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableExtension
(String uniqueId) Returns a collection of all extensions that available for this point.getConnectedExtension
(String uniqueId) Returns a collection of all extensions that was successfully "connected" to this point.Looks for all available (valid) successors of this extension point.Returns collection of all top level parameter definitions declared in this extension point and all it parents.boolean
isExtensionAvailable
(String uniqueId) Checks if extension is available for this extension point.boolean
isExtensionConnected
(String uniqueId) Checks if extension is in valid state and successfully "connected" to this extension point.boolean
isSuccessorOf
(ExtensionPoint extensionPoint) boolean
isValid()
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
Methods inherited from interface org.java.plugin.registry.UniqueIdentity
getUniqueId
-
Method Details
-
getMultiplicity
ExtensionMultiplicity getMultiplicity()- Returns:
- multiplicity of this extension point
-
getParameterDefinitions
Collection<ExtensionPoint.ParameterDefinition> getParameterDefinitions()Returns collection of all top level parameter definitions declared in this extension point and all it parents.- Returns:
- collection of
ExtensionPoint.ParameterDefinition
objects
-
getParameterDefinition
- Parameters:
id
- ID of parameter definition to look for- Returns:
- parameter definition with given ID
-
getAvailableExtensions
Collection<Extension> getAvailableExtensions()Returns a collection of all extensions that available for this point.- Returns:
- collection of
Extension
objects
-
getAvailableExtension
- Parameters:
uniqueId
- unique ID of extension- Returns:
- extension that is available for this point
-
isExtensionAvailable
Checks if extension is available for this extension point. If this method returnstrue
, the methodgetAvailableExtension(String)
should return valid extension for the same UID.- Parameters:
uniqueId
- unique ID of extension- Returns:
true
if extension is available for this extension point
-
getConnectedExtensions
Collection<Extension> getConnectedExtensions()Returns a collection of all extensions that was successfully "connected" to this point.- Returns:
- collection of
Extension
objects
-
getConnectedExtension
- Parameters:
uniqueId
- unique ID of extension- Returns:
- extension that was successfully "connected" to this point
-
isExtensionConnected
Checks if extension is in valid state and successfully "connected" to this extension point. If this method returnstrue
, the methodgetConnectedExtension(String)
should return valid extension for the same UID.- Parameters:
uniqueId
- unique ID of extension- Returns:
true
if extension was successfully "connected" to this extension point
-
isValid
boolean isValid()- Returns:
true
if extension point is considered to be valid
-
getParentPluginId
String getParentPluginId()- Returns:
- parent extension point plug-in ID or
null
-
getParentExtensionPointId
String getParentExtensionPointId()- Returns:
- parent extension point ID or
null
-
isSuccessorOf
- Parameters:
extensionPoint
- extension point- Returns:
true
if this point is successor of given extension point
-
getDescendants
Collection<ExtensionPoint> getDescendants()Looks for all available (valid) successors of this extension point. The search should be done recursively including all descendants of this extension point.- Returns:
- collection of
ExtensionPoint
objects
-