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 class
SoLicenseProperty.SbLicenseTypes
Indicates 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 boolean
dispose()
Explicitly call this method to force object to dispose its unmanaged resources.java.lang.String
getCheckSum()
Returns the checksum of this license.int
getDaysToExpire()
Gets number of days before expiration for the given product version.java.lang.String
getExpirationDate()
Returns the expire date of the product for this license.java.lang.String
getHostID()
Returns the HostID for this license.java.lang.String
getInfo()
Returns the info for this license.SoLicenseProperty.SbLicenseTypes
getLicenseType()
Gets the product type (RunTime or SDK).java.lang.String
getNumUsers()
Returns the number of users of the product for this license.java.lang.String
getProductName()
Returns the name of the product for this license.java.lang.String
getProductVersion()
Returns the version of the product for this license.boolean
isDisposable()
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.boolean
isExpired()
Returns true if the product is expired.boolean
isMasterPassword()
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:SafeDisposable
Returns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()
on the object.- Specified by:
isDisposable
in interfaceSafeDisposable
- Returns:
true
if the object can be disposed in a safe manner
-
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 interfaceSafeDisposable
- Overrides:
dispose
in classInventor
- 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.
-
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.
-
-