|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MSDHelper
public class MSDHelper
COM Class 'MSDHelper'. Generated 3/19/2015 1:20:42 PM from 'C:\ArcGIS\COM\esriCarto.olb'
Description 'Coclass implementing methods to open, save, repair mapserver definition files.' 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 |
---|
Fields inherited from interface com.esri.arcgis.carto.IMSDHelper2 |
---|
IID, IID2a400bb8_3083_4abe_9c5d_8fcfce1d2b2c, xxDummy |
Fields inherited from interface com.esri.arcgis.carto.IMSDHelper |
---|
IID4c0b3fb1_b9b0_4387_b047_1b9be19098c3 |
Constructor Summary | |
---|---|
MSDHelper()
Constructs a MSDHelper using ArcGIS Engine. |
|
MSDHelper(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MSDHelper theMSDHelper = (MSDHelper) obj; |
Method Summary | |
---|---|
void |
close()
Close the mapserver defintion file. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
static java.lang.String |
getClsid()
getClsid. |
java.lang.String |
getDataset(java.lang.String layerPath)
Given the layer's catalog path, returns the dataset name. |
java.lang.String |
getDatasetFromTable(java.lang.String mapPath,
int tableIndex)
getDatasetFromTable |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
java.lang.String |
getLayerDisplayName(java.lang.String layerPath)
Given the layer's catalog path, returns its TOC display name. |
IStringArray |
getLayers(java.lang.String mapPath)
Given the map's catalog path, returns the catalog path for all layers in the map. |
java.lang.String |
getLayerType(java.lang.String layerPath)
Given the layer's catalog path, returns the layer type. |
java.lang.String |
getMapDisplayName(java.lang.String mapPath)
Given the map's catalog path returns the map's TOC display name. |
IStringArray |
getMaps()
Method returns a String Array containing the catalog paths to all the maps in the msd. |
IStringArray |
getSubLayers(java.lang.String layerPath)
Given the layer's catalog path, returns the catalog path to its sub layers, if it has any. |
java.lang.String |
getTableDisplayName(java.lang.String mapPath,
int tableIndex)
getTableDisplayName |
int |
getTables(java.lang.String mapPath)
getTables |
java.lang.String |
getWorkspaceConnectionStringFromLayer(java.lang.String layerPath)
Given the layer's catalog path, returns the workspace connection string. |
java.lang.String |
getWorkspaceConnectionStringFromTable(java.lang.String mapPath,
int tableIndex)
getWorkspaceConnectionStringFromTable |
java.lang.String |
getWorkspaceFactoryType(java.lang.String layerPath)
Given the layer's catalog path, returns the workspace type. |
java.lang.String |
getWorkspaceFactoryTypeFromTable(java.lang.String mapPath,
int tableIndex)
getWorkspaceFactoryTypeFromTable |
int |
hashCode()
the hashcode for this object |
boolean |
isActiveMap(java.lang.String mapPath)
Given the map's catalog path, returns a boolean inidicating if it is the active map. |
boolean |
isDataLayer(java.lang.String layerPath)
isDataLayer |
boolean |
isLayerValid(java.lang.String layerPath)
Given the layer's catalog path, returns a boolean indicating if it is valid. |
boolean |
isTableValid(java.lang.String mapPath,
int tableIndex)
isTableValid |
void |
open(java.lang.String path)
Open the mapserver definition file. |
void |
putWorkspaceConnectionStringInLayer(java.lang.String layerPath,
java.lang.String workspaceConnectionString,
boolean validate)
Given the layer's catalog path, updates its workspace connection string. |
void |
putWorkspaceConnectionStringInTable(java.lang.String mapPath,
int tableIndex,
java.lang.String newWorkspaceConnection,
boolean validate)
putWorkspaceConnectionStringInTable |
boolean |
relativePaths()
relativePaths |
void |
release()
Release a MSDHelper. |
void |
replaceAll(java.lang.String mapPath,
java.lang.String oldWorkspaceConnectionString,
java.lang.String newWorkspaceConnectionString,
boolean validate)
Replaces the workspace connection string for all layers in the given map. |
void |
save(boolean relativePath)
Save the mapserver defintion file. |
void |
saveAs(java.lang.String path,
boolean relativePath)
Save a copy of the open mapserver definition file at the specified location with the specified name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MSDHelper() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problems
java.net.UnknownHostException
- if there are interop problemspublic MSDHelper(java.lang.Object obj) throws java.io.IOException
MSDHelper theMSDHelper = (MSDHelper) obj;
obj
to MSDHelper
.
obj
- an object returned from ArcGIS Engine or Server
java.io.IOException
- if there are interop problemsMethod Detail |
---|
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void open(java.lang.String path) throws java.io.IOException, AutomationException
open
in interface IMSDHelper
path
- The path (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void close() throws java.io.IOException, AutomationException
close
in interface IMSDHelper
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(boolean relativePath) throws java.io.IOException, AutomationException
save
in interface IMSDHelper
relativePath
- The relativePath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveAs(java.lang.String path, boolean relativePath) throws java.io.IOException, AutomationException
saveAs
in interface IMSDHelper
path
- The path (in)relativePath
- The relativePath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getMaps() throws java.io.IOException, AutomationException
getMaps
in interface IMSDHelper
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isActiveMap(java.lang.String mapPath) throws java.io.IOException, AutomationException
isActiveMap
in interface IMSDHelper
mapPath
- The mapPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getMapDisplayName(java.lang.String mapPath) throws java.io.IOException, AutomationException
getMapDisplayName
in interface IMSDHelper
mapPath
- The mapPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceAll(java.lang.String mapPath, java.lang.String oldWorkspaceConnectionString, java.lang.String newWorkspaceConnectionString, boolean validate) throws java.io.IOException, AutomationException
replaceAll
in interface IMSDHelper
mapPath
- The mapPath (in)oldWorkspaceConnectionString
- The oldWorkspaceConnectionString (in)newWorkspaceConnectionString
- The newWorkspaceConnectionString (in)validate
- The validate (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getLayers(java.lang.String mapPath) throws java.io.IOException, AutomationException
getLayers
in interface IMSDHelper
mapPath
- The mapPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLayerValid(java.lang.String layerPath) throws java.io.IOException, AutomationException
isLayerValid
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getLayerType(java.lang.String layerPath) throws java.io.IOException, AutomationException
getLayerType
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getSubLayers(java.lang.String layerPath) throws java.io.IOException, AutomationException
getSubLayers
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getDataset(java.lang.String layerPath) throws java.io.IOException, AutomationException
getDataset
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceFactoryType(java.lang.String layerPath) throws java.io.IOException, AutomationException
getWorkspaceFactoryType
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceConnectionStringFromLayer(java.lang.String layerPath) throws java.io.IOException, AutomationException
getWorkspaceConnectionStringFromLayer
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putWorkspaceConnectionStringInLayer(java.lang.String layerPath, java.lang.String workspaceConnectionString, boolean validate) throws java.io.IOException, AutomationException
putWorkspaceConnectionStringInLayer
in interface IMSDHelper
layerPath
- The layerPath (in)workspaceConnectionString
- The workspaceConnectionString (in)validate
- The validate (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getLayerDisplayName(java.lang.String layerPath) throws java.io.IOException, AutomationException
getLayerDisplayName
in interface IMSDHelper
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean relativePaths() throws java.io.IOException, AutomationException
relativePaths
in interface IMSDHelper2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDataLayer(java.lang.String layerPath) throws java.io.IOException, AutomationException
isDataLayer
in interface IMSDHelper2
layerPath
- The layerPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTables(java.lang.String mapPath) throws java.io.IOException, AutomationException
getTables
in interface IMSDHelper2
mapPath
- The mapPath (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTableValid(java.lang.String mapPath, int tableIndex) throws java.io.IOException, AutomationException
isTableValid
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getDatasetFromTable(java.lang.String mapPath, int tableIndex) throws java.io.IOException, AutomationException
getDatasetFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceFactoryTypeFromTable(java.lang.String mapPath, int tableIndex) throws java.io.IOException, AutomationException
getWorkspaceFactoryTypeFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceConnectionStringFromTable(java.lang.String mapPath, int tableIndex) throws java.io.IOException, AutomationException
getWorkspaceConnectionStringFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putWorkspaceConnectionStringInTable(java.lang.String mapPath, int tableIndex, java.lang.String newWorkspaceConnection, boolean validate) throws java.io.IOException, AutomationException
putWorkspaceConnectionStringInTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)newWorkspaceConnection
- The newWorkspaceConnection (in)validate
- The validate (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getTableDisplayName(java.lang.String mapPath, int tableIndex) throws java.io.IOException, AutomationException
getTableDisplayName
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
java.io.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 |