com.esri.arcgis.geodatabase
Interface IWorkspaceName

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IWorkspaceName2
All Known Implementing Classes:
IWorkspaceName2Proxy, IWorkspaceNameProxy, WorkspaceName

public interface IWorkspaceName
extends java.io.Serializable

Provides access to members that supply workspace name information.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

When To Use

Use IWorkspaceName when you are browsing for workspaces and do not want the overhead of instantiating Workspace objects.

Remarks

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.

See Also:
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

getPathName

public java.lang.String getPathName()
                             throws java.io.IOException,
                                    AutomationException
The path name of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Returns:
The pathName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setPathName

public void setPathName(java.lang.String pathName)
                 throws java.io.IOException,
                        AutomationException
The path name of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pathName - The pathName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWorkspaceFactoryProgID

public java.lang.String getWorkspaceFactoryProgID()
                                           throws java.io.IOException,
                                                  AutomationException
The ProgID of the WorkspaceName's workspace factory.

Supported Platforms

Windows, Solaris, Linux

Description

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:

Returns:
The progID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWorkspaceFactoryProgID

public void setWorkspaceFactoryProgID(java.lang.String progID)
                               throws java.io.IOException,
                                      AutomationException
The ProgID of the WorkspaceName's workspace factory.

Supported Platforms

Windows, Solaris, Linux

Description

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. 

 

Parameters:
progID - The progID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBrowseName

public java.lang.String getBrowseName()
                               throws java.io.IOException,
                                      AutomationException
The browse name of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Returns:
The browseName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBrowseName

public void setBrowseName(java.lang.String browseName)
                   throws java.io.IOException,
                          AutomationException
The browse name of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Parameters:
browseName - The browseName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWorkspaceFactory

public IWorkspaceFactory getWorkspaceFactory()
                                      throws java.io.IOException,
                                             AutomationException
The workspace factory of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspaceFactory
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setConnectionProperties

public void setConnectionProperties(IPropertySet connectionProperties)
                             throws java.io.IOException,
                                    AutomationException
The connection properties of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Parameters:
connectionProperties - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getConnectionProperties

public IPropertySet getConnectionProperties()
                                     throws java.io.IOException,
                                            AutomationException
The connection properties of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getType

public int getType()
            throws java.io.IOException,
                   AutomationException
The type of the associated workspace.

Supported Platforms

Windows, Solaris, Linux

Returns:
A com.esri.arcgis.geodatabase.esriWorkspaceType constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCategory

public java.lang.String getCategory()
                             throws java.io.IOException,
                                    AutomationException
The category of the WorkspaceName.

Supported Platforms

Windows, Solaris, Linux

Returns:
The category
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.