|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITopologyRuleContainer
Provides access to members that return and set topology rules.
The ITopologyRuleContainer interface provides access to members for adding, removing and returning topology rules from a topology. This interface also provides access to members that control the promotion and demotion of topology errors and exceptions.
ITopologyRule
Method Summary | |
---|---|
void |
addRule(ITopologyRule rule)
Adds a topology rule. |
void |
deleteRule(ITopologyRule rule)
Deletes a topology rule. |
void |
demoteFromRuleException(ITopologyErrorFeature errorException)
Demotes a topology error from an exception to an error. |
IRule |
getRule(int ruleID)
The topology rule with the corresponding ID. |
IRule |
getRuleByGUID(String gUID)
The rule with the globally unique ID. |
IEnumRule |
getRules()
An enumeration of all the topology rules. |
IEnumRule |
getRulesByClass(int classID)
An enumeration of all the rules for a given class. |
IEnumRule |
getRulesByClassAndSubtype(int classID,
int subType)
An enumeration of all the rules for a given class and subtype. |
boolean |
isCanAddRule(ITopologyRule rule)
Indicates if the topology rule can be added to the topology. |
void |
promoteToRuleException(ITopologyErrorFeature errorException)
Promotes a topology error to an exception. |
Method Detail |
---|
IRule getRule(int ruleID) throws IOException, AutomationException
ruleID
- The ruleID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumRule getRules() throws IOException, AutomationException
Returns an enumerator of the topology rules associated with the topology. The enumerator will contain all rules defined for the Topology, but will not contain the one rule that is inherent to each Topology, the esriTRTFeatureLargerThanClusterTolerance rule.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRule getRuleByGUID(String gUID) throws IOException, AutomationException
gUID
- The gUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumRule getRulesByClass(int classID) throws IOException, AutomationException
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumRule getRulesByClassAndSubtype(int classID, int subType) throws IOException, AutomationException
classID
- The classID (in)subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanAddRule(ITopologyRule rule) throws IOException, AutomationException
rule
- A reference to a com.esri.arcgis.geodatabase.ITopologyRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addRule(ITopologyRule rule) throws IOException, AutomationException
Adds the specified rule to the topology. Before adding the topology rule use CanAddRule to determine if the rule is inconsistent with any existing topology rules. Topology rules of the same type cannot be specified at the class level and subtype level for the same feature class.
Using AddRule on a topology which has already been validated, in whole or in part, will result in a dirty area created for the extent of the feature classes participating in the rule and a change to the state of the topology to esriTSUnanalyzed.
rule
- A reference to a com.esri.arcgis.geodatabase.ITopologyRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteRule(ITopologyRule rule) throws IOException, AutomationException
Removes the specified rule from the topology. DeleteRule will remove any associated topology errors and will not result in the creation of a dirty area, nor will the state of the topology change.
rule
- A reference to a com.esri.arcgis.geodatabase.ITopologyRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void promoteToRuleException(ITopologyErrorFeature errorException) throws IOException, AutomationException
The PromoteToRuleException method will promote the specified error to an exception feature. On a topology in an ArcSDE geodatabase, PromoteToRuleException, must be called from within an edit session and edit operation. Topology Exceptions arise when a topology rule is purposefully violated. Marking purposeful topology errors as exceptions allows other clients of the topology to handle them in an appropriate or specific manner, e.g., in reporting or symbolization.
Note that it is also possible to demote an exception or mark the exception as an error with the ITopologyRuleContainer::DemoteFromRuleException method.
errorException
- A reference to a com.esri.arcgis.geodatabase.ITopologyErrorFeature (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void demoteFromRuleException(ITopologyErrorFeature errorException) throws IOException, AutomationException
The DemoteFromRuleException method will demote an exception feature from an exception to an error. On a topology in an ArcSDE geodatabase, DemoteFromRuleException, must be called from within an edit session and edit operation. Topology Exceptions arise when a topology rule is purposefully violated. Marking purposeful topology errors as exceptions allows other clients of the topology to handle them in an appropriate or specific manner, e.g., in reporting or symbolization.
Note that it is also possible to promote an error or mark the error as an exception with the ITopologyRuleContainer::PromoteToRuleException method.
errorException
- A reference to a com.esri.arcgis.geodatabase.ITopologyErrorFeature (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 |