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
Modifier and TypeMethodDescriptionReturns name of pluginReturns 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 Details
-
isPluginRequired
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
String getPluginName()Returns name of plugin- Returns:
- name of plugin.
-
getPluginVersion
String getPluginVersion()Returns version of plugin- Returns:
- plugin version.
-