|
|||||||||
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
Coclass implementing methods to open, save, repair mapserver definition files.
Constructor Summary | |
---|---|
MSDHelper()
Constructs a MSDHelper using ArcGIS Engine. |
|
MSDHelper(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(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getDataset(String layerPath)
Given the layer's catalog path, returns the dataset name. |
String |
getDatasetFromTable(String mapPath,
int tableIndex)
getDatasetFromTable |
String |
getLayerDisplayName(String layerPath)
Given the layer's catalog path, returns its TOC display name. |
IStringArray |
getLayers(String mapPath)
Given the map's catalog path, returns the catalog path for all layers in the map. |
String |
getLayerType(String layerPath)
Given the layer's catalog path, returns the layer type. |
String |
getMapDisplayName(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(String layerPath)
Given the layer's catalog path, returns the catalog path to its sub layers, if it has any. |
String |
getTableDisplayName(String mapPath,
int tableIndex)
getTableDisplayName |
int |
getTables(String mapPath)
getTables |
String |
getWorkspaceConnectionStringFromLayer(String layerPath)
Given the layer's catalog path, returns the workspace connection string. |
String |
getWorkspaceConnectionStringFromTable(String mapPath,
int tableIndex)
getWorkspaceConnectionStringFromTable |
String |
getWorkspaceFactoryType(String layerPath)
Given the layer's catalog path, returns the workspace type. |
String |
getWorkspaceFactoryTypeFromTable(String mapPath,
int tableIndex)
getWorkspaceFactoryTypeFromTable |
int |
hashCode()
the hashcode for this object |
boolean |
isActiveMap(String mapPath)
Given the map's catalog path, returns a boolean inidicating if it is the active map. |
boolean |
isDataLayer(String layerPath)
isDataLayer |
boolean |
isLayerValid(String layerPath)
Given the layer's catalog path, returns a boolean indicating if it is valid. |
boolean |
isTableValid(String mapPath,
int tableIndex)
isTableValid |
void |
open(String path)
Open the mapserver definition file. |
void |
putWorkspaceConnectionStringInLayer(String layerPath,
String workspaceConnectionString,
boolean validate)
Given the layer's catalog path, updates its workspace connection string. |
void |
putWorkspaceConnectionStringInTable(String mapPath,
int tableIndex,
String newWorkspaceConnection,
boolean validate)
putWorkspaceConnectionStringInTable |
boolean |
relativePaths()
relativePaths |
void |
replaceAll(String mapPath,
String oldWorkspaceConnectionString,
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(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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public MSDHelper() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MSDHelper(Object obj) throws IOException
MSDHelper theMSDHelper = (MSDHelper) obj;
obj
to MSDHelper
.
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 open(String path) throws IOException, AutomationException
open
in interface IMSDHelper
path
- The path (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void close() throws IOException, AutomationException
close
in interface IMSDHelper
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(boolean relativePath) throws IOException, AutomationException
save
in interface IMSDHelper
relativePath
- The relativePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void saveAs(String path, boolean relativePath) throws IOException, AutomationException
saveAs
in interface IMSDHelper
path
- The path (in)relativePath
- The relativePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getMaps() throws IOException, AutomationException
getMaps
in interface IMSDHelper
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isActiveMap(String mapPath) throws IOException, AutomationException
isActiveMap
in interface IMSDHelper
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMapDisplayName(String mapPath) throws IOException, AutomationException
getMapDisplayName
in interface IMSDHelper
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void replaceAll(String mapPath, String oldWorkspaceConnectionString, String newWorkspaceConnectionString, boolean validate) throws IOException, AutomationException
replaceAll
in interface IMSDHelper
mapPath
- The mapPath (in)oldWorkspaceConnectionString
- The oldWorkspaceConnectionString (in)newWorkspaceConnectionString
- The newWorkspaceConnectionString (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getLayers(String mapPath) throws IOException, AutomationException
getLayers
in interface IMSDHelper
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLayerValid(String layerPath) throws IOException, AutomationException
isLayerValid
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLayerType(String layerPath) throws IOException, AutomationException
getLayerType
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getSubLayers(String layerPath) throws IOException, AutomationException
getSubLayers
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDataset(String layerPath) throws IOException, AutomationException
getDataset
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspaceFactoryType(String layerPath) throws IOException, AutomationException
getWorkspaceFactoryType
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspaceConnectionStringFromLayer(String layerPath) throws IOException, AutomationException
getWorkspaceConnectionStringFromLayer
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putWorkspaceConnectionStringInLayer(String layerPath, String workspaceConnectionString, boolean validate) throws IOException, AutomationException
putWorkspaceConnectionStringInLayer
in interface IMSDHelper
layerPath
- The layerPath (in)workspaceConnectionString
- The workspaceConnectionString (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getLayerDisplayName(String layerPath) throws IOException, AutomationException
getLayerDisplayName
in interface IMSDHelper
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean relativePaths() throws IOException, AutomationException
relativePaths
in interface IMSDHelper2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDataLayer(String layerPath) throws IOException, AutomationException
isDataLayer
in interface IMSDHelper2
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTables(String mapPath) throws IOException, AutomationException
getTables
in interface IMSDHelper2
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTableValid(String mapPath, int tableIndex) throws IOException, AutomationException
isTableValid
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDatasetFromTable(String mapPath, int tableIndex) throws IOException, AutomationException
getDatasetFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspaceFactoryTypeFromTable(String mapPath, int tableIndex) throws IOException, AutomationException
getWorkspaceFactoryTypeFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWorkspaceConnectionStringFromTable(String mapPath, int tableIndex) throws IOException, AutomationException
getWorkspaceConnectionStringFromTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void putWorkspaceConnectionStringInTable(String mapPath, int tableIndex, String newWorkspaceConnection, boolean validate) throws IOException, AutomationException
putWorkspaceConnectionStringInTable
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (in)newWorkspaceConnection
- The newWorkspaceConnection (in)validate
- The validate (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTableDisplayName(String mapPath, int tableIndex) throws IOException, AutomationException
getTableDisplayName
in interface IMSDHelper2
mapPath
- The mapPath (in)tableIndex
- The tableIndex (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 |