|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRepresentationWorkspaceExtension
Provides access to members that supply representation workspace extension information.
Use IRepresentationWorkspaceExtension interface to create and manage feature class representations.
The GUID value for representation workspace extension is: {FD05270A-8E0B-4823-9DEE-F149347C32B6}
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.
Use IRepresentationWorkspaceExtension when you need to create a new feature class representation, connect and edit an existing feature class representation, or find information about a feature class representation present in a workspace.
Method Summary | |
---|---|
IRepresentationClass |
createRepresentationClass(IFeatureClass featureClass,
String name,
String ruleIDFldName,
String overrideFldName,
boolean requireShapeOverride,
IRepresentationRules rules,
IGraphicAttributes classAttributes)
Creates a representation class. |
IEnumDatasetName |
getFeatureClassRepresentationNames(IFeatureClass featureClass)
Representation class names associated to a given feature class. |
IEnumDatasetName |
getRepresentationClassNames()
Representation class names defined in the workspace. |
boolean |
isFeatureClassHasRepresentations(IFeatureClass featureClass)
Indicates if the feature class has representations. |
IRepresentationClass |
openRepresentationClass(String name)
Opens a representation class. |
Method Detail |
---|
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.
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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).
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isFeatureClassHasRepresentations(IFeatureClass featureClass) throws IOException, AutomationException
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumDatasetName getFeatureClassRepresentationNames(IFeatureClass featureClass) throws IOException, AutomationException
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (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 |