com.esri.arcgis.geodatabase
Class RepresentationWorkspaceExtension

java.lang.Object
  extended by com.esri.arcgis.geodatabase.RepresentationWorkspaceExtension
All Implemented Interfaces:
IDatasetContainer, IDatasetContainer2, IDatasetContainer3, IRepresentationWorkspaceExtension, IWorkspaceEvents, IWorkspaceExtension, IWorkspaceExtension2, IWorkspaceExtensionControl, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, java.io.Serializable, java.util.EventListener

public class RepresentationWorkspaceExtension
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IRepresentationWorkspaceExtension, IWorkspaceExtension, IWorkspaceExtension2, IDatasetContainer, IDatasetContainer2, IDatasetContainer3, IWorkspaceExtensionControl, IWorkspaceEvents, ISupportErrorInfo

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

Description 'Workspace extension to support representations in a geodatabase.' 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.IRepresentationWorkspaceExtension
IID, IID8b22787f_f0d2_4390_99d2_2d971861025b, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IWorkspaceExtension2
IID, IID727f1038_6df0_4972_b504_4a44cfea2b57, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IWorkspaceExtension
IIDda10c1c2_09a3_11d4_9faa_00c04f6bdf0c
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDatasetContainer3
IID, IID1b7498c6_f47b_4ac6_a716_835b702a9cac, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDatasetContainer2
IIDc826e861_dbfa_4b86_95fe_8352e287e284
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDatasetContainer
IIDbd770969_efb7_11d3_9fa2_00c04f6bdf0c
 
Fields inherited from interface com.esri.arcgis.geodatabase.IWorkspaceExtensionControl
IID, IIDda10c1c0_09a3_11d4_9faa_00c04f6bdf0c, xxDummy
 
Fields inherited from interface com.esri.arcgis.geodatabase.IWorkspaceEvents
IID, IIDda10c1c4_09a3_11d4_9faa_00c04f6bdf0c, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
 
Constructor Summary
RepresentationWorkspaceExtension()
          Constructs a RepresentationWorkspaceExtension using ArcGIS Engine.
