Package org.java.plugin.tools.mocks
Class MockPluginFragment
java.lang.Object
org.java.plugin.tools.mocks.MockIdentity
org.java.plugin.tools.mocks.MockPluginFragment
- All Implemented Interfaces:
Documentable<PluginFragment>
,Identity
,PluginFragment
,UniqueIdentity
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(PluginDescriptor descr) Checks is this fragment may contribute to given plug-in.setDocsPath
(String value) setLocation
(URL value) setMatchingRule
(MatchingRule value) setPluginId
(String value) setPluginVersion
(Version value) setRegistry
(PluginRegistry value) setVersion
(Version value) Methods inherited from class org.java.plugin.tools.mocks.MockIdentity
getId, setId
-
Constructor Details
-
MockPluginFragment
public MockPluginFragment()
-
-
Method Details
-
getLocation
- Specified by:
getLocation
in interfacePluginFragment
- Returns:
- location from which this fragment was registered
- See Also:
-
setLocation
- Parameters:
value
- the location to set- Returns:
- this instance
-
getPluginId
- Specified by:
getPluginId
in interfacePluginFragment
- Returns:
- ID of plug-in to which this fragment may contribute
- See Also:
-
setPluginId
- Parameters:
value
- the plug-in ID to set- Returns:
- this instance
-
getPluginVersion
- Specified by:
getPluginVersion
in interfacePluginFragment
- Returns:
- version identifier of plug-in to which this fragment may
contribute or
null
if no version specified in manifest - See Also:
-
setPluginVersion
- Parameters:
value
- the plug-in version to set- Returns:
- this instance
-
getRegistry
- Specified by:
getRegistry
in interfacePluginFragment
- Returns:
- plug-ins registry
- See Also:
-
setRegistry
- Parameters:
value
- the registry to set- Returns:
- this instance
-
getVendor
- Specified by:
getVendor
in interfacePluginFragment
- Returns:
- vendor as specified in manifest file or empty string
- See Also:
-
setVendor
- Parameters:
value
- the vendor to set- Returns:
- this instance
-
getVersion
- Specified by:
getVersion
in interfacePluginFragment
- Returns:
- plug-in fragment version identifier as specified in manifest file
- See Also:
-
setVersion
- Parameters:
value
- the version to set- Returns:
- this instance
-
matches
Description copied from interface:PluginFragment
Checks is this fragment may contribute to given plug-in.- Specified by:
matches
in interfacePluginFragment
- Parameters:
descr
- plug-in descriptor- Returns:
true
if this fragment may contribute to given plug-in- See Also:
-
getMatchingRule
- Specified by:
getMatchingRule
in interfacePluginFragment
- Returns:
- the match rule as it specified in manifest
- See Also:
-
setMatchingRule
- Parameters:
value
- the matching rule to set- Returns:
- this instance
-
getUniqueId
- Specified by:
getUniqueId
in interfaceUniqueIdentity
- Returns:
- unique ID of plug-in element
- See Also:
-
getDocsPath
- Specified by:
getDocsPath
in interfaceDocumentable<PluginFragment>
- 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<PluginFragment>
- 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
-