Class LicenseUtils
java.lang.Object
com.nomagic.magicdraw.license.utils.LicenseUtils
Utility class for accessing licensing information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get current edition.static boolean
Check if Architect edition.static boolean
Deprecated.static boolean
Check if Demo version.static boolean
Check if given edition.static boolean
Check if Enterprise edition.static boolean
Deprecated.static boolean
Check if Evaluation version.static boolean
Check if Floating license type.static boolean
Check if "higher" than Standard edition.static boolean
Check if Reader edition.static boolean
Check if Standard edition or "higher".
-
Constructor Details
-
LicenseUtils
public LicenseUtils()
-
-
Method Details
-
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
Check if given edition.- Parameters:
edition
- edition to check.- Returns:
- true if given edition, otherwise - false.
-
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. -
isEnterpriseVersion
Deprecated.
-
isArchitectEdition()