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 TypeMethodDescriptionbooleanbooleanbooleanbooleanmatches()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, setDocumentationMethods inherited from class org.java.plugin.tools.mocks.MockIdentity
getId, setIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.java.plugin.registry.Documentable
getDocsPath, getDocumentationMethods inherited from interface org.java.plugin.registry.PluginElement
getDeclaringPluginDescriptor, getDeclaringPluginFragment
-
Constructor Details
-
MockPluginPrerequisite
public MockPluginPrerequisite()
-
-
Method Details
-
getPluginId
- Specified by:
getPluginIdin 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:
getPluginVersionin interfacePluginPrerequisite- Returns:
- desired plug-in version identifier or
nullif not specified - See Also:
-
setPluginVersion
- Parameters:
value- the plug-in version to set- Returns:
- this instance
-
isExported
public boolean isExported()- Specified by:
isExportedin interfacePluginPrerequisite- Returns:
trueif 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:
isOptionalin interfacePluginPrerequisite- Returns:
trueif this prerequisite is not required- See Also:
-
setOptional
- Parameters:
value- the optional flag to set- Returns:
- this instance
-
isReverseLookup
public boolean isReverseLookup()- Specified by:
isReverseLookupin interfacePluginPrerequisite- Returns:
trueif 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:
matchesin interfacePluginPrerequisite- Returns:
trueif this prerequisite is fulfilled- See Also:
-
setMatches
- Parameters:
value- the matches flag to set- Returns:
- this instance
-
getMatchingRule
- Specified by:
getMatchingRulein 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:
getUniqueIdin interfaceUniqueIdentity- Returns:
- unique ID of plug-in element
- See Also:
-