|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMSDHelper
Provides methods to open, save, repair mapserver definition files.
Method Summary | |
---|---|
void |
close()
Close the mapserver defintion file. |
String |
getDataset(String layerPath)
Given the layer's catalog path, returns the dataset name. |
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 |
getWorkspaceConnectionStringFromLayer(String layerPath)
Given the layer's catalog path, returns the workspace connection string. |
String |
getWorkspaceFactoryType(String layerPath)
Given the layer's catalog path, returns the workspace type. |
boolean |
isActiveMap(String mapPath)
Given the map's catalog path, returns a boolean inidicating if it is the active map. |
boolean |
isLayerValid(String layerPath)
Given the layer's catalog path, returns a boolean indicating if it is valid. |
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 |
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. |
Method Detail |
---|
void open(String path) throws IOException, AutomationException
path
- The path (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void close() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void save(boolean relativePath) throws IOException, AutomationException
relativePath
- The relativePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveAs(String path, boolean relativePath) throws IOException, AutomationException
path
- The path (in)relativePath
- The relativePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStringArray getMaps() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isActiveMap(String mapPath) throws IOException, AutomationException
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getMapDisplayName(String mapPath) throws IOException, AutomationException
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replaceAll(String mapPath, String oldWorkspaceConnectionString, String newWorkspaceConnectionString, boolean validate) throws IOException, AutomationException
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.IStringArray getLayers(String mapPath) throws IOException, AutomationException
mapPath
- The mapPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLayerValid(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getLayerType(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStringArray getSubLayers(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDataset(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWorkspaceFactoryType(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWorkspaceConnectionStringFromLayer(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void putWorkspaceConnectionStringInLayer(String layerPath, String workspaceConnectionString, boolean validate) throws IOException, AutomationException
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.String getLayerDisplayName(String layerPath) throws IOException, AutomationException
layerPath
- The layerPath (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 |