com.esri.arcgis.catalog
Class GxServiceDefinitionFactory

java.lang.Object
  extended by com.esri.arcgis.catalog.GxServiceDefinitionFactory
All Implemented Interfaces:
IGxObjectFactory, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class GxServiceDefinitionFactory
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IGxObjectFactory

Service definition object factory.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
GxServiceDefinitionFactory()
          Constructs a GxServiceDefinitionFactory using ArcGIS Engine.
GxServiceDefinitionFactory(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GxServiceDefinitionFactory theGxServiceDefinitionFactory = (GxServiceDefinitionFactory) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IEnumGxObject getChildren(String parentDir, IFileNames fileNames)
          Returns an enumeration of objects corresponding to one or more of the given file names supported by the object factory.
static String getClsid()
          getClsid.
 String getName()
          The name of the object factory.
 boolean hasChildren(String parentDir, IFileNames fileNames)
          Indicates if any of the specified files are supported by the object factory.
 int hashCode()
          the hashcode for this object
 void setCatalogByRef(IGxCatalog rhs1)
          Attach the catalog to the object factory.
 
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

GxServiceDefinitionFactory

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

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

GxServiceDefinitionFactory

public GxServiceDefinitionFactory(Object obj)
                           throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GxServiceDefinitionFactory theGxServiceDefinitionFactory = (GxServiceDefinitionFactory) obj;

Construct a GxServiceDefinitionFactory using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GxServiceDefinitionFactory.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
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

setCatalogByRef

public void setCatalogByRef(IGxCatalog rhs1)
                     throws IOException,
                            AutomationException
Attach the catalog to the object factory.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
setCatalogByRef in interface IGxObjectFactory
Parameters:
rhs1 - A reference to a com.esri.arcgis.catalog.IGxCatalog (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

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

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

hasChildren

public boolean hasChildren(String parentDir,
                           IFileNames fileNames)
                    throws IOException,
                           AutomationException
Indicates if any of the specified files are supported by the object factory.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
hasChildren in interface IGxObjectFactory
Parameters:
parentDir - The parentDir (in)
fileNames - A reference to a com.esri.arcgis.system.IFileNames (in)
Returns:
The hasChildren
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getChildren

public IEnumGxObject getChildren(String parentDir,
                                 IFileNames fileNames)
                          throws IOException,
                                 AutomationException
Returns an enumeration of objects corresponding to one or more of the given file names supported by the object factory.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getChildren in interface IGxObjectFactory
Parameters:
parentDir - The parentDir (in)
fileNames - A reference to a com.esri.arcgis.system.IFileNames (in)
Returns:
A reference to a com.esri.arcgis.catalog.IEnumGxObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.