|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to memebers that return information about topology rules.
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.
The ITopologyRule interface provides access to members which can be used to assign or retrieve information about a topology rule. Topology rules are cocreateable.
In order to be added to a topology, a rule must have it's Type, OriginID and DestinationID defined. Single feature class rules, need only have the Type and OriginID defined.
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.
| 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. |
java.lang.String |
getGUID()
GUID of the topology rule. |
java.lang.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(java.lang.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 |
public java.lang.String getName()
throws java.io.IOException,
AutomationException
The Name property can be used to assign a user specified string to each rule. By default, the Name property is empty.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(java.lang.String name)
throws java.io.IOException,
AutomationException
name - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getGUID()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getOriginClassID()
throws java.io.IOException,
AutomationException
The OriginClassID of the topology rule.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOriginClassID(int classID)
throws java.io.IOException,
AutomationException
classID - The classID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getOriginSubtype()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOriginSubtype(int subType)
throws java.io.IOException,
AutomationException
subType - The subType (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDestinationClassID()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDestinationClassID(int classID)
throws java.io.IOException,
AutomationException
classID - The classID (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDestinationSubtype()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDestinationSubtype(int subType)
throws java.io.IOException,
AutomationException
subType - The subType (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTopologyRuleType()
throws java.io.IOException,
AutomationException
A long corresponding to the type of topology rule from the esriTopologyRuleType.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTopologyRuleType(int ruleType)
throws java.io.IOException,
AutomationException
ruleType - A com.esri.arcgis.geodatabase.esriTopologyRuleType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isTriggerErrorEvents()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTriggerErrorEvents(boolean errorEvents)
throws java.io.IOException,
AutomationException
errorEvents - The errorEvents (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void errorShapeTypes(boolean[] multipoints,
boolean[] polylines,
boolean[] polygons)
throws java.io.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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAllOriginSubtypes()
throws java.io.IOException,
AutomationException
AllOriginSubtypes specifies if the rule applies to all subtypes in the origin feature class. By default AllOriginSubtypes is False and the OriginSubtype points to the default subtype. If AllOriginSubtypes is set to False, the OriginSubtype must be set or the rule will be invalid.
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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAllOriginSubtypes(boolean allSubtypes)
throws java.io.IOException,
AutomationException
allSubtypes - The allSubtypes (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAllDestinationSubtypes()
throws java.io.IOException,
AutomationException
AllDestinationSubtypes specifies if the rule applies to all subtypes in the destination feature class. By default AllDestinationSubtypes is False and the DestinationSubtype points to the default subtype. If AllDestinationSubtypes is set to False, the DestinationSubtype must be set or the rule will be invalid.
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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAllDestinationSubtypes(boolean allSubtypes)
throws java.io.IOException,
AutomationException
allSubtypes - The allSubtypes (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOriginSubtypeSpecified()
throws java.io.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.
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDestinationSubtypeSpecified()
throws java.io.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.
java.io.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 | |||||||||