com.esri.arcgis.carto
Interface IDataSourceHelperLayer

All Superinterfaces:
Serializable
All Known Implementing Classes:
DataSourceHelper

public interface IDataSourceHelperLayer
extends Serializable

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

Product Availability

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


Method Summary
 void findAndReplaceWorkspaceNamePath(ILayer pLayer, String oldWorkspaceName, String newWorkspaceName, boolean validate)
          Replaces the layer's workspace path name with the given workspace path name; Also does find and replace of parts of the workspace path name.
 void replaceName(ILayer pLayer, IName pName, boolean validate)
          Replaces the layer's IName with the given IName.
 

Method Detail

replaceName

void replaceName(ILayer pLayer,
                 IName pName,
                 boolean validate)
                 throws IOException,
                        AutomationException
Replaces the layer's IName with the given IName.

Product Availability

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

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (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(ILayer pLayer,
                                     String oldWorkspaceName,
                                     String newWorkspaceName,
                                     boolean validate)
                                     throws IOException,
                                            AutomationException
Replaces the layer's workspace path name with the given workspace path name; Also does find and replace of parts of the workspace path name.

Product Availability

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

Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (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.