JPF 1.5.1

org.java.plugin.tools.mocks
Class MockPluginPrerequisite

java.lang.Object
  extended by org.java.plugin.tools.mocks.MockIdentity
      extended by org.java.plugin.tools.mocks.MockPluginElement<PluginPrerequisite>
          extended by 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
MockPluginPrerequisite()
           
 
Method Summary
 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.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
 
Methods inherited from interface org.java.plugin.registry.Identity
getId
 
Methods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentation
 

Constructor Detail

MockPluginPrerequisite

public MockPluginPrerequisite()
Method Detail

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()

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.