|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.NetworkDatasetWorkspaceExtension
A container for describing this network dataset's workspace extension properties.
The NetworkDatasetWorkspaceExtension object contains members that facilitate the creation and browsing of network datasets inside of a shapefile or SDC workspace. The IDatasetContainer2 interface contains the CreateDataset method which should be used to create network datasets with a populated data element.
| Constructor Summary | |
NetworkDatasetWorkspaceExtension(java.lang.Object obj)
Construct a NetworkDatasetWorkspaceExtension using a reference to such an object returned from ArcGIS Engine or Server. |
|
| Method Summary | |
void |
addDataset(IDataset pDatasetToAdd)
Adds a dataset to the dataset collection. |
IDataset |
createDataset(IDEDataset dataElement)
Given a data element, create a dataset in this container. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
IDatasetContainer3 |
getAsIDatasetContainer3()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IDatasetEdit |
getAsIDatasetEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IWorkspaceExtension2 |
getAsIWorkspaceExtension2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IWorkspaceExtensionControl |
getAsIWorkspaceExtensionControl()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
IEnumBSTR |
getDataDictionaryTableNames()
Any data dictionary tables that should not be exposed to browsers and should not participate in edit sessions. |
IDataset |
getDataset(int type,
int index)
The dataset associated with the specified index value and dataset type. |
IDataset |
getDatasetByID(int type,
int datasetID)
The dataset associated with the specified index value and dataset type. |
IDataset |
getDatasetByName(int type,
java.lang.String name)
The dataset of the specified type with the specified name. |
int |
getDatasetCount(int type)
The number of datasets of the specified type in this container. |
IEnumDatasetName |
getDatasetNames(int type)
The names of all the datasets with the specified type. |
IEnumDataset |
getDatasets(int type)
An enumerator over the datasets of the specified type. |
IEnumDatasetType |
getDatasetTypes()
The names of all the datasets with the specified type. |
IUID |
getGUID()
The GUID that identifies this Workspace Extension. |
java.lang.String |
getName()
The Name for this Workspace Extension. |
IEnumBSTR |
getPrivateDatasetNames(int dtype)
The private datasets that should not be exposed to browsers. |
IWorkspace |
getWorkspace()
The workspace associated with this Workspace Extension. |
int |
hashCode()
the hashcode for this object |
void |
init(IWorkspaceHelper pWorkspaceHelper)
Initializes the extension, passing in a reference to its workspace helper. |
boolean |
isBeingEdited()
True if the dataset is being edited. |
boolean |
ownsDatasetType(int datasetType)
Indicates if the workspace extension owns the dataset type. |
void |
shutdown()
Informs the extension that its workspace helper (and workspace) are going away. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkDatasetWorkspaceExtension(java.lang.Object obj)
throws java.io.IOException
obj to NetworkDatasetWorkspaceExtension. *
NetworkDatasetWorkspaceExtension o = (NetworkDatasetWorkspaceExtension)obj; // will not work
NetworkDatasetWorkspaceExtension o = new NetworkDatasetWorkspaceExtension(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
NetworkDatasetWorkspaceExtension theNetworkDatasetWorkspaceExtension = (NetworkDatasetWorkspaceExtension) obj;
java.io.IOException - if there are interop problems| Method Detail |
public IWorkspaceExtension2 getAsIWorkspaceExtension2()
public IWorkspaceExtensionControl getAsIWorkspaceExtensionControl()
public IDatasetContainer3 getAsIDatasetContainer3()
public IDatasetEdit getAsIDatasetEdit()
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean ownsDatasetType(int datasetType)
throws java.io.IOException,
AutomationException
IWorkspaceExtension2The OwnDatasetType method returns a boolean indicating whether the workspace extension supports the specified dataset type. For ArcGIS 9.1, OwnDatasetType will only return True for Network Datasets (esriDTNetworkDataset).
ownsDatasetType in interface IWorkspaceExtension2datasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getWorkspace()
throws java.io.IOException,
AutomationException
IWorkspaceExtension2The Workspace property returns a reference to the workspace associated with the extension.
getWorkspace in interface IWorkspaceExtension2AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getName()
throws java.io.IOException,
AutomationException
IWorkspaceExtensionThe Name property is the name of the extension.
getName in interface IWorkspaceExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IUID getGUID()
throws java.io.IOException,
AutomationException
IWorkspaceExtensionThe GUID property returns the well-known GUID for the extension and is guaranteed to be unique. For example, the GUID for Shapefile and SDC network dataset based workspace extensions is: {4C1B151C-48C3-46C5-AB57-E6B941A1D00A}.
getGUID in interface IWorkspaceExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumBSTR getPrivateDatasetNames(int dtype)
throws java.io.IOException,
AutomationException
IWorkspaceExtensionThe PrivateDatasetNames and DataDictionaryNames properties return the names of tables and datasets that are private to the extension and will not be exposed by the workspace to browsing clients. Since they return an EnumBSTR object that is not cocreatable, you must create your own object that implements IEnumBSTR.
getPrivateDatasetNames in interface IWorkspaceExtensiondtype - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getDataDictionaryTableNames()
throws java.io.IOException,
AutomationException
IWorkspaceExtensionThe PrivateDatasetNames and DataDictionaryNames properties return the names of tables and datasets that are private to the extension and will not be exposed by the workspace to browsing clients. Since they return an EnumBSTR object that is not cocreatable, you must create your own object that implements IEnumBSTR.
getDataDictionaryTableNames in interface IWorkspaceExtensionAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void init(IWorkspaceHelper pWorkspaceHelper)
throws java.io.IOException,
AutomationException
IWorkspaceExtensionControl
init in interface IWorkspaceExtensionControlpWorkspaceHelper - A reference to a com.esri.arcgis.geodatabase.IWorkspaceHelper (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void shutdown()
throws java.io.IOException,
AutomationException
IWorkspaceExtensionControlThe Shutdown method informs the workspace extension that the workspace has been released by all clients and is about to go away. In response, the workspace extension should release its reference on the workspace helper. Any subsequent calls by the application to the workspace extension should return an error.
shutdown in interface IWorkspaceExtensionControljava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDatasetByID(int type,
int datasetID)
throws java.io.IOException,
AutomationException
IDatasetContainer3
getDatasetByID in interface IDatasetContainer3type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)datasetID - The datasetID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDataset(int type,
int index)
throws java.io.IOException,
AutomationException
IDatasetContainer2The Dataset property returns the dataset of the specified index value and dataset type. The Dataset property only supports Network Datasets and will only return a reference to a network dataset when the esriDTNetworkDataset and esriDTAny enumeration values are supplied.
getDataset in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)index - The index (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDataset getDatasets(int type)
throws java.io.IOException,
AutomationException
IDatasetContainer2The Datasets property returns an enumerator over the datasets of the specified type. The Datasets property only supports Network Datasets and will only return an enumeration of network datasets when the esriDTNetworkDataset and esriDTAny enumeration values are supplied.
getDatasets in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDatasetCount(int type)
throws java.io.IOException,
AutomationException
IDatasetContainer2The DatasetCount property returns the number of datasets of the specified type in this container. The DatasetCount property only supports Network Datasets and will only return a count of network datasets when the esriDTNetworkDataset and esriDTAny enumeration values are supplied.
getDatasetCount in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IDataset getDatasetByName(int type,
java.lang.String name)
throws java.io.IOException,
AutomationException
IDatasetContainer2The DatasetByName property returns the dataset of the specified type with the specified name. The DatasetByName property only supports Network Datasets and will only return a reference to the network datasets when the esriDTNetworkDataset and esriDTAny enumeration values are supplied.
getDatasetByName in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)name - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumDatasetName getDatasetNames(int type)
throws java.io.IOException,
AutomationException
IDatasetContainer2The DatasetNames property returns an enumerator of IDatasetNames over the datasets of the specified type. The DatasetNames property only supports Network Datasets and will only return an enumerator of network datasets when the esriDTNetworkDataset and esriDTAny enumeration values are supplied.
getDatasetNames in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetType getDatasetTypes()
throws java.io.IOException,
AutomationException
IDatasetContainer2The DatasetTypes property returns an enumerator of IEnumDatasetType containing the supported esriDatasetTypes for the container. Use this method to determine the supported datasets for the container. At 9.1, only datasets of type esriDTNetworkDataset are supported.
getDatasetTypes in interface IDatasetContainer2java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset createDataset(IDEDataset dataElement)
throws java.io.IOException,
AutomationException
IDatasetContainer2The CreateDataset method will create a dataset given a populated data element. Use the DatasetTypes property to determine the supported dataset types.
createDataset in interface IDatasetContainer2dataElement - A reference to a com.esri.arcgis.geodatabase.IDEDataset (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addDataset(IDataset pDatasetToAdd)
throws java.io.IOException,
AutomationException
IDatasetContainer
addDataset in interface IDatasetContainerpDatasetToAdd - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isBeingEdited()
throws java.io.IOException,
AutomationException
IDatasetEdit
isBeingEdited in interface IDatasetEditjava.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 | |||||||||