Class LicenseUtils
- java.lang.Object
-
- com.nomagic.magicdraw.license.utils.LicenseUtils
-
@OpenApiAll public final class LicenseUtils extends java.lang.Object
Utility class for accessing licensing information.
-
-
Constructor Summary
Constructors Constructor Description LicenseUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
getEdition()
Get current edition.static boolean
isArchitectEdition()
Check if Architect edition.static boolean
isArchitectVersion()
Deprecated.static boolean
isDemoVersion()
Check if Demo version.static boolean
isEdition(java.lang.String edition)
Check if given edition.static boolean
isEnterpriseEdition()
Check if Enterprise edition.static boolean
isEnterpriseVersion()
Deprecated.static boolean
isEvaluationVersion()
Check if Evaluation version.static boolean
isFloating()
Check if Floating license type.static boolean
isHigherThanStandardEdition()
Check if "higher" than Standard edition.static boolean
isReaderEdition()
Check if Reader edition.static boolean
isStandardEditionOrHigher()
Check if Standard edition or "higher".
-
-
-
Method Detail
-
isReaderEdition
public static boolean isReaderEdition()
Check if Reader edition.- Returns:
- true if Reader edition, otherwise - false.
-
isEnterpriseEdition
public static boolean isEnterpriseEdition()
Check if Enterprise edition.- Returns:
- true if Enterprise edition, otherwise - false.
-
isArchitectEdition
public static boolean isArchitectEdition()
Check if Architect edition.- Returns:
- true if Architect edition, otherwise - false.
-
isEdition
public static boolean isEdition(java.lang.String edition)
Check if given edition.- Parameters:
edition
- edition to check.- Returns:
- true if given edition, otherwise - false.
-
getEdition
public static java.lang.String getEdition()
Get current edition.- Returns:
- current edition.
-
isStandardEditionOrHigher
public static boolean isStandardEditionOrHigher()
Check if Standard edition or "higher".- Returns:
- true if Standard edition or "higher", otherwise - false.
-
isHigherThanStandardEdition
public static boolean isHigherThanStandardEdition()
Check if "higher" than Standard edition.- Returns:
- true if "higher" than Standard edition, otherwise - false.
-
isEvaluationVersion
public static boolean isEvaluationVersion()
Check if Evaluation version.- Returns:
- true if Evaluation version, otherwise - false.
-
isDemoVersion
public static boolean isDemoVersion()
Check if Demo version.- Returns:
- true if Demo version, otherwise - false.
-
isFloating
public static boolean isFloating()
Check if Floating license type.- Returns:
- true if Floating license, otherwise - false.
-
isArchitectVersion
@Deprecated public static boolean isArchitectVersion()
Deprecated.
-
isEnterpriseVersion
@Deprecated public static boolean isEnterpriseVersion()
Deprecated.
-
-