|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWorkspaceName
Provides access to members that supply workspace name information.
The IWorkspaceName interface lets you access the properties of a workspace name. To work with a workspace name, you must first set the WorkspaceFactoryProgID property and either the PathName or ConnectionProperties property.
The workspace name can refer to an existing workspace, or one that has yet to be created. If the workspace already exists, it can be opened with IName::Open--effectively this procedure is equivalent to opening a workspace using Open or OpenFromFile on IWorkspaceFactory. If the workspace does not exist and is to be created, use IWorkspaceFactory::Create.
In some circumstances, you may already have a full workspace object but require a workspace name instead. You can retrieve the workspace name from a workspace by calling calling IDataset::FullName on the workspace.
The Type, Category, WorkspaceFactoryProgID, and BrowseName properties all return information on the workspace; refer to the documentation on IWorkspace.
IGPDataType.getFullName()
Method Summary | |
---|---|
String |
getBrowseName()
The browse name of the WorkspaceName. |
String |
getCategory()
The category of the WorkspaceName. |
IPropertySet |
getConnectionProperties()
The connection properties of the WorkspaceName. |
String |
getPathName()
The path name of the WorkspaceName. |
int |
getType()
The type of the associated workspace. |
IWorkspaceFactory |
getWorkspaceFactory()
The workspace factory of the WorkspaceName. |
String |
getWorkspaceFactoryProgID()
The ProgID of the WorkspaceName's workspace factory. |
void |
setBrowseName(String browseName)
The browse name of the WorkspaceName. |
void |
setConnectionProperties(IPropertySet connectionProperties)
The connection properties of the WorkspaceName. |
void |
setPathName(String pathName)
The path name of the WorkspaceName. |
void |
setWorkspaceFactoryProgID(String progID)
The ProgID of the WorkspaceName's workspace factory. |
Method Detail |
---|
String getPathName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPathName(String pathName) throws IOException, AutomationException
pathName
- The pathName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getWorkspaceFactoryProgID() throws IOException, AutomationException
The WorkspaceFactoryProgID identifies the ProgID of the WorkspaceFactory object that is used to open that particular workspace.
Here is a list of some of the possible WorkspaceFactoryProgIDs:
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setWorkspaceFactoryProgID(String progID) throws IOException, AutomationException
The WorkspaceFactoryProgID identifies the ProgID of the COM WorkspaceFactory object used to open a workspace through a WorkspaceName object. You must set this property when you are using the WorkspaceName to open a workspace.
Here is a list of some of the possible WorkspaceFactoryProgIDs:
To set the WorkspaceName's WorkspaceFactoryProgID, pass it the string representing the correct type of workspace factory.
progID
- The progID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getBrowseName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setBrowseName(String browseName) throws IOException, AutomationException
browseName
- The browseName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IWorkspaceFactory getWorkspaceFactory() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setConnectionProperties(IPropertySet connectionProperties) throws IOException, AutomationException
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPropertySet getConnectionProperties() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getType() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCategory() throws IOException, AutomationException
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 |