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 Constructor Description MockPluginPrerequisite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchingRule
getMatchingRule()
java.lang.String
getPluginId()
Version
getPluginVersion()
java.lang.String
getUniqueId()
boolean
isExported()
boolean
isOptional()
boolean
isReverseLookup()
boolean
matches()
MockPluginPrerequisite
setExported(boolean value)
MockPluginPrerequisite
setMatches(boolean value)
MockPluginPrerequisite
setMatchingRule(MatchingRule value)
MockPluginPrerequisite
setOptional(boolean value)
MockPluginPrerequisite
setPluginId(java.lang.String value)
MockPluginPrerequisite
setPluginVersion(Version value)
MockPluginPrerequisite
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
-
-
-
-
Method Detail
-
getPluginId
public java.lang.String getPluginId()
- Specified by:
getPluginId
in interfacePluginPrerequisite
- Returns:
- ID of plug-in, this plug-in depends on
- See Also:
PluginPrerequisite.getPluginId()
-
setPluginId
public MockPluginPrerequisite setPluginId(java.lang.String value)
- Parameters:
value
- the plug-in id to set- Returns:
- this instance
-
getPluginVersion
public Version getPluginVersion()
- Specified by:
getPluginVersion
in interfacePluginPrerequisite
- Returns:
- desired plug-in version identifier or
null
if not specified - See Also:
PluginPrerequisite.getPluginVersion()
-
setPluginVersion
public MockPluginPrerequisite setPluginVersion(Version value)
- 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:
PluginPrerequisite.isExported()
-
setExported
public MockPluginPrerequisite setExported(boolean value)
- 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:
PluginPrerequisite.isOptional()
-
setOptional
public MockPluginPrerequisite setOptional(boolean value)
- 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:
PluginPrerequisite.isReverseLookup()
-
setReverseLookup
public MockPluginPrerequisite setReverseLookup(boolean value)
- 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:
PluginPrerequisite.matches()
-
setMatches
public MockPluginPrerequisite setMatches(boolean value)
- Parameters:
value
- the matches flag to set- Returns:
- this instance
-
getMatchingRule
public MatchingRule getMatchingRule()
- Specified by:
getMatchingRule
in interfacePluginPrerequisite
- Returns:
- the match rule as it specified in manifest
- See Also:
PluginPrerequisite.getMatchingRule()
-
setMatchingRule
public MockPluginPrerequisite setMatchingRule(MatchingRule value)
- Parameters:
value
- the matchingRule to set- Returns:
- this instance
-
getUniqueId
public java.lang.String getUniqueId()
- Specified by:
getUniqueId
in interfaceUniqueIdentity
- Returns:
- unique ID of plug-in element
- See Also:
UniqueIdentity.getUniqueId()
-
-