com.esri.arcgis.carto
Class EngineWMSMapLayerFactory

java.lang.Object
  extended bycom.esri.arcgis.carto.EngineWMSMapLayerFactory
All Implemented Interfaces:
ILayerFactory, ISupportErrorInfo, java.io.Serializable

public class EngineWMSMapLayerFactory
extends java.lang.Object
implements ILayerFactory, ISupportErrorInfo

Provides programmatic access to a WMS map layer factory.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
EngineWMSMapLayerFactory()
          Constructs a EngineWMSMapLayerFactory using ArcGIS Engine.
EngineWMSMapLayerFactory(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 IEnumLayer create(java.lang.Object inputObject)
          Creates layer(s) based on the specified object.
 boolean equals(java.lang.Object o)
          Compare this object with another
 ILayerFactory getAsILayerFactory()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 java.lang.String getLayerCategory()
          Category name.
 java.lang.String getPublicName()
          Public name of the factory.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 boolean isCanCreate(java.lang.Object inputObject)
          Indicates if the factory can create a layer based upon the specified object.
 IEnumLayer loadLayers()
          Loads a set of layers.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineWMSMapLayerFactory

public EngineWMSMapLayerFactory()
                         throws java.io.IOException,
                                java.net.UnknownHostException
Constructs a EngineWMSMapLayerFactory using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

EngineWMSMapLayerFactory

public EngineWMSMapLayerFactory(java.lang.Object obj)
                         throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

Construct a EngineWMSMapLayerFactory using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to EngineWMSMapLayerFactory.
EngineWMSMapLayerFactory theEngineWMSMapLayerFactory = (EngineWMSMapLayerFactory) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsILayerFactory

public ILayerFactory getAsILayerFactory()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


getPublicName

public java.lang.String getPublicName()
                               throws java.io.IOException,
                                      AutomationException
Description copied from interface: ILayerFactory
Public name of the factory.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getPublicName in interface ILayerFactory
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerCategory

public java.lang.String getLayerCategory()
                                  throws java.io.IOException,
                                         AutomationException
Description copied from interface: ILayerFactory
Category name.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getLayerCategory in interface ILayerFactory
Returns:
The category
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

loadLayers

public IEnumLayer loadLayers()
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: ILayerFactory
Loads a set of layers.

Supported Platforms

Windows, Solaris, Linux

Specified by:
loadLayers in interface ILayerFactory
Returns:
A reference to a com.esri.arcgis.carto.IEnumLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCanCreate

public boolean isCanCreate(java.lang.Object inputObject)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: ILayerFactory
Indicates if the factory can create a layer based upon the specified object.

Supported Platforms

Windows, Solaris, Linux

Specified by:
isCanCreate in interface ILayerFactory
Parameters:
inputObject - A reference to another Object (IUnknown) (in)
Returns:
The ok
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

create

public IEnumLayer create(java.lang.Object inputObject)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: ILayerFactory
Creates layer(s) based on the specified object.

Supported Platforms

Windows, Solaris, Linux

Description

Creates a layer using the factory defined by the implementing coclass and the supplied object.  This object can be a name object.

Specified by:
create in interface ILayerFactory
Parameters:
inputObject - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.carto.IEnumLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.