com.esri.arcgis.catalog
Interface IGxFile

All Superinterfaces:
Serializable
All Known Implementing Classes:
GxCatalog, GxDataGraph, GxDiskConnection, GxFeatureDefinitionPackage, GxFile, GxFolder, GxGeoprocessingResult, GxLayer, GxMap, GxMetadata, GxMSDFile, GxPackage, GxPrjFile, GxReport, GxShortcut, GxSpatialWeightsMatrixFile, GxTextFile, GxToolbox, GxWorkspaceFolder, SearchResults, SearchResultsRoot

public interface IGxFile
extends Serializable

Provides access to members that manages a file object.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void close(boolean saveChanges)
          Closes the file, optionally saving changes.
 void edit()
          Opens an editor to modify the file.
 void esri_new()
          Creates a new file.
 String getPath()
          The full path for the file.
 void open()
          Opens the file.
 void save()
          Saves changes without closing the file.
 void setPath(String path)
          The full path for the file.
 

Method Detail

setPath

void setPath(String path)
             throws IOException,
                    AutomationException
The full path for the file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
path - The path (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPath

String getPath()
               throws IOException,
                      AutomationException
The full path for the file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

esri_new

void esri_new()
              throws IOException,
                     AutomationException
Creates a new file.

Product Availability

Available with ArcGIS Desktop.

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

open

void open()
          throws IOException,
                 AutomationException
Opens the file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

close

void close(boolean saveChanges)
           throws IOException,
                  AutomationException
Closes the file, optionally saving changes.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
saveChanges - The saveChanges (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

edit

void edit()
          throws IOException,
                 AutomationException
Opens an editor to modify the file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

save

void save()
          throws IOException,
                 AutomationException
Saves changes without closing the file.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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