public class ShapefileWorkspaceFactory extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IWorkspaceFactory, IWorkspaceFactory2
Description 'Esri Shapefile Workspace Factory.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IIDd29cd15f_3014_11d4_8141_00c04f686238, xxDummy
IIDf173fc16_d63a_11d1_aa81_00c04fa33a15
Constructor and Description |
---|
ShapefileWorkspaceFactory()
Constructs a ShapefileWorkspaceFactory using ArcGIS Engine.
|
ShapefileWorkspaceFactory(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
ShapefileWorkspaceFactory theShapefileWorkspaceFactory = (ShapefileWorkspaceFactory) obj; |
Modifier and Type | Method and Description |
---|---|
boolean |
containsWorkspace(java.lang.String parentDirectory,
IFileNames fileNames)
Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace.
|
boolean |
copy(IWorkspaceName workspaceName,
java.lang.String destinationFolder,
IWorkspaceName[] workspaceNameCopy)
Copies a workspace to the specified destination folder.
|
IWorkspaceName |
create(java.lang.String parentDirectory,
java.lang.String name,
IPropertySet connectionProperties,
int hWnd)
Creates a new workspace specified by the directory, file name, and connection properties.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IUID |
getClassID()
The class ID of the WorkspaceFactory.
|
static java.lang.String |
getClsid()
getClsid.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
java.lang.String |
getWorkspaceDescription(boolean plural)
A singular or plural description of the type of workspace the workspace factory opens/creates.
|
IWorkspaceName |
getWorkspaceName(java.lang.String parentDirectory,
IFileNames fileNames)
Retrieves the workspace name of a workspace from the given list of file names.
|
int |
getWorkspaceType()
The type of workspace the workspace factory opens/creates.
|
int |
hashCode()
the hashcode for this object
|
boolean |
isWorkspace(java.lang.String fileName)
True if the specified file identifies a workspace supported by the workspace factory.
|
boolean |
move(IWorkspaceName workspaceName,
java.lang.String destinationFolder)
Moves a workspace to the specified destination folder.
|
IWorkspace |
open(IPropertySet connectionProperties,
int hWnd)
Opens the workspace specified by the connection properties.
|
IWorkspace |
openFromFile(java.lang.String fileName,
int hWnd)
Opens the workspace specified by the given file name.
|
IWorkspace |
openFromString(java.lang.String connectStr,
int hWnd)
Opens the workspace specified by a connection string.
|
IPropertySet |
readConnectionPropertiesFromFile(java.lang.String fileName)
The connection properties from the specified file.
|
void |
release()
Release this COM object reference
|
public ShapefileWorkspaceFactory() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic ShapefileWorkspaceFactory(java.lang.Object obj) throws java.io.IOException
ShapefileWorkspaceFactory theShapefileWorkspaceFactory = (ShapefileWorkspaceFactory) obj;
obj
to ShapefileWorkspaceFactory
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public IWorkspace open(IPropertySet connectionProperties, int hWnd) throws java.io.IOException, AutomationException
open
in interface IWorkspaceFactory
connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openFromFile(java.lang.String fileName, int hWnd) throws java.io.IOException, AutomationException
openFromFile
in interface IWorkspaceFactory
fileName
- The fileName (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName create(java.lang.String parentDirectory, java.lang.String name, IPropertySet connectionProperties, int hWnd) throws java.io.IOException, AutomationException
create
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)name
- The name (in)connectionProperties
- A reference to a com.esri.arcgis.system.IPropertySet (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean containsWorkspace(java.lang.String parentDirectory, IFileNames fileNames) throws java.io.IOException, AutomationException
containsWorkspace
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)fileNames
- A reference to a com.esri.arcgis.system.IFileNames (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspaceName getWorkspaceName(java.lang.String parentDirectory, IFileNames fileNames) throws java.io.IOException, AutomationException
getWorkspaceName
in interface IWorkspaceFactory
parentDirectory
- The parentDirectory (in)fileNames
- A reference to a com.esri.arcgis.system.IFileNames (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IUID getClassID() throws java.io.IOException, AutomationException
getClassID
in interface IWorkspaceFactory
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isWorkspace(java.lang.String fileName) throws java.io.IOException, AutomationException
isWorkspace
in interface IWorkspaceFactory
fileName
- The fileName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IPropertySet readConnectionPropertiesFromFile(java.lang.String fileName) throws java.io.IOException, AutomationException
readConnectionPropertiesFromFile
in interface IWorkspaceFactory
fileName
- The fileName (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public java.lang.String getWorkspaceDescription(boolean plural) throws java.io.IOException, AutomationException
getWorkspaceDescription
in interface IWorkspaceFactory
plural
- The plural (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getWorkspaceType() throws java.io.IOException, AutomationException
getWorkspaceType
in interface IWorkspaceFactory
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean copy(IWorkspaceName workspaceName, java.lang.String destinationFolder, IWorkspaceName[] workspaceNameCopy) throws java.io.IOException, AutomationException
copy
in interface IWorkspaceFactory
workspaceName
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder
- The destinationFolder (in)workspaceNameCopy
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean move(IWorkspaceName workspaceName, java.lang.String destinationFolder) throws java.io.IOException, AutomationException
move
in interface IWorkspaceFactory
workspaceName
- A reference to a com.esri.arcgis.geodatabase.IWorkspaceName (in)destinationFolder
- The destinationFolder (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IWorkspace openFromString(java.lang.String connectStr, int hWnd) throws java.io.IOException, AutomationException
openFromString
in interface IWorkspaceFactory2
connectStr
- The connectStr (in)hWnd
- The hWnd (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.