Class SoLicensedProduct

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.lock.SoLicensedProduct
All Implemented Interfaces:
SafeDisposable

public class SoLicensedProduct extends Inventor implements SafeDisposable
Class managing a licensed product. SoLicensedProduct manages a licensed product. This class provides information about the current available licenses for a given product. The getProduct() method returns the SbProduct enum value corresponding to the product. The getLicenseCount() method gives you the number of licenses available. The getLicenseByIndex() method gives you a SoLicenseProperty containing license info for this product.
  • Constructor Details

    • SoLicensedProduct

      public SoLicensedProduct()
  • Method Details

    • dispose

      public boolean dispose()
      Description copied from class: Inventor
      Explicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.
      Specified by:
      dispose in interface SafeDisposable
      Overrides:
      dispose in class Inventor
      Returns:
      true if this object native resources were successfully disposed; false if it was already disposed or no native resources has been registered for this object.
    • isDisposable

      public boolean isDisposable()
      Description copied from interface: SafeDisposable
      Returns a boolean flag which indicates if it is safe to call SafeDisposable.dispose() on the object.
      Specified by:
      isDisposable in interface SafeDisposable
      Returns:
      true if the object can be disposed in a safe manner
    • getProductName

      public String getProductName()
      Returns the name of the licensed product.
    • getProduct

      public SoLicensedProduct.SbProducts getProduct()
      Returns the SbProduct enum value of the licensed product.
    • getLicenseCount

      public int getLicenseCount()
      Returns the number of licenses available for this product.
    • getLicenseByIndex

      public SoLicenseProperty getLicenseByIndex(int index)
      Returns the license of the licensed product for the given index. If the given index is greater than the value returned by getLicenseCount(), the method returns NULL.