com.esri.arcgis.geodatabase
Class NetworkWorkspace

java.lang.Object
  extended by com.esri.arcgis.geodatabase.NetworkWorkspace
All Implemented Interfaces:
INetworkWorkspace, INetworkWorkspace2, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable

public class NetworkWorkspace
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, INetworkWorkspace, INetworkWorkspace2, ISupportErrorInfo

COM Class 'NetworkWorkspace'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'A container for creating and maintaining information about the logical networks in this workspace.' 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 =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.INetworkWorkspace2
IID, IID33978fff_118d_11d4_a0e7_00c04f6bdf0e, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.INetworkWorkspace
IID4700c2e0_2e11_11d1_b24e_0000f878229e
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
NetworkWorkspace(java.lang.Object obj)
          Construct a NetworkWorkspace using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 INetwork createNetwork(java.lang.String networkName, int networkType, boolean buildNormalizedTables)
          Creates a logical network.
 INetwork createNetworkEx(java.lang.String networkName, int networkType, boolean buildNormalizedTables, java.lang.String configKeyword, int formatNum)
          Creates a logical network based on the specified configuration keyword.
 boolean equals(java.lang.Object o)
          Compare this object with another
 int getFormatNumber(int index)
          The specified format number.
 int getFormatNumberCount()
          The count of valid format numbers.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 int getMaxStorableClassID(int formatNum)
          Returns the maximum storable feature class ID for the given format number.
 IEnumBSTR getNetworkNames()
          Returns an enumeration of the names of the logical networks within the current workspace.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 INetwork openNetwork(java.lang.String networkName, int networkType, int networkAccess)
          Opens a logical network.
 void release()
          Release a NetworkWorkspace.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkWorkspace

public NetworkWorkspace(java.lang.Object obj)
                 throws java.io.IOException
Construct a NetworkWorkspace using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to NetworkWorkspace.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
NetworkWorkspace o = (NetworkWorkspace)obj; // will not work

NetworkWorkspace o = new NetworkWorkspace(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
java.io.IOException - if there are interop problems NetworkWorkspace theNetworkWorkspace = (NetworkWorkspace) obj;
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a NetworkWorkspace.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

createNetwork

public INetwork createNetwork(java.lang.String networkName,
                              int networkType,
                              boolean buildNormalizedTables)
                       throws java.io.IOException,
                              AutomationException
Creates a logical network.

Specified by:
createNetwork in interface INetworkWorkspace
Parameters:
networkName - The networkName (in)
networkType - A com.esri.arcgis.geodatabase.esriNetworkType constant (in)
buildNormalizedTables - The buildNormalizedTables (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openNetwork

public INetwork openNetwork(java.lang.String networkName,
                            int networkType,
                            int networkAccess)
                     throws java.io.IOException,
                            AutomationException
Opens a logical network.

Specified by:
openNetwork in interface INetworkWorkspace
Parameters:
networkName - The networkName (in)
networkType - A com.esri.arcgis.geodatabase.esriNetworkType constant (in)
networkAccess - A com.esri.arcgis.geodatabase.esriNetworkAccess constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetworkNames

public IEnumBSTR getNetworkNames()
                          throws java.io.IOException,
                                 AutomationException
Returns an enumeration of the names of the logical networks within the current workspace.

Specified by:
getNetworkNames in interface INetworkWorkspace
Returns:
A reference to a com.esri.arcgis.system.IEnumBSTR
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormatNumberCount

public int getFormatNumberCount()
                         throws java.io.IOException,
                                AutomationException
The count of valid format numbers.

Specified by:
getFormatNumberCount in interface INetworkWorkspace2
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFormatNumber

public int getFormatNumber(int index)
                    throws java.io.IOException,
                           AutomationException
The specified format number.

Specified by:
getFormatNumber in interface INetworkWorkspace2
Parameters:
index - The index (in)
Returns:
The formatNum
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaxStorableClassID

public int getMaxStorableClassID(int formatNum)
                          throws java.io.IOException,
                                 AutomationException
Returns the maximum storable feature class ID for the given format number.

Specified by:
getMaxStorableClassID in interface INetworkWorkspace2
Parameters:
formatNum - The formatNum (in)
Returns:
The maxClassID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createNetworkEx

public INetwork createNetworkEx(java.lang.String networkName,
                                int networkType,
                                boolean buildNormalizedTables,
                                java.lang.String configKeyword,
                                int formatNum)
                         throws java.io.IOException,
                                AutomationException
Creates a logical network based on the specified configuration keyword.

Specified by:
createNetworkEx in interface INetworkWorkspace2
Parameters:
networkName - The networkName (in)
networkType - A com.esri.arcgis.geodatabase.esriNetworkType constant (in)
buildNormalizedTables - The buildNormalizedTables (in)
configKeyword - The configKeyword (in)
formatNum - The formatNum (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.