JPF 1.5.1

org.java.plugin.registry
Interface PluginElement<T extends PluginElement<T>>

Type Parameters:
T - type of plug-in element
All Superinterfaces:
Documentable<T>, Identity
All Known Subinterfaces:
Extension, Extension.Parameter, ExtensionPoint, ExtensionPoint.ParameterDefinition, Library, PluginAttribute, PluginPrerequisite
All Known Implementing Classes:
MockExtension, MockExtensionPoint, MockLibrary, MockParameter, MockParameterDefinition, MockPluginAttribute, MockPluginElement, MockPluginPrerequisite

public interface PluginElement<T extends PluginElement<T>>
extends Identity, Documentable<T>

This interface abstracts a plug-in element - a thing that is declared in plug-in or plug-in fragment descriptor.

Version:
$Id$

Method Summary
 PluginDescriptor getDeclaringPluginDescriptor()
          Returns plug-in descriptor, this element belongs to.
 PluginFragment getDeclaringPluginFragment()
          Returns descriptor of plug-in fragment that contributes this element.
 
Methods inherited from interface org.java.plugin.registry.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
 

Method Detail

getDeclaringPluginDescriptor

PluginDescriptor getDeclaringPluginDescriptor()
Returns plug-in descriptor, this element belongs to. This method should never return null.

Returns:
plug-in descriptor, this element belongs to

getDeclaringPluginFragment

PluginFragment getDeclaringPluginFragment()
Returns descriptor of plug-in fragment that contributes this element. This method may return null, if element is contributed by plug-in directly.

Returns:
descriptor of plug-in fragment that contributes this element

JPF 1.5.1

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