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 ofStringobjects that represent resource name prefixes or package name patterns that are available to other plug-ins.getPath()booleansetCodeLibrary(boolean value) setVersion(Version 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
-
MockLibrary
public MockLibrary()
-
-
Method Details
-
getExports
Description copied from interface:LibraryThis method should return collection ofStringobjects 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:
getExportsin 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:
getVersionin 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:
isCodeLibraryin interfaceLibrary- Returns:
trueif this is "code" library- See Also:
-
setCodeLibrary
- Parameters:
value- the code library flag to set- Returns:
- this instance
-
getUniqueId
- Specified by:
getUniqueIdin interfaceUniqueIdentity- Returns:
- unique ID of plug-in element
- See Also:
-