com.esri.arcgis.carto
Interface IMSDHelper2

All Superinterfaces:
IMSDHelper, Serializable
All Known Implementing Classes:
MSDHelper

public interface IMSDHelper2
extends IMSDHelper, Serializable

Provides methods to open, save, repair mapserver definition files.

Product Availability

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


Method Summary
 String getDatasetFromTable(String mapPath, int tableIndex)
          getDatasetFromTable
 String getTableDisplayName(String mapPath, int tableIndex)
          getTableDisplayName
 int getTables(String mapPath)
          getTables
 String getWorkspaceConnectionStringFromTable(String mapPath, int tableIndex)
          getWorkspaceConnectionStringFromTable
 String getWorkspaceFactoryTypeFromTable(String mapPath, int tableIndex)
          getWorkspaceFactoryTypeFromTable
 boolean isDataLayer(String layerPath)
          isDataLayer
 boolean isTableValid(String mapPath, int tableIndex)
          isTableValid
 void putWorkspaceConnectionStringInTable(String mapPath, int tableIndex, String newWorkspaceConnection, boolean validate)
          putWorkspaceConnectionStringInTable
 boolean relativePaths()
          relativePaths
 
Methods inherited from interface com.esri.arcgis.carto.IMSDHelper
close, getDataset, getLayerDisplayName, getLayers, getLayerType, getMapDisplayName, getMaps, getSubLayers, getWorkspaceConnectionStringFromLayer, getWorkspaceFactoryType, isActiveMap, isLayerValid, open, putWorkspaceConnectionStringInLayer, replaceAll, save, saveAs
 

Method Detail

relativePaths

boolean relativePaths()
                      throws IOException,
                             AutomationException
relativePaths

Product Availability

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

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

isDataLayer

boolean isDataLayer(String layerPath)
                    throws IOException,
                           AutomationException
isDataLayer

Product Availability

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

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

getTables

int getTables(String mapPath)
              throws IOException,
                     AutomationException
getTables

Product Availability

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

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

isTableValid

boolean isTableValid(String mapPath,
                     int tableIndex)
                     throws IOException,
                            AutomationException
isTableValid

Product Availability

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

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

getDatasetFromTable

String getDatasetFromTable(String mapPath,
                           int tableIndex)
                           throws IOException,
                                  AutomationException
getDatasetFromTable

Product Availability

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

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

getWorkspaceFactoryTypeFromTable

String getWorkspaceFactoryTypeFromTable(String mapPath,
                                        int tableIndex)
                                        throws IOException,
                                               AutomationException
getWorkspaceFactoryTypeFromTable

Product Availability

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

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

getWorkspaceConnectionStringFromTable

String getWorkspaceConnectionStringFromTable(String mapPath,
                                             int tableIndex)
                                             throws IOException,
                                                    AutomationException
getWorkspaceConnectionStringFromTable

Product Availability

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

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

putWorkspaceConnectionStringInTable

void putWorkspaceConnectionStringInTable(String mapPath,
                                         int tableIndex,
                                         String newWorkspaceConnection,
                                         boolean validate)
                                         throws IOException,
                                                AutomationException
putWorkspaceConnectionStringInTable

Product Availability

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

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

getTableDisplayName

String getTableDisplayName(String mapPath,
                           int tableIndex)
                           throws IOException,
                                  AutomationException
getTableDisplayName

Product Availability

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

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