RepresentationWorkspaceExtension(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RepresentationWorkspaceExtension theRepresentationWorkspaceExtension = (RepresentationWorkspaceExtension) obj;
 
Method Summary
 void addDataset(IDataset datasetToAdd)
          Adds a dataset to the dataset collection.
 IDataset createDataset(IDEDataset dataElement)
          Given a data element, create a dataset in this container.
 IRepresentationClass createRepresentationClass(IFeatureClass featureClass, java.lang.String name, java.lang.String ruleIDFldName, java.lang.String overrideFldName, boolean requireShapeOverride, IRepresentationRules rules, IGraphicAttributes classAttributes)
          Creates a representation class.
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 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.
 IEnumDatasetName getFeatureClassRepresentationNames(IFeatureClass featureClass)
          Representation class names associated to a given feature class.
 IUID getGUID()
          The GUID that identifies this Workspace Extension.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getName()
          The Name for this Workspace Extension.
 IEnumBSTR getPrivateDatasetNames(int dtype)
          The private datasets that should not be exposed to browsers.
 IEnumDatasetName getRepresentationClassNames()
          Representation class names defined in the workspace.
 IWorkspace getWorkspace()
          The workspace associated with this Workspace Extension.
 int hashCode()
          the hashcode for this object
 void init(IWorkspaceHelper workspaceHelper)
          Initializes the extension, passing in a reference to its workspace helper.
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 boolean isFeatureClassHasRepresentations(IFeatureClass featureClass)
          Indicates if the feature class has representations.
 void onCreateDataset(IWorkspaceEventsOnCreateDatasetEvent theEvent)
          This event is fired when a dataset is created.
 void onDeleteDataset(IWorkspaceEventsOnDeleteDatasetEvent theEvent)
          This event is fired when a dataset is deleted.
 void onRenameDataset(IWorkspaceEventsOnRenameDatasetEvent theEvent)
          This event is fired when a dataset is renamed.
 IRepresentationClass openRepresentationClass(java.lang.String name)
          Opens a representation class.
 boolean ownsDatasetType(int datasetType)
          Indicates if the workspace extension owns the dataset type.
 void release()
          Release a RepresentationWorkspaceExtension.
 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

RepresentationWorkspaceExtension

public RepresentationWorkspaceExtension()
                                 throws java.io.IOException,
                                        java.net.UnknownHostException
Constructs a RepresentationWorkspaceExtension using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

RepresentationWorkspaceExtension

public RepresentationWorkspaceExtension(java.lang.Object obj)
                                 throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RepresentationWorkspaceExtension theRepresentationWorkspaceExtension = (RepresentationWorkspaceExtension) obj;

Construct a RepresentationWorkspaceExtension using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RepresentationWorkspaceExtension.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


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 RepresentationWorkspaceExtension.

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

openRepresentationClass

public IRepresentationClass openRepresentationClass(java.lang.String name)
                                             throws java.io.IOException,
                                                    AutomationException
Opens a representation class.

Specified by:
openRepresentationClass in interface IRepresentationWorkspaceExtension
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRepresentationClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRepresentationClass

public IRepresentationClass createRepresentationClass(IFeatureClass featureClass,
                                                      java.lang.String name,
                                                      java.lang.String ruleIDFldName,
                                                      java.lang.String overrideFldName,
                                                      boolean requireShapeOverride,
                                                      IRepresentationRules rules,
                                                      IGraphicAttributes classAttributes)
                                               throws java.io.IOException,
                                                      AutomationException
Creates a representation class.

Specified by:
createRepresentationClass in interface IRepresentationWorkspaceExtension
Parameters:
featureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
name - The name (in)
ruleIDFldName - The ruleIDFldName (in)
overrideFldName - The overrideFldName (in)
requireShapeOverride - The requireShapeOverride (in)
rules - A reference to a com.esri.arcgis.geodatabase.IRepresentationRules (in)
classAttributes - A reference to a com.esri.arcgis.display.IGraphicAttributes (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRepresentationClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRepresentationClassNames

public IEnumDatasetName getRepresentationClassNames()
                                             throws java.io.IOException,
                                                    AutomationException
Representation class names defined in the workspace.

Specified by:
getRepresentationClassNames in interface IRepresentationWorkspaceExtension
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDatasetName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isFeatureClassHasRepresentations

public boolean isFeatureClassHasRepresentations(IFeatureClass featureClass)
                                         throws java.io.IOException,
                                                AutomationException
Indicates if the feature class has representations.

Specified by:
isFeatureClassHasRepresentations in interface IRepresentationWorkspaceExtension
Parameters:
featureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
Returns:
The hasRep
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeatureClassRepresentationNames

public IEnumDatasetName getFeatureClassRepresentationNames(IFeatureClass featureClass)
                                                    throws java.io.IOException,
                                                           AutomationException
Representation class names associated to a given feature class.

Specified by:
getFeatureClassRepresentationNames in interface IRepresentationWorkspaceExtension
Parameters:
featureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDatasetName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
The Name for this Workspace Extension.

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

getGUID

public IUID getGUID()
             throws java.io.IOException,
                    AutomationException
The GUID that identifies this Workspace Extension.

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

getPrivateDatasetNames

public IEnumBSTR getPrivateDatasetNames(int dtype)
                                 throws java.io.IOException,
                                        AutomationException
The private datasets that should not be exposed to browsers.

Specified by:
getPrivateDatasetNames in interface IWorkspaceExtension
Parameters:
dtype - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
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.

getDataDictionaryTableNames

public IEnumBSTR getDataDictionaryTableNames()
                                      throws java.io.IOException,
                                             AutomationException
Any data dictionary tables that should not be exposed to browsers and should not participate in edit sessions.

Specified by:
getDataDictionaryTableNames in interface IWorkspaceExtension
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.

ownsDatasetType

public boolean ownsDatasetType(int datasetType)
                        throws java.io.IOException,
                               AutomationException
Indicates if the workspace extension owns the dataset type.

Specified by:
ownsDatasetType in interface IWorkspaceExtension2
Parameters:
datasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
Returns:
The ownsType
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWorkspace

public IWorkspace getWorkspace()
                        throws java.io.IOException,
                               AutomationException
The workspace associated with this Workspace Extension.

Specified by:
getWorkspace in interface IWorkspaceExtension2
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspace
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addDataset

public void addDataset(IDataset datasetToAdd)
                throws java.io.IOException,
                       AutomationException
Adds a dataset to the dataset collection.

Specified by:
addDataset in interface IDatasetContainer
Parameters:
datasetToAdd - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDataset

public IDataset getDataset(int type,
                           int index)
                    throws java.io.IOException,
                           AutomationException
The dataset associated with the specified index value and dataset type.

Specified by:
getDataset in interface IDatasetContainer2
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasets

public IEnumDataset getDatasets(int type)
                         throws java.io.IOException,
                                AutomationException
An enumerator over the datasets of the specified type.

Specified by:
getDatasets in interface IDatasetContainer2
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasetCount

public int getDatasetCount(int type)
                    throws java.io.IOException,
                           AutomationException
The number of datasets of the specified type in this container.

Specified by:
getDatasetCount in interface IDatasetContainer2
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasetByName

public IDataset getDatasetByName(int type,
                                 java.lang.String name)
                          throws java.io.IOException,
                                 AutomationException
The dataset of the specified type with the specified name.

Specified by:
getDatasetByName in interface IDatasetContainer2
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasetNames

public IEnumDatasetName getDatasetNames(int type)
                                 throws java.io.IOException,
                                        AutomationException
The names of all the datasets with the specified type.

Specified by:
getDatasetNames in interface IDatasetContainer2
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDatasetName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasetTypes

public IEnumDatasetType getDatasetTypes()
                                 throws java.io.IOException,
                                        AutomationException
The names of all the datasets with the specified type.

Specified by:
getDatasetTypes in interface IDatasetContainer2
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDatasetType
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createDataset

public IDataset createDataset(IDEDataset dataElement)
                       throws java.io.IOException,
                              AutomationException
Given a data element, create a dataset in this container.

Specified by:
createDataset in interface IDatasetContainer2
Parameters:
dataElement - A reference to a com.esri.arcgis.geodatabase.IDEDataset (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDatasetByID

public IDataset getDatasetByID(int type,
                               int datasetID)
                        throws java.io.IOException,
                               AutomationException
The dataset associated with the specified index value and dataset type.

Specified by:
getDatasetByID in interface IDatasetContainer3
Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
datasetID - The datasetID (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

init

public void init(IWorkspaceHelper workspaceHelper)
          throws java.io.IOException,
                 AutomationException
Initializes the extension, passing in a reference to its workspace helper.

Specified by:
init in interface IWorkspaceExtensionControl
Parameters:
workspaceHelper - A reference to a com.esri.arcgis.geodatabase.IWorkspaceHelper (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

shutdown

public void shutdown()
              throws java.io.IOException,
                     AutomationException
Informs the extension that its workspace helper (and workspace) are going away.

Specified by:
shutdown in interface IWorkspaceExtensionControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onCreateDataset

public void onCreateDataset(IWorkspaceEventsOnCreateDatasetEvent theEvent)
                     throws java.io.IOException,
                            AutomationException
This event is fired when a dataset is created.

Specified by:
onCreateDataset in interface IWorkspaceEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onRenameDataset

public void onRenameDataset(IWorkspaceEventsOnRenameDatasetEvent theEvent)
                     throws java.io.IOException,
                            AutomationException
This event is fired when a dataset is renamed.

Specified by:
onRenameDataset in interface IWorkspaceEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onDeleteDataset

public void onDeleteDataset(IWorkspaceEventsOnDeleteDatasetEvent theEvent)
                     throws java.io.IOException,
                            AutomationException
This event is fired when a dataset is deleted.

Specified by:
onDeleteDataset in interface IWorkspaceEvents
Parameters:
theEvent - The event
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.