Package org.java.plugin.tools.mocks
Class MockPluginElement<T extends PluginElement<T>>
java.lang.Object
org.java.plugin.tools.mocks.MockIdentity
org.java.plugin.tools.mocks.MockPluginElement<T>
- Type Parameters:
T
- plug-in element owner type
- All Implemented Interfaces:
Documentable<T>
,Identity
,PluginElement<T>
- Direct Known Subclasses:
MockExtension
,MockExtensionPoint
,MockLibrary
,MockParameter
,MockParameterDefinition
,MockPluginAttribute
,MockPluginPrerequisite
public abstract class MockPluginElement<T extends PluginElement<T>>
extends MockIdentity
implements PluginElement<T>
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns plug-in descriptor, this element belongs to.Returns descriptor of plug-in fragment that contributes this element.setDocsPath
(String value) setDocumentation
(Documentation<T> value) Methods inherited from class org.java.plugin.tools.mocks.MockIdentity
getId, setId
-
Constructor Details
-
MockPluginElement
public MockPluginElement()
-
-
Method Details
-
getDeclaringPluginDescriptor
Description copied from interface:PluginElement
Returns plug-in descriptor, this element belongs to. This method should never returnnull
.- Specified by:
getDeclaringPluginDescriptor
in interfacePluginElement<T extends PluginElement<T>>
- Returns:
- plug-in descriptor, this element belongs to
- See Also:
-
setDeclaringPluginDescriptor
- Parameters:
value
- the declaring plug-in descriptor to set- Returns:
- this instance
-
getDeclaringPluginFragment
Description copied from interface:PluginElement
Returns descriptor of plug-in fragment that contributes this element. This method may returnnull
, if element is contributed by plug-in directly.- Specified by:
getDeclaringPluginFragment
in interfacePluginElement<T extends PluginElement<T>>
- Returns:
- descriptor of plug-in fragment that contributes this element
- See Also:
-
setDeclaringPluginFragment
- Parameters:
value
- the declaring plug-in fragment to set- Returns:
- this instance
-
getDocsPath
- Specified by:
getDocsPath
in interfaceDocumentable<T extends PluginElement<T>>
- Returns:
- path to documentation "home", it is used for resolving documentation references
- See Also:
-
setDocsPath
- Parameters:
value
- the docs path to set- Returns:
- this instance
-
getDocumentation
- Specified by:
getDocumentation
in interfaceDocumentable<T extends PluginElement<T>>
- Returns:
- plug-in element documentation object or
null
if there is no documentation provided - See Also:
-
setDocumentation
- Parameters:
value
- the documentation to set- Returns:
- this instance
-