|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITopologyRule
Provides access to memebers that return information about topology rules.
The ITopologyRule interface provides access to members which can be used to assign or retrieve information about a topology rule. Topology rules are cocreateable.
To be added to a topology, a rule must have (at a minimum) its Type and OriginClassID properties defined. Rules which use a destination feature class must also have the DestinationClassID property set.
When specifying the Origin properties, if the OriginSubtype, OriginSubtypeSpecified and AllOriginSubtypes are not specified, the OriginSubtype is set to the default subtype. If no subtypes are defined on the feature class, the OriginSubtype will equal zero. The same is true for the DestinationSubtype, DestinationSubtypeSpecified and AllDestinationSubtypes properties.
The ITopologyRule is the main interface for creating and getting information about a topology rule. Use this interface to create a new topology rule between feature classes or for a single feature class. Topology rules can also be specified to the subtype level.
ITopologyRuleContainer
Method Summary | |
---|---|
void |
errorShapeTypes(boolean[] multipoints,
boolean[] polylines,
boolean[] polygons)
Indicates the shape types of errors for the topology rule. |
int |
getDestinationClassID()
Destination ClassID of the topology rule. |
int |
getDestinationSubtype()
Destination subtype of the topology rule. |
String |
getGUID()
GUID of the topology rule. |
String |
getName()
Name of the topology rule. |
int |
getOriginClassID()
Origin ClassID of the topology rule. |
int |
getOriginSubtype()
Origin subtype of the topology rule. |
int |
getTopologyRuleType()
Topology rule type of the topology rule. |
boolean |
isAllDestinationSubtypes()
Indicates if all destination subtypes are specified for the topology rule. |
boolean |
isAllOriginSubtypes()
Indicates if all origin subtypes are specified for the topology rule. |
boolean |
isDestinationSubtypeSpecified()
Indicates if a destination subtype has been specified. |
boolean |
isOriginSubtypeSpecified()
Indicates if an origin subtype has been specified. |
boolean |
isTriggerErrorEvents()
Indicates if error events are triggered for the topology rule. |
void |
setAllDestinationSubtypes(boolean allSubtypes)
Indicates if all destination subtypes are specified for the topology rule. |
void |
setAllOriginSubtypes(boolean allSubtypes)
Indicates if all origin subtypes are specified for the topology rule. |
void |
setDestinationClassID(int classID)
Destination ClassID of the topology rule. |
void |
setDestinationSubtype(int subType)
Destination subtype of the topology rule. |
void |
setName(String name)
Name of the topology rule. |
void |
setOriginClassID(int classID)
Origin ClassID of the topology rule. |
void |
setOriginSubtype(int subType)
Origin subtype of the topology rule. |
void |
setTopologyRuleType(int ruleType)
Topology rule type of the topology rule. |
void |
setTriggerErrorEvents(boolean errorEvents)
Indicates if error events are triggered for the topology rule. |
Method Detail |
---|
String getName() throws IOException, AutomationException
The Name property can be used to assign a user specified string to each rule. By default, the Name property is empty.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setName(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getGUID() throws IOException, AutomationException
Each topology rule is uniquely identified by a GUID. It is assigned when the rule is added to the topology using ITopologyRuleContainer::AddRule. The GUID can be used to get the topology rule using ITopologyRuleContainer::RulebyGUID.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getOriginClassID() throws IOException, AutomationException
The OriginClassID of the topology rule.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOriginClassID(int classID) throws IOException, AutomationException
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getOriginSubtype() throws IOException, AutomationException
The origin subtype of the topology rule. If AllOriginSubtypes is set to True, the OriginSubtype is ignored. If OriginSubtype is set to -1, AllOriginSubtypes will return True. If the assigned value does not correspond to a valid subtype, and error will be raised when the rule is added to the Topology.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setOriginSubtype(int subType) throws IOException, AutomationException
subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDestinationClassID() throws IOException, AutomationException
The DestinationClassID of the topology rule. If the topology rule is a single feature class type, the DestinationClassID does not need to be set, it will be equal to the OriginClassID by default. If DestinationClassID is specified, it will be ignored.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDestinationClassID(int classID) throws IOException, AutomationException
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDestinationSubtype() throws IOException, AutomationException
The destination subtype of the topology rule. If AllDestinationSubtypes is set to True, the DestinationSubtype is ignored. If DestinationSubtype is set to -1, AllDestinationSubtypes will return True. If the assigned value does not correspond to a valid subtype, an error will be raised when the rule is added to the Topology.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDestinationSubtype(int subType) throws IOException, AutomationException
subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getTopologyRuleType() throws IOException, AutomationException
A value from the esriTopologyRuleType enumeration that represents the rule's type.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTopologyRuleType(int ruleType) throws IOException, AutomationException
ruleType
- A com.esri.arcgis.geodatabase.esriTopologyRuleType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isTriggerErrorEvents() throws IOException, AutomationException
The TriggerErrorEvents property is not currently in use and is reserved for future use.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTriggerErrorEvents(boolean errorEvents) throws IOException, AutomationException
errorEvents
- The errorEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void errorShapeTypes(boolean[] multipoints, boolean[] polylines, boolean[] polygons) throws IOException, AutomationException
The ErrorShapeTypes method returns the supported error geometries for the specific topology rule. Topology rules do not support multipoints, this parameter equates to points. Every topology rule supports the creation of point topology errors.
multipoints
- The multipoints (out: use single element array)polylines
- The polylines (out: use single element array)polygons
- The polygons (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAllOriginSubtypes() throws IOException, AutomationException
AllOriginSubtypes specifies if the rule applies to all subtypes in the origin feature class. By default AllOriginSubtypes is False and the OriginSubtype property is set to -1. If the origin class contains subtypes, and these values are not changed, adding the rule to a topology will fail.
AllOriginSubtypes is set to the opposite value of OriginSubtypeSpecified. If the topology rule is a single feature class type, AllOriginSubtypes is set to True once the rule is added to the Topology.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAllOriginSubtypes(boolean allSubtypes) throws IOException, AutomationException
allSubtypes
- The allSubtypes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAllDestinationSubtypes() throws IOException, AutomationException
AllDestinationSubtypes specifies if the rule applies to all subtypes in the destination feature class. By default AllDestinationSubtypes is False and the DestinationSubtype property is set to -1. If the destination class contains subtypes, and these values are not changed, adding the rule to a topology will fail.
AllDestinationSubtypes is set to the opposite value of DestinationSubtypeSpecified. If the topology rule is a single feature class type, AllDestinationSubtypes is set to True once the rule is added to the Topology.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAllDestinationSubtypes(boolean allSubtypes) throws IOException, AutomationException
allSubtypes
- The allSubtypes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isOriginSubtypeSpecified() throws IOException, AutomationException
OriginSubtypeSpecified will return True whenever the rule has been specified at the subtype level with the use of ITopologyRule::OriginSubtype. OriginSubtypeSpecified is the opposite of AllOriginSubtypes.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isDestinationSubtypeSpecified() throws IOException, AutomationException
DestinationSubtypeSpecified will return True whenever the rule has been specified at the subtype level with the use of ITopologyRule::DestinationSubtype. DestinationSubtypeSpecified is the opposite of AllDestinationSubtypes.
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 |