Package com.nomagic.magicdraw.plugins
Interface ResourceDependentPlugin
-
@OpenApiAll public interface ResourceDependentPlugin
This interface is for plugins, which have profile dependencies in project. The method #isRequiredPlugin is invoked on every project save. If plugin is required for project, it should return True. In XMI plugin name and version is saved to provide info which plugin version is required for project on load.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getPluginName()
Returns name of pluginjava.lang.String
getPluginVersion()
Returns version of plugindefault boolean
isPluginRequired(com.nomagic.ci.persistence.IProject project)
Given a project, returns true if this project requires this plugin.boolean
isPluginRequired(Project project)
Given a project, returns true if this project requires this plugin.
-
-
-
Method Detail
-
isPluginRequired
boolean isPluginRequired(Project project)
Given a project, returns true if this project requires this plugin.- Parameters:
project
- to be evaluated.- Returns:
- true if given project requires plugin.
-
isPluginRequired
default boolean isPluginRequired(com.nomagic.ci.persistence.IProject project)
Given a project, returns true if this project requires this plugin.- Parameters:
project
- to be evaluated.- Returns:
- true if given project requires plugin.
-
getPluginName
java.lang.String getPluginName()
Returns name of plugin- Returns:
- name of plugin.
-
getPluginVersion
java.lang.String getPluginVersion()
Returns version of plugin- Returns:
- plugin version.
-
-