|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.ITopologyRuleContainerProxy
public class ITopologyRuleContainerProxy
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
,
Serialized FormField Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
ITopologyRuleContainerProxy()
|
|
ITopologyRuleContainerProxy(Object obj)
|
protected |
ITopologyRuleContainerProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public ITopologyRuleContainerProxy()
public ITopologyRuleContainerProxy(Object obj) throws IOException
IOException
protected ITopologyRuleContainerProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public IRule getRule(int ruleID) throws IOException, AutomationException
getRule
in interface ITopologyRuleContainer
ruleID
- The ruleID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getRules
in interface ITopologyRuleContainer
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IRule getRuleByGUID(String gUID) throws IOException, AutomationException
getRuleByGUID
in interface ITopologyRuleContainer
gUID
- The gUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRule getRulesByClass(int classID) throws IOException, AutomationException
getRulesByClass
in interface ITopologyRuleContainer
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRule getRulesByClassAndSubtype(int classID, int subType) throws IOException, AutomationException
getRulesByClassAndSubtype
in interface ITopologyRuleContainer
classID
- The classID (in)subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanAddRule(ITopologyRule rule) throws IOException, AutomationException
isCanAddRule
in interface ITopologyRuleContainer
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.public 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.
addRule
in interface ITopologyRuleContainer
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.public 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.
deleteRule
in interface ITopologyRuleContainer
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.public 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.
promoteToRuleException
in interface ITopologyRuleContainer
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.public 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.
demoteFromRuleException
in interface ITopologyRuleContainer
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 |