|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.TopologyRule
public class TopologyRule
Esri Topology Rule object.
The TopologyRule class is used to define the permissible spatial relationships between features within a topology. Topology rules can be defined with a single feature class or between two feature classes. Topology rules can also be defined to the subtype level of a feature class. Topology rules have an origin and a destination feature class, either of which can be set to the subtype level. Depending on the type of topology rule that is implemented, the destination feature class properties may be irrelevant.
Constructor Summary | |
---|---|
TopologyRule()
Constructs a TopologyRule using ArcGIS Engine. |
|
TopologyRule(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. TopologyRule theTopologyRule = (TopologyRule) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
void |
errorShapeTypes(boolean[] multipoints,
boolean[] polylines,
boolean[] polygons)
Indicates the shape types of errors for the topology rule. |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
int |
getCategory()
The name associated with the validation rule. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
int |
getDestinationClassID()
Destination ClassID of the topology rule. |
int |
getDestinationSubtype()
Destination subtype of the topology rule. |
String |
getGUID()
GUID of the topology rule. |
String |
getHelpstring()
The helpstring associated with the validation rule. |
int |
getID()
The ID of the validation rule. |
String |
getName()
Name of the topology rule. |
int |
getOriginClassID()
Origin ClassID of the topology rule. |
int |
getOriginSubtype()
Origin subtype of the topology rule. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getTopologyRuleType()
Topology rule type of the topology rule. |
int |
getType()
The type associated with the validation rule. |
int |
hashCode()
the hashcode for this object |
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. |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
boolean |
isOriginSubtypeSpecified()
Indicates if an origin subtype has been specified. |
boolean |
isTriggerErrorEvents()
Indicates if error events are triggered for the topology rule. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
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 |
setCategory(int groupBitmap)
The name associated with the validation rule. |
void |
setDestinationClassID(int classID)
Destination ClassID of the topology rule. |
void |
setDestinationSubtype(int subType)
Destination subtype of the topology rule. |
void |
setHelpstring(String helpstring)
The helpstring associated with the validation rule. |
void |
setID(int iD)
The ID of the validation 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. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public TopologyRule() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic TopologyRule(Object obj) throws IOException
TopologyRule theTopologyRule = (TopologyRule) obj;
obj
to TopologyRule
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getCategory() throws IOException, AutomationException
Category sets the name associated with the rule. Not currently used by any ArcGIS application.
getCategory
in interface IRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCategory(int groupBitmap) throws IOException, AutomationException
setCategory
in interface IRule
groupBitmap
- The groupBitmap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHelpstring() throws IOException, AutomationException
Helpstring property sets the helpstring for the given rule. Not currently used by any ArcGIS application.
getHelpstring
in interface IRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHelpstring(String helpstring) throws IOException, AutomationException
setHelpstring
in interface IRule
helpstring
- The helpstring (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getID() throws IOException, AutomationException
This property will always return -1 for rules in geodatabases created in versions of ArcGIS later than 9.3.1.
getID
in interface IRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setID(int iD) throws IOException, AutomationException
setID
in interface IRule
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
getType
in interface IRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getName
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface ITopologyRule
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getGUID
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getOriginClassID() throws IOException, AutomationException
The OriginClassID of the topology rule.
getOriginClassID
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOriginClassID(int classID) throws IOException, AutomationException
setOriginClassID
in interface ITopologyRule
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getOriginSubtype
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setOriginSubtype(int subType) throws IOException, AutomationException
setOriginSubtype
in interface ITopologyRule
subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDestinationClassID
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDestinationClassID(int classID) throws IOException, AutomationException
setDestinationClassID
in interface ITopologyRule
classID
- The classID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getDestinationSubtype
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDestinationSubtype(int subType) throws IOException, AutomationException
setDestinationSubtype
in interface ITopologyRule
subType
- The subType (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTopologyRuleType() throws IOException, AutomationException
A value from the esriTopologyRuleType enumeration that represents the rule's type.
getTopologyRuleType
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTopologyRuleType(int ruleType) throws IOException, AutomationException
setTopologyRuleType
in interface ITopologyRule
ruleType
- A com.esri.arcgis.geodatabase.esriTopologyRuleType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isTriggerErrorEvents() throws IOException, AutomationException
The TriggerErrorEvents property is not currently in use and is reserved for future use.
isTriggerErrorEvents
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTriggerErrorEvents(boolean errorEvents) throws IOException, AutomationException
setTriggerErrorEvents
in interface ITopologyRule
errorEvents
- The errorEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
errorShapeTypes
in interface ITopologyRule
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.public 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.
isAllOriginSubtypes
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAllOriginSubtypes(boolean allSubtypes) throws IOException, AutomationException
setAllOriginSubtypes
in interface ITopologyRule
allSubtypes
- The allSubtypes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isAllDestinationSubtypes
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAllDestinationSubtypes(boolean allSubtypes) throws IOException, AutomationException
setAllDestinationSubtypes
in interface ITopologyRule
allSubtypes
- The allSubtypes (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isOriginSubtypeSpecified
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
isDestinationSubtypeSpecified
in interface ITopologyRule
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |