com.esri.arcgis.carto
Interface IDataSourceHelperMapDocument

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DataSourceHelper, IDataSourceHelperMapDocumentProxy

public interface IDataSourceHelperMapDocument
extends java.io.Serializable

COM Interface 'IDataSourceHelperMapDocument'. Generated 3/19/2015 1:20:54 PM from 'C:\ArcGIS\COM\esriCarto.olb'

Description: 'Provides access to members that help repair/replace data sources at the Map Document Level.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IIDbd16c25f_5ac2_4e6d_8e34_bcc5feb395dd
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 void findAndReplaceWorkspaceNamePath(IMapDocument pMapDocument, java.lang.String oldWorkspaceName, java.lang.String newWorkspaceName, boolean validate)
          String version of ReplaceWorkspaceName.
 void repair(IMapDocument pMapDocument, 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(IMapDocument pMapDocument, IWorkspaceName pOldWorkspaceName, IWorkspaceName pNewWorkspaceName, boolean validate)
          Replaces all layers having matching workspace path names with the new workspace name object.
 

Field Detail

IIDbd16c25f_5ac2_4e6d_8e34_bcc5feb395dd

static final int IIDbd16c25f_5ac2_4e6d_8e34_bcc5feb395dd
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

replaceWorkspaceName

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

Parameters:
pMapDocument - A reference to a com.esri.arcgis.carto.IMapDocument (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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

repair

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

Parameters:
pMapDocument - A reference to a com.esri.arcgis.carto.IMapDocument (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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findAndReplaceWorkspaceNamePath

void findAndReplaceWorkspaceNamePath(IMapDocument pMapDocument,
                                     java.lang.String oldWorkspaceName,
                                     java.lang.String newWorkspaceName,
                                     boolean validate)
                                     throws java.io.IOException,
                                            AutomationException
String version of ReplaceWorkspaceName. Also does find and replace of parts of the workspace path name.

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