com.esri.arcgis.datasourcesfile
Class LicensedDataExtension

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.LicensedDataExtension
All Implemented Interfaces:
IDataLicenseManager, com.esri.arcgis.interop.RemoteObjRef, IAutoExtension, IExtension, Serializable

public class LicensedDataExtension
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAutoExtension, IExtension, IDataLicenseManager

The Licensed Data Extension.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IExtension
IID, IID7f657ec9_dbf1_11d2_9f2f_00c04f6bc69e, xxDummy
 
Constructor Summary
LicensedDataExtension()
          Constructs a LicensedDataExtension using ArcGIS Engine.
LicensedDataExtension(Object obj)
          Construct a LicensedDataExtension using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void addLicenseFromFile(String bstrLicenseFileName)
          Adds license information.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          Number of license information.
 IDataLicenseInfo getLicenseInfo(int nIdx)
          Returns license information by index.
 IDataLicenseInfo getLicenseInfoFromFile(String bstrLicenseFileName)
          Returns license information by file name.
 String getName()
          The name of the extension.
 int hashCode()
          the hashcode for this object
 void removeLicense(int nIdx)
          Removes license information.
 void shutdown()
          Shuts down the extension.
 void startup(Object initializationData)
          Starts up the extension with the given initialization data.
 
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

LicensedDataExtension

public LicensedDataExtension()
                      throws IOException,
                             UnknownHostException
Constructs a LicensedDataExtension using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

LicensedDataExtension

public LicensedDataExtension(Object obj)
                      throws IOException
Construct a LicensedDataExtension using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to LicensedDataExtension.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems LicensedDataExtension theLicensedDataExtension = (LicensedDataExtension) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getName

public String getName()
               throws IOException,
                      AutomationException
The name of the extension.

Specified by:
getName in interface IExtension
Returns:
The extensionName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

startup

public void startup(Object initializationData)
             throws IOException,
                    AutomationException
Starts up the extension with the given initialization data.

Specified by:
startup in interface IExtension
Parameters:
initializationData - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdown

public void shutdown()
              throws IOException,
                     AutomationException
Shuts down the extension.

Specified by:
shutdown in interface IExtension
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

public int getCount()
             throws IOException,
                    AutomationException
Number of license information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getCount in interface IDataLicenseManager
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLicenseInfo

public IDataLicenseInfo getLicenseInfo(int nIdx)
                                throws IOException,
                                       AutomationException
Returns license information by index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLicenseInfo in interface IDataLicenseManager
Parameters:
nIdx - The nIdx (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IDataLicenseInfo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addLicenseFromFile

public void addLicenseFromFile(String bstrLicenseFileName)
                        throws IOException,
                               AutomationException
Adds license information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
addLicenseFromFile in interface IDataLicenseManager
Parameters:
bstrLicenseFileName - The bstrLicenseFileName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeLicense

public void removeLicense(int nIdx)
                   throws IOException,
                          AutomationException
Removes license information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
removeLicense in interface IDataLicenseManager
Parameters:
nIdx - The nIdx (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLicenseInfoFromFile

public IDataLicenseInfo getLicenseInfoFromFile(String bstrLicenseFileName)
                                        throws IOException,
                                               AutomationException
Returns license information by file name.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getLicenseInfoFromFile in interface IDataLicenseManager
Parameters:
bstrLicenseFileName - The bstrLicenseFileName (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IDataLicenseInfo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.