Package com.nomagic.magicdraw.plugins
Class RequiredPlugin
- java.lang.Object
-
- com.nomagic.magicdraw.plugins.RequiredPlugin
-
@OpenApiAll public class RequiredPlugin extends java.lang.Object
Represents the required plugin info.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
mInternalVersion
Required plugin internal versionprivate java.lang.String
mInternalVersionMax
Required maximum plugin internal versionprivate java.lang.String
mName
Required plugin nameprivate java.lang.String
mVersion
Required plugin version numberprivate java.lang.String
mVersionMax
Required maximum plugin version numberprivate boolean
optional
Plugin is optional and not influence on loding of depended plugins
-
Constructor Summary
Constructors Constructor Description RequiredPlugin(java.lang.String internalVersion, java.lang.String version, java.lang.String internalVersionMax, java.lang.String versionMax, java.lang.String name, java.lang.String optionalValue)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
getBooleanValue(java.lang.String value)
java.lang.String
getInternalVersion()
Returns required plugin internal version numberjava.lang.String
getInternalVersionMax()
Returns required maximum plugin internal version numberjava.lang.String
getName()
Returns name of the required plugin.java.lang.String
getVersion()
Returns required plugin version number.java.lang.String
getVersionMax()
Returns required maximum plugin version number.boolean
isOptional()
-
-
-
Field Detail
-
mName
@CheckForNull private final java.lang.String mName
Required plugin name
-
mVersion
@CheckForNull private final java.lang.String mVersion
Required plugin version number
-
mInternalVersion
@CheckForNull private final java.lang.String mInternalVersion
Required plugin internal version
-
mVersionMax
@CheckForNull private final java.lang.String mVersionMax
Required maximum plugin version number
-
mInternalVersionMax
@CheckForNull private final java.lang.String mInternalVersionMax
Required maximum plugin internal version
-
optional
private final boolean optional
Plugin is optional and not influence on loding of depended plugins
-
-
Constructor Detail
-
RequiredPlugin
public RequiredPlugin(@CheckForNull java.lang.String internalVersion, @CheckForNull java.lang.String version, @CheckForNull java.lang.String internalVersionMax, @CheckForNull java.lang.String versionMax, @CheckForNull java.lang.String name, @CheckForNull java.lang.String optionalValue)
Constructor.- Parameters:
internalVersion
- required plugin internal version number.version
- required plugin version number.internalVersionMax
- required maximum plugin internal version number.versionMax
- required maximum plugin version number.name
- required plugin nameoptionalValue
- if plugin optional
-
-
Method Detail
-
getBooleanValue
private static boolean getBooleanValue(@CheckForNull java.lang.String value)
-
getName
@CheckForNull public java.lang.String getName()
Returns name of the required plugin.- Returns:
- name of the required plugin
-
getVersion
@CheckForNull public java.lang.String getVersion()
Returns required plugin version number.- Returns:
- version number
-
getInternalVersion
@CheckForNull public java.lang.String getInternalVersion()
Returns required plugin internal version number- Returns:
- internal version number
-
getVersionMax
@CheckForNull public java.lang.String getVersionMax()
Returns required maximum plugin version number.- Returns:
- version number
-
getInternalVersionMax
@CheckForNull public java.lang.String getInternalVersionMax()
Returns required maximum plugin internal version number- Returns:
- internal version number
-
isOptional
public boolean isOptional()
-
-