|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
IName,
IWorkspaceName| Method Summary | |
java.lang.String |
getBrowseName()
The browse name of the WorkspaceName. |
java.lang.String |
getCategory()
The category of the WorkspaceName. |
IPropertySet |
getConnectionProperties()
The connection properties of the WorkspaceName. |
java.lang.String |
getPathName()
The path name of the WorkspaceName. |
int |
getType()
The type of the associated workspace. |
IWorkspaceFactory |
getWorkspaceFactory()
The workspace factory of the WorkspaceName. |
java.lang.String |
getWorkspaceFactoryProgID()
The ProgID of the WorkspaceName's workspace factory. |
void |
setBrowseName(java.lang.String browseName)
The browse name of the WorkspaceName. |
void |
setConnectionProperties(IPropertySet connectionProperties)
The connection properties of the WorkspaceName. |
void |
setPathName(java.lang.String pathName)
The path name of the WorkspaceName. |
void |
setWorkspaceFactoryProgID(java.lang.String progID)
The ProgID of the WorkspaceName's workspace factory. |
| Method Detail |
public java.lang.String getPathName()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPathName(java.lang.String pathName)
throws java.io.IOException,
AutomationException
pathName - The pathName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getWorkspaceFactoryProgID()
throws java.io.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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWorkspaceFactoryProgID(java.lang.String progID)
throws java.io.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, simply pass it the string representing the correct type of workspace factory.
progID - The progID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getBrowseName()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBrowseName(java.lang.String browseName)
throws java.io.IOException,
AutomationException
browseName - The browseName (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspaceFactory getWorkspaceFactory()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionProperties(IPropertySet connectionProperties)
throws java.io.IOException,
AutomationException
connectionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getConnectionProperties()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getType()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getCategory()
throws java.io.IOException,
AutomationException
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 | |||||||||