Package org.java.plugin.tools.mocks
Class MockPluginPrerequisite
java.lang.Object
org.java.plugin.tools.mocks.MockIdentity
org.java.plugin.tools.mocks.MockPluginElement<PluginPrerequisite>
org.java.plugin.tools.mocks.MockPluginPrerequisite
- All Implemented Interfaces:
Documentable<PluginPrerequisite>
,Identity
,PluginElement<PluginPrerequisite>
,PluginPrerequisite
,UniqueIdentity
public class MockPluginPrerequisite
extends MockPluginElement<PluginPrerequisite>
implements PluginPrerequisite
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
matches()
setExported
(boolean value) setMatches
(boolean value) setMatchingRule
(MatchingRule value) setOptional
(boolean value) setPluginId
(String value) setPluginVersion
(Version value) setReverseLookup
(boolean value) Methods inherited from class org.java.plugin.tools.mocks.MockPluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment, getDocsPath, getDocumentation, setDeclaringPluginDescriptor, setDeclaringPluginFragment, setDocsPath, setDocumentation
Methods inherited from class org.java.plugin.tools.mocks.MockIdentity
getId, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
-
Constructor Details
-
MockPluginPrerequisite
public MockPluginPrerequisite()
-
-
Method Details
-
getPluginId
- Specified by:
getPluginId
in interfacePluginPrerequisite
- Returns:
- ID of plug-in, this plug-in depends on
- See Also:
-
setPluginId
- Parameters:
value
- the plug-in id to set- Returns:
- this instance
-
getPluginVersion
- Specified by:
getPluginVersion
in interfacePluginPrerequisite
- Returns:
- desired plug-in version identifier or
null
if not specified - See Also:
-
setPluginVersion
- Parameters:
value
- the plug-in version to set- Returns:
- this instance
-
isExported
public boolean isExported()- Specified by:
isExported
in interfacePluginPrerequisite
- Returns:
true
if this prerequisite is propagated on depending plug-ins- See Also:
-
setExported
- Parameters:
value
- the exported flag to set- Returns:
- this instance
-
isOptional
public boolean isOptional()- Specified by:
isOptional
in interfacePluginPrerequisite
- Returns:
true
if this prerequisite is not required- See Also:
-
setOptional
- Parameters:
value
- the optional flag to set- Returns:
- this instance
-
isReverseLookup
public boolean isReverseLookup()- Specified by:
isReverseLookup
in interfacePluginPrerequisite
- Returns:
true
if this prerequisite allows reverse look up of classes in imported plug-in- See Also:
-
setReverseLookup
- Parameters:
value
- the reverse look-up flag to set- Returns:
- this instance
-
matches
public boolean matches()- Specified by:
matches
in interfacePluginPrerequisite
- Returns:
true
if this prerequisite is fulfilled- See Also:
-
setMatches
- Parameters:
value
- the matches flag to set- Returns:
- this instance
-
getMatchingRule
- Specified by:
getMatchingRule
in interfacePluginPrerequisite
- Returns:
- the match rule as it specified in manifest
- See Also:
-
setMatchingRule
- Parameters:
value
- the matchingRule to set- Returns:
- this instance
-
getUniqueId
- Specified by:
getUniqueId
in interfaceUniqueIdentity
- Returns:
- unique ID of plug-in element
- See Also:
-