Package com.openinventor.inventor.lock
Class SoLicenseProperty
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.lock.SoLicenseProperty
-
- All Implemented Interfaces:
SafeDisposable
public class SoLicenseProperty extends Inventor implements SafeDisposable
Class providing information about a licensed product. This class provides information about a product license, such as the product version or expiration date of the license.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSoLicenseProperty.SbLicenseTypesIndicates the type of the license (SDK or RunTime).-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoLicenseProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandispose()Explicitly call this method to force object to dispose its unmanaged resources.java.lang.StringgetCheckSum()Returns the checksum of this license.intgetDaysToExpire()Gets number of days before expiration for the given product version.java.lang.StringgetExpirationDate()Returns the expire date of the product for this license.java.lang.StringgetHostID()Returns the HostID for this license.java.lang.StringgetInfo()Returns the info for this license.SoLicenseProperty.SbLicenseTypesgetLicenseType()Gets the product type (RunTime or SDK).java.lang.StringgetNumUsers()Returns the number of users of the product for this license.java.lang.StringgetProductName()Returns the name of the product for this license.java.lang.StringgetProductVersion()Returns the version of the product for this license.booleanisDisposable()Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.booleanisExpired()Returns true if the product is expired.booleanisMasterPassword()Returns true if the license is a master password.-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Method Detail
-
isDisposable
public boolean isDisposable()
Description copied from interface:SafeDisposableReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.- Specified by:
isDisposablein interfaceSafeDisposable- Returns:
trueif the object can be disposed in a safe manner
-
dispose
public boolean dispose()
Description copied from class:InventorExplicitly 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:
disposein interfaceSafeDisposable- Overrides:
disposein classInventor- Returns:
trueif this object native resources were successfully disposed;falseif it was already disposed or no native resources has been registered for this object.
-
isMasterPassword
public boolean isMasterPassword()
Returns true if the license is a master password.
-
getProductVersion
public java.lang.String getProductVersion()
Returns the version of the product for this license.
-
getProductName
public java.lang.String getProductName()
Returns the name of the product for this license.
-
getCheckSum
public java.lang.String getCheckSum()
Returns the checksum of this license.
-
getDaysToExpire
public int getDaysToExpire()
Gets number of days before expiration for the given product version. Returns : 0 if license has expired or never expires >0 if license has not expired -1 if license is invalid
-
getLicenseType
public SoLicenseProperty.SbLicenseTypes getLicenseType()
Gets the product type (RunTime or SDK).
-
getHostID
public java.lang.String getHostID()
Returns the HostID for this license.
-
getInfo
public java.lang.String getInfo()
Returns the info for this license.
-
getExpirationDate
public java.lang.String getExpirationDate()
Returns the expire date of the product for this license.
-
isExpired
public boolean isExpired()
Returns true if the product is expired.
-
getNumUsers
public java.lang.String getNumUsers()
Returns the number of users of the product for this license.
-
-