|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.RepresentationWorkspaceExtension
public class RepresentationWorkspaceExtension
Workspace extension to support representations in a geodatabase.
RepresentationWorkspaceExtension is a workspace extension useful for creating and managing feature class representations. RepresentationClass is a feature class enabled with representation capability using RepresentationRules and Overrides stored within the geodatabase. Use IRepresentationWorkspace.CreateRepresentationClass method to add representation information to a feature class.
IRepresentationWorspaceExtension is the inteface that has methods and properties listed for representation classes present in a workspace.
New RepresentationRules object which is a collection of representation rules based on which features are rendered, has to be created or a reference to rules of an existing representation class has to be made prior to the convertion of a regular feature class into a representation class.
| Constructor Summary | |
|---|---|
RepresentationWorkspaceExtension()
Constructs a RepresentationWorkspaceExtension using ArcGIS Engine. |
|
RepresentationWorkspaceExtension(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,
String name,
String ruleIDFldName,
String overrideFldName,
boolean requireShapeOverride,
IRepresentationRules rules,
IGraphicAttributes classAttributes)
Creates a representation class. |
boolean |
equals(Object o)
Compare this object with another |
static 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,
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. |
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 pWorkspaceHelper)
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(String name)
Opens a representation class. |
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 |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public RepresentationWorkspaceExtension()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public RepresentationWorkspaceExtension(Object obj)
throws IOException
RepresentationWorkspaceExtension theRepresentationWorkspaceExtension = (RepresentationWorkspaceExtension) obj;
obj to RepresentationWorkspaceExtension.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public IRepresentationClass openRepresentationClass(String name)
throws IOException,
AutomationException
OpenRepresentationClass method can be used to open any existing feature class representation within a workspace given its name as a string. Use this method in conjuction with RepresentationClassNames property to open all representation classes defined within the workspace or with FeatureClassRepresentationNames property to get access to all representation classes corresponding to a single feature class within the workspace.
It is not necessary to provide fully qualified names as string arguments for opening SDE feature class representations.
openRepresentationClass in interface IRepresentationWorkspaceExtensionname - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IRepresentationClass createRepresentationClass(IFeatureClass featureClass,
String name,
String ruleIDFldName,
String overrideFldName,
boolean requireShapeOverride,
IRepresentationRules rules,
IGraphicAttributes classAttributes)
throws IOException,
AutomationException
CreateRepresentationClass method is used to create a new feature class representation . The feature class parameter is set to a valid feature class for which the representation class will be created. Creating a new feature class representation will result in addition of two new fields for storing the RepresentationRuleID IRepresentationClassName.RuleIDFldName and Overrides IRepresentationClassName.OverrideFldName in the feature class table.
A new RepresentationRules object has to be created or a reference to representation rules of an existing representation class has to be made prior to creating a new representation class. Use IRepresentationRules interface to create new rules object from scratch or use IRepresentationClass.RepresentationRules to get reference to an existing rules object.
Feature class representation names are unique within a single workspace. For enterprise databases, make sure that the fully qualified name is unique within the workspace. Thus, two different owners can create different representation classes with same name.
If a representation class exists in the same geodatabase with the given name, then CreateRepresentationClass will return an esriRepresentationError (REP_E_REP_CLASS_NAME_ALREADY_EXISTS).
createRepresentationClass in interface IRepresentationWorkspaceExtensionfeatureClass - 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetName getRepresentationClassNames()
throws IOException,
AutomationException
RepresentationClassNames returns an enumerator over all feature class representation names present within a workspace extension. For enterprise geodatabases, this property will return all representation classes belonging to all users including the ones that are not owned by the database user.
Feature class representation names are unique within a single workspace and no two feature classes will have two different representation classes with the same name (fully qualified names for ArcSDE databases). While creating a new feature class representation, make sure that the fully qualified name parameter is unique within the workspace. This means that for an enterprise geodatabase, the fully qualified names of representations are unique for every database owner and same representation name can exist for separate owners.
getRepresentationClassNames in interface IRepresentationWorkspaceExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFeatureClassHasRepresentations(IFeatureClass featureClass)
throws IOException,
AutomationException
isFeatureClassHasRepresentations in interface IRepresentationWorkspaceExtensionfeatureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetName getFeatureClassRepresentationNames(IFeatureClass featureClass)
throws IOException,
AutomationException
getFeatureClassRepresentationNames in interface IRepresentationWorkspaceExtensionfeatureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
The Name property is the name of the extension.
getName in interface IWorkspaceExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IUID getGUID()
throws IOException,
AutomationException
The GUID property returns the well-known GUID for the extension and is guaranteed to be unique.
getGUID in interface IWorkspaceExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getPrivateDatasetNames(int dtype)
throws IOException,
AutomationException
getPrivateDatasetNames in interface IWorkspaceExtensiondtype - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getDataDictionaryTableNames()
throws IOException,
AutomationException
The 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 IWorkspaceExtensionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean ownsDatasetType(int datasetType)
throws IOException,
AutomationException
The OwnDatasetType method returns a boolean indicating whether the workspace extension supports the specified dataset type.
ownsDatasetType in interface IWorkspaceExtension2datasetType - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getWorkspace()
throws IOException,
AutomationException
The Workspace property returns a reference to the workspace associated with the extension.
getWorkspace in interface IWorkspaceExtension2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addDataset(IDataset datasetToAdd)
throws IOException,
AutomationException
When calling this method on feature datasets, both the XY and Z spatial reference systems of the dataset (if applicable) must match those of the feature dataset.
addDataset in interface IDatasetContainerdatasetToAdd - A reference to a com.esri.arcgis.geodatabase.IDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDataset(int type,
int index)
throws IOException,
AutomationException
getDataset in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDataset getDatasets(int type)
throws IOException,
AutomationException
getDatasets in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDatasetCount(int type)
throws IOException,
AutomationException
getDatasetCount in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDatasetByName(int type,
String name)
throws IOException,
AutomationException
getDatasetByName in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetName getDatasetNames(int type)
throws IOException,
AutomationException
getDatasetNames in interface IDatasetContainer2type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumDatasetType getDatasetTypes()
throws IOException,
AutomationException
The 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.
getDatasetTypes in interface IDatasetContainer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset createDataset(IDEDataset dataElement)
throws IOException,
AutomationException
The 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)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataset getDatasetByID(int type,
int datasetID)
throws IOException,
AutomationException
getDatasetByID in interface IDatasetContainer3type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)datasetID - The datasetID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void init(IWorkspaceHelper pWorkspaceHelper)
throws IOException,
AutomationException
init in interface IWorkspaceExtensionControlpWorkspaceHelper - A reference to a com.esri.arcgis.geodatabase.IWorkspaceHelper (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void shutdown()
throws IOException,
AutomationException
The 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 IWorkspaceExtensionControlIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onCreateDataset(IWorkspaceEventsOnCreateDatasetEvent theEvent)
throws IOException,
AutomationException
The OnCreateDataset method is fired after a dataset has been created.
onCreateDataset in interface IWorkspaceEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onRenameDataset(IWorkspaceEventsOnRenameDatasetEvent theEvent)
throws IOException,
AutomationException
The OnRenameDataset method is fired after a dataset has been renamed.
onRenameDataset in interface IWorkspaceEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void onDeleteDataset(IWorkspaceEventsOnDeleteDatasetEvent theEvent)
throws IOException,
AutomationException
The OnDeleteDataset method is fired after a dataset has been created.
onDeleteDataset in interface IWorkspaceEventstheEvent - The event
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 | ||||||||