com.esri.arcgis.carto
Interface IDataSourceHelperMap

All Superinterfaces:
Serializable
All Known Implementing Classes:
DataSourceHelper

public interface IDataSourceHelperMap
extends Serializable

Provides access to members that help repair/replace data sources at the Map Level.

Product Availability

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


Method Summary
 void findAndReplaceWorkspaceNamePath(IBasicMap pBasicMap, String oldWorkspaceName, String newWorkspaceName, boolean validate)
          String version of ReplaceWorkspaceName; Also does find and replace of parts of the workspace path name.
 void repair(IBasicMap pBasicMap, IDataLayer pDataLayer, IName pName, boolean validate)
          Repairs the specified layer and attempt to repair all other broken layers with same workspace path name as the specified layer.
 void replaceWorkspaceName(IBasicMap pBasicMap, IWorkspaceName pOldWorkspaceName, IWorkspaceName pNewWorkspaceName, boolean validate)
          Replaces all layers having matching workspace path names with the new workspace name object.
 

Method Detail

replaceWorkspaceName

void replaceWorkspaceName(IBasicMap pBasicMap,
                          IWorkspaceName pOldWorkspaceName,
                          IWorkspaceName pNewWorkspaceName,
                          boolean validate)
                          throws IOException,
                                 AutomationException
Replaces all layers having matching workspace path names with the new workspace name object.

Product Availability

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

Parameters:
pBasicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
pOldWorkspaceName - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
pNewWorkspaceName - A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)
validate - The validate (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

repair

void repair(IBasicMap pBasicMap,
            IDataLayer pDataLayer,
            IName pName,
            boolean validate)
            throws IOException,
                   AutomationException
Repairs the specified layer and attempt to repair all other broken layers with same workspace path name as the specified layer.

Product Availability

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

Parameters:
pBasicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
pDataLayer - A reference to a com.esri.arcgis.carto.IDataLayer (in)
pName - A reference to a com.esri.arcgis.system.IName (in)
validate - The validate (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findAndReplaceWorkspaceNamePath

void findAndReplaceWorkspaceNamePath(IBasicMap pBasicMap,
                                     String oldWorkspaceName,
                                     String newWorkspaceName,
                                     boolean validate)
                                     throws IOException,
                                            AutomationException
String version of ReplaceWorkspaceName; Also does find and replace of parts of the workspace path name.

Product Availability

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

Parameters:
pBasicMap - A reference to a com.esri.arcgis.carto.IBasicMap (in)
oldWorkspaceName - The oldWorkspaceName (in)
newWorkspaceName - The newWorkspaceName (in)
validate - The validate (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.