Package com.nomagic.magicdraw.jpython
Class PythonPluginDescriptor
java.lang.Object
com.nomagic.magicdraw.jpython.PythonPluginDescriptor
The plugin descriptor class. Contains all information about plugin. This information is taken
from plugin.xml file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetID()
Returns plugin id.getName()
Returns plugin name.Returns the plugin instalation directory.Returns plugin provider.Returns the required MagicDraw Open API version.Returns plugin script file name.Return plugin version.void
Sets plugin id.void
Sets the name of the plugin.void
setPluginDirectory
(File directory) Sets the plugin instalation directory.void
setProvider
(String provider) Sets plugin provider.void
setRequiresAPI
(String version) Sets the required MagicDraw Open API version.void
setScriptFileName
(String aScriptFile) Sets plugin scruot file name.void
setVersion
(String version) Sets the plugin version.toString()
Provides some usefull information about this class attributes.
-
Constructor Details
-
PythonPluginDescriptor
public PythonPluginDescriptor()
-
-
Method Details
-
setScriptFileName
Sets plugin scruot file name.- Parameters:
aClass
- the plugin script file name.
-
getScriptFileName
Returns plugin script file name.- Returns:
- plugin script file name.
-
setID
Sets plugin id.- Parameters:
id
- the plugin id.
-
getID
Returns plugin id.- Returns:
- plugins id.
-
setName
Sets the name of the plugin.- Parameters:
name
- the plugin name.
-
getName
Returns plugin name.- Returns:
- name of the plugin.
-
setProvider
Sets plugin provider.- Parameters:
provider
- the plugin provider.
-
getProvider
Returns plugin provider.- Returns:
- the plugin provider name(company or person).
-
setRequiresAPI
Sets the required MagicDraw Open API version.- Parameters:
the
- required version number. Must be parsable double.
-
getRequiresAPI
Returns the required MagicDraw Open API version.- Returns:
- the required version number.
-
setVersion
Sets the plugin version.- Parameters:
version
- the plugin version.
-
getVersion
Return plugin version.- Returns:
- the plugin version.
-
setPluginDirectory
Sets the plugin instalation directory. This is a directory there plugin descriptor xml file was found.- Parameters:
directory
- the plugin directory.
-
getPluginDirectory
Returns the plugin instalation directory. This is a directory there plugin descriptor xml file was found.- Returns:
- the plugin directory.
-
toString
Provides some usefull information about this class attributes.
-