com.esri.arcgis.catalog
Interface IGxObjectContainer

All Superinterfaces:
Serializable
All Known Implementing Classes:
GxAGSConnection, GxAGSDraftFolder, GxAGSFolder, GxAGSGlobe, GxAGSGlobeLayer, GxCadDataset, GxCatalog, GxCoverageDataset, GxDatabase, GxDatabaseServerFolder, GxDataServer, GxDataset, GxDiskConnection, GxExcelFile, GxFolder, GxFolderConnections, GxGDSGeodatabase, GxGISServersFolder, GxMyHostedMapsFolder, GxPCCoverage, GxRasterDataset, GxRemoteDatabaseFolder, GxSDCDataset, GxSpatialReferencesFolder, GxToolbox, GxToolboxesFolder, GxToolboxesRoot, GxToolset, GxVpfDataset, GxWCSConnection, GxWMSConnection, GxWMSMap, GxWMTSConnection, GxWorkspaceFolder, IGxObjectContainerProxy, IMSConnection, IMSFeatureClass, IMSFeatureService, IMSGlobeServiceDescription, IMSMetadataService, SearchResults, SearchResultsRoot

public interface IGxObjectContainer
extends Serializable

Provides access to members that manage child GxObjects.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 IGxObject addChild(IGxObject child)
          Adds a new child and returns a reference to it.
 void deleteChild(IGxObject child)
          Deletes the specified child object.
 IEnumGxObject getChildren()
          An enumeration of the child objects.
 boolean isAreChildrenViewable()
          Indicates if the objects children are available for viewing in the tree-view.
 boolean isHasChildren()
          Indicates if the object has any children.
 

Method Detail

isHasChildren

boolean isHasChildren()
                      throws IOException,
                             AutomationException
Indicates if the object has any children.

Remarks

Note: This property always return True even when it has no children. This was done to improve the overall ArcCatalog browsing performance.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The hasChildren
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getChildren

IEnumGxObject getChildren()
                          throws IOException,
                                 AutomationException
An enumeration of the child objects.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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.

isAreChildrenViewable

boolean isAreChildrenViewable()
                              throws IOException,
                                     AutomationException
Indicates if the objects children are available for viewing in the tree-view.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The areViewable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addChild

IGxObject addChild(IGxObject child)
                   throws IOException,
                          AutomationException
Adds a new child and returns a reference to it. However, if a duplicate already exists, the function returns the existing child instead.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
child - A reference to a com.esri.arcgis.catalog.IGxObject (in)
Returns:
A reference to a com.esri.arcgis.catalog.IGxObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteChild

void deleteChild(IGxObject child)
                 throws IOException,
                        AutomationException
Deletes the specified child object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
child - A reference to a com.esri.arcgis.catalog.IGxObject (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.