public class Plugin extends java.lang.Object
| Constructor and Description |
|---|
Plugin(java.io.File file)
Creates a plug-in container.
|
Plugin(java.lang.String filename)
Creates a plug-in container.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.jar.JarFile |
getArchive()
Returns the archive.
|
java.lang.String |
getPluginName()
Returns the plug-in name.
|
java.net.URL |
getUrl()
Returns the URL
|
void |
setArchive(java.util.jar.JarFile archive)
Sets the archive to set.
|
void |
setPluginName(java.lang.String pluginName)
Sets the plug-in name
|
void |
setUrl(java.net.URL url)
Sets the URL.
|
java.lang.String |
toString() |
public Plugin(java.lang.String filename) throws MaltChainedException
filename - The file name that contains the pluginMaltChainedExceptionpublic Plugin(java.io.File file) throws MaltChainedException
file - The jar file that contains the pluginMaltChainedExceptionpublic java.util.jar.JarFile getArchive()
public void setArchive(java.util.jar.JarFile archive)
archive - The archive to set.public java.lang.String getPluginName()
public void setPluginName(java.lang.String pluginName)
pluginName - the plug-in namepublic java.net.URL getUrl()
public void setUrl(java.net.URL url)
url - the URLpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.