|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.DataSourceHelper
public class DataSourceHelper
Coclass that implements the data source repair methods for MXD.
Constructor Summary | |
---|---|
DataSourceHelper()
Constructs a DataSourceHelper using ArcGIS Engine. |
|
DataSourceHelper(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DataSourceHelper theDataSourceHelper = (DataSourceHelper) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
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 |
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 |
findAndReplaceWorkspaceNamePath(IMapDocument pMapDocument,
String oldWorkspaceName,
String newWorkspaceName,
boolean validate)
String version of ReplaceWorkspaceName. |
void |
findAndReplaceWorkspaceNamePath(IStandaloneTable pStandaloneTable,
String oldWorkspaceName,
String newWorkspaceName,
boolean validate)
Replaces the table's workspace path name with the given workspace path name; Also does find and replace of parts of the workspace path name. |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
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 |
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 |
replaceName(ILayer pLayer,
IName pName,
boolean validate)
Replaces the layer's IName with the given IName. |
void |
replaceName(IStandaloneTable pStandaloneTable,
IName pName,
boolean validate)
Replaces the specified standalone table's IName with the given IName. |
void |
replaceWorkspaceName(IBasicMap pBasicMap,
IWorkspaceName pOldWorkspaceName,
IWorkspaceName pNewWorkspaceName,
boolean validate)
Replaces all layers having matching workspace path names with the new workspace name object. |
void |
replaceWorkspaceName(IMapDocument pMapDocument,
IWorkspaceName pOldWorkspaceName,
IWorkspaceName pNewWorkspaceName,
boolean validate)
Replaces all layers having matching workspace path names with the new workspace name object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public DataSourceHelper() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DataSourceHelper(Object obj) throws IOException
DataSourceHelper theDataSourceHelper = (DataSourceHelper) obj;
obj
to DataSourceHelper
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void replaceWorkspaceName(IMapDocument pMapDocument, IWorkspaceName pOldWorkspaceName, IWorkspaceName pNewWorkspaceName, boolean validate) throws IOException, AutomationException
replaceWorkspaceName
in interface IDataSourceHelperMapDocument
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void repair(IMapDocument pMapDocument, IDataLayer pDataLayer, IName pName, boolean validate) throws IOException, AutomationException
repair
in interface IDataSourceHelperMapDocument
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findAndReplaceWorkspaceNamePath(IMapDocument pMapDocument, String oldWorkspaceName, String newWorkspaceName, boolean validate) throws IOException, AutomationException
findAndReplaceWorkspaceNamePath
in interface IDataSourceHelperMapDocument
pMapDocument
- A reference to a com.esri.arcgis.carto.IMapDocument (in)oldWorkspaceName
- The oldWorkspaceName (in)newWorkspaceName
- The newWorkspaceName (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceWorkspaceName(IBasicMap pBasicMap, IWorkspaceName pOldWorkspaceName, IWorkspaceName pNewWorkspaceName, boolean validate) throws IOException, AutomationException
replaceWorkspaceName
in interface IDataSourceHelperMap
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void repair(IBasicMap pBasicMap, IDataLayer pDataLayer, IName pName, boolean validate) throws IOException, AutomationException
repair
in interface IDataSourceHelperMap
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findAndReplaceWorkspaceNamePath(IBasicMap pBasicMap, String oldWorkspaceName, String newWorkspaceName, boolean validate) throws IOException, AutomationException
findAndReplaceWorkspaceNamePath
in interface IDataSourceHelperMap
pBasicMap
- A reference to a com.esri.arcgis.carto.IBasicMap (in)oldWorkspaceName
- The oldWorkspaceName (in)newWorkspaceName
- The newWorkspaceName (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceName(ILayer pLayer, IName pName, boolean validate) throws IOException, AutomationException
replaceName
in interface IDataSourceHelperLayer
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findAndReplaceWorkspaceNamePath(ILayer pLayer, String oldWorkspaceName, String newWorkspaceName, boolean validate) throws IOException, AutomationException
findAndReplaceWorkspaceNamePath
in interface IDataSourceHelperLayer
pLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)oldWorkspaceName
- The oldWorkspaceName (in)newWorkspaceName
- The newWorkspaceName (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceName(IStandaloneTable pStandaloneTable, IName pName, boolean validate) throws IOException, AutomationException
replaceName
in interface IDataSourceHelperStandaloneTable
pStandaloneTable
- A reference to a com.esri.arcgis.carto.IStandaloneTable (in)pName
- A reference to a com.esri.arcgis.system.IName (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findAndReplaceWorkspaceNamePath(IStandaloneTable pStandaloneTable, String oldWorkspaceName, String newWorkspaceName, boolean validate) throws IOException, AutomationException
findAndReplaceWorkspaceNamePath
in interface IDataSourceHelperStandaloneTable
pStandaloneTable
- A reference to a com.esri.arcgis.carto.IStandaloneTable (in)oldWorkspaceName
- The oldWorkspaceName (in)newWorkspaceName
- The newWorkspaceName (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |