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 TypeMethodDescriptionbooleanmatches(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:
getLocationin interfacePluginFragment- Returns:
- location from which this fragment was registered
- See Also:
-
setLocation
- Parameters:
value- the location to set- Returns:
- this instance
-
getPluginId
- Specified by:
getPluginIdin 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:
getPluginVersionin interfacePluginFragment- Returns:
- version identifier of plug-in to which this fragment may
contribute or
nullif no version specified in manifest - See Also:
-
setPluginVersion
- Parameters:
value- the plug-in version to set- Returns:
- this instance
-
getRegistry
- Specified by:
getRegistryin interfacePluginFragment- Returns:
- plug-ins registry
- See Also:
-
setRegistry
- Parameters:
value- the registry to set- Returns:
- this instance
-
getVendor
- Specified by:
getVendorin 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:
getVersionin 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:PluginFragmentChecks is this fragment may contribute to given plug-in.- Specified by:
matchesin interfacePluginFragment- Parameters:
descr- plug-in descriptor- Returns:
trueif this fragment may contribute to given plug-in- See Also:
-
getMatchingRule
- Specified by:
getMatchingRulein 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:
getUniqueIdin interfaceUniqueIdentity- Returns:
- unique ID of plug-in element
- See Also:
-
getDocsPath
- Specified by:
getDocsPathin 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:
getDocumentationin interfaceDocumentable<PluginFragment>- Returns:
- plug-in element documentation object or
nullif there is no documentation provided - See Also:
-
setDocumentation
- Parameters:
value- the documentation to set- Returns:
- this instance
-