|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.ESRILicenseInfo
public class ESRILicenseInfo
ESRI License Info.
Use the ESRILicenseInfo object to determine the current license level in use and whether a specific product is licensed.
The object models for ArcView, ArcEditor, and ArcInfo at ArcGIS 8.1 are identical. All classes, interfaces, methods, and properties are present in all products. This means that the same DLLs containing the same components with the same GUIDs are installed for all deployments; in other words, code written on one deployment will successfully compile on another. What will differ for the various deployments is the behavior of certain method calls.
As a developer you may need to know what license is currently checked out by the user, so that your code can be robust enough to work on all deploymets, or at least have the appropriate error checking.
To determine the level of license currently in use, use the ESRILicenseInfo coclass and the DefaultProduct property on its IESRILicenseInfo interface.
Constructor Summary | |
---|---|
ESRILicenseInfo()
Constructs a ESRILicenseInfo using ArcGIS Engine. |
|
ESRILicenseInfo(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ESRILicenseInfo theESRILicenseInfo = (ESRILicenseInfo) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getDefaultProduct()
Indicates the product code that will be used on the current machine. |
int |
hashCode()
the hashcode for this object |
boolean |
isLicensed(int productCode)
Indicates if the specified product is licensed. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public ESRILicenseInfo() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ESRILicenseInfo(Object obj) throws IOException
ESRILicenseInfo theESRILicenseInfo = (ESRILicenseInfo) obj;
obj
to ESRILicenseInfo
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getDefaultProduct() throws IOException, AutomationException
getDefaultProduct
in interface IESRILicenseInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLicensed(int productCode) throws IOException, AutomationException
isLicensed
in interface IESRILicenseInfo
productCode
- A com.esri.arcgis.system.esriProductCode constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |