Class LicenseUtils

java.lang.Object
com.nomagic.magicdraw.license.utils.LicenseUtils

@OpenApiAll public final class LicenseUtils extends Object
Utility class for accessing licensing information.
  • 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

      public static boolean isEdition(String edition)
      Check if given edition.
      Parameters:
      edition - edition to check.
      Returns:
      true if given edition, otherwise - false.
    • getEdition

      public static 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.