Package org.java.plugin.tools.mocks
Class MockLibrary
- All Implemented Interfaces:
Documentable<Library>
,Identity
,Library
,PluginElement<Library>
,UniqueIdentity
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method should return collection ofString
objects that represent resource name prefixes or package name patterns that are available to other plug-ins.getPath()
boolean
setCodeLibrary
(boolean value) setVersion
(Version 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
-
MockLibrary
public MockLibrary()
-
-
Method Details
-
getExports
Description copied from interface:Library
This method should return collection ofString
objects that represent resource name prefixes or package name patterns that are available to other plug-ins.
For code library, prefix is a package name, for resource library, the same rules applied to relative resource path calculated against library path (you can replace slash characters in path with dots).
Example prefixes are:
"*", "package.name.*", "package.name.ClassName", "resource/path/*
- Specified by:
getExports
in interfaceLibrary
- Returns:
- collection of exported resource name patterns
- See Also:
-
addExport
- Parameters:
exportPrefix
- export prefix to add- Returns:
- this instance
-
getPath
-
setPath
- Parameters:
value
- the path to set- Returns:
- this instance
-
getVersion
- Specified by:
getVersion
in interfaceLibrary
- Returns:
- library version identifier as specified in manifest file or
null
- See Also:
-
setVersion
- Parameters:
value
- the version to set- Returns:
- this instance
-
isCodeLibrary
public boolean isCodeLibrary()- Specified by:
isCodeLibrary
in interfaceLibrary
- Returns:
true
if this is "code" library- See Also:
-
setCodeLibrary
- Parameters:
value
- the code library flag to set- Returns:
- this instance
-
getUniqueId
- Specified by:
getUniqueId
in interfaceUniqueIdentity
- Returns:
- unique ID of plug-in element
- See Also:
-