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$
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.Identity |
getId |
Methods inherited from interface org.java.plugin.registry.Identity |
getId |
MockPluginPrerequisite
public MockPluginPrerequisite()
getPluginId
public java.lang.String getPluginId()
- Specified by:
getPluginId
in interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface PluginPrerequisite
- 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 interface UniqueIdentity
- Returns:
- unique ID of plug-in element
- See Also:
UniqueIdentity.getUniqueId()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.