@OpenApiAll
public class PluginDescriptor
extends java.lang.Object
plugin.xml
file.Modifier and Type | Class and Description |
---|---|
static class |
PluginDescriptor.ClassLookupStrategy
Class lookup strategy.
|
Constructor and Description |
---|
PluginDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
addRequiredPlugin(java.lang.String pluginID,
RequiredPlugin requiredPlugin)
Adds record about required plugin.
|
PluginDescriptor.ClassLookupStrategy |
getClassLookupStrategy()
Get class lookup strategy.
|
java.lang.String |
getClassName()
Returns plugin class name.
|
java.lang.String |
getID()
Returns plugin id.
|
int |
getInternalVersion()
Returns plugin internal version number
|
java.lang.String |
getLicenseID()
Returns plugin license id.
|
java.lang.String |
getName()
Returns plugin name.
|
java.io.File |
getPluginDirectory()
Returns the plugin installation directory.
|
java.lang.String |
getProvider()
Returns plugin provider.
|
java.lang.String |
getRequiresAPI()
Returns the required MagicDraw Open API version.
|
java.util.Map<java.lang.String,RequiredPlugin> |
getRequiresPlugins()
Returns record about required plugins.
|
java.net.URL[] |
getRuntimeLibraries()
Returns an array of required jars for this plugin.
|
java.lang.String |
getVersion()
Return plugin version.
|
boolean |
isEnabled()
Returns true, if this plugin is enabled by user.
|
boolean |
isLoaded()
Returns true, if this plugin is loaded.
|
boolean |
isSeparateClassloader()
Checks if plugin needs separate classloader.
|
void |
setClassLookupStrategy(PluginDescriptor.ClassLookupStrategy lookupStrategy)
Set class lookup strategy.
|
void |
setClassName(java.lang.String aClass)
Sets plugin class name.
|
void |
setEnabled(boolean enabled)
Sets enabled flag.
|
void |
setID(java.lang.String id)
Sets plugin id.
|
void |
setInternalVersion(int internalVersion)
Sets plugin internal version number
|
void |
setLicenseID(java.lang.String id)
Sets plugin license id.
|
void |
setLoaded(boolean loaded)
Sets loaded flag.
|
void |
setName(java.lang.String name)
Sets the name of the plugin.
|
void |
setPluginDirectory(java.io.File directory)
Sets the plugin installation directory.
|
void |
setProvider(java.lang.String provider)
Sets plugin provider.
|
void |
setRequiresAPI(java.lang.String version)
Sets the required MagicDraw Open API version.
|
void |
setRuntimeLibraries(java.net.URL[] libraries)
Sets an array of required jars for this plugin.
|
void |
setSeparateClassloader(boolean separateClassloader)
Sets if use separate classloader.
|
void |
setVersion(java.lang.String version)
Sets the plugin version.
|
java.lang.String |
toString()
Provides some useful information about this class attributes.
|
public void setClassName(java.lang.String aClass)
aClass
- the plugin class name.public java.lang.String getClassName()
public void setID(java.lang.String id)
id
- the plugin id.public java.lang.String getID()
public void setLicenseID(java.lang.String id)
id
- the plugin license id.public java.lang.String getLicenseID()
public int getInternalVersion()
public void setInternalVersion(int internalVersion)
internalVersion
- plugin internal version numberpublic void setName(java.lang.String name)
name
- the plugin name.public java.lang.String getName()
public void setProvider(java.lang.String provider)
provider
- the plugin provider.public java.lang.String getProvider()
public void setRequiresAPI(java.lang.String version)
version
- the required version number. Must be double.public java.lang.String getRequiresAPI()
public void setRuntimeLibraries(java.net.URL[] libraries)
libraries
- the array of required libraries.public java.net.URL[] getRuntimeLibraries()
public void setVersion(java.lang.String version)
version
- the plugin version.public java.lang.String getVersion()
public void setPluginDirectory(java.io.File directory)
directory
- the plugin directory.public java.io.File getPluginDirectory()
public java.util.Map<java.lang.String,RequiredPlugin> getRequiresPlugins()
public void addRequiredPlugin(java.lang.String pluginID, RequiredPlugin requiredPlugin)
pluginID
- the id of the plugin.requiredPlugin
- the required plugin descriptorpublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the new value of enabled flag.public boolean isLoaded()
public void setLoaded(boolean loaded)
loaded
- the new value of loaded flag.public void setSeparateClassloader(boolean separateClassloader)
separateClassloader
- true if use separate classloader.public boolean isSeparateClassloader()
public PluginDescriptor.ClassLookupStrategy getClassLookupStrategy()
public void setClassLookupStrategy(PluginDescriptor.ClassLookupStrategy lookupStrategy)
lookupStrategy
- lookup strategy.public java.lang.String toString()
toString
in class java.lang.Object