org.java.plugin.tools.mocks
public class MockLibrary extends MockPluginElement<Library> implements Library
Constructor and Description |
---|
MockLibrary() |
Modifier and Type | Method and Description |
---|---|
MockLibrary |
addExport(java.lang.String exportPrefix) |
java.util.Collection<java.lang.String> |
getExports()
This method should return collection of
String objects that
represent resource name prefixes or package name patterns that are
available to other plug-ins. |
java.lang.String |
getPath() |
java.lang.String |
getUniqueId() |
Version |
getVersion() |
boolean |
isCodeLibrary() |
MockLibrary |
setCodeLibrary(boolean value) |
MockLibrary |
setPath(java.lang.String value) |
MockLibrary |
setVersion(Version value) |
getDeclaringPluginDescriptor, getDeclaringPluginFragment, getDocsPath, getDocumentation, setDeclaringPluginDescriptor, setDeclaringPluginFragment, setDocsPath, setDocumentation
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaringPluginDescriptor, getDeclaringPluginFragment
getDocsPath, getDocumentation
public java.util.Collection<java.lang.String> getExports()
Library
String
objects that
represent resource name prefixes or package name patterns that are
available to other plug-ins.
"*", "package.name.*", "package.name.ClassName", "resource/path/*
getExports
in interface Library
Library.getExports()
public MockLibrary addExport(java.lang.String exportPrefix)
exportPrefix
- export prefix to addpublic java.lang.String getPath()
getPath
in interface Library
Library.getPath()
public MockLibrary setPath(java.lang.String value)
value
- the path to setpublic Version getVersion()
getVersion
in interface Library
null
Library.getVersion()
public MockLibrary setVersion(Version value)
value
- the version to setpublic boolean isCodeLibrary()
isCodeLibrary
in interface Library
true
if this is "code" libraryLibrary.isCodeLibrary()
public MockLibrary setCodeLibrary(boolean value)
value
- the code library flag to setpublic java.lang.String getUniqueId()
getUniqueId
in interface UniqueIdentity
UniqueIdentity.getUniqueId()
Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.