|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that return, modify and validate attribute rules.
IAttributeRule interface is used to maintain information about attribute rules. Validation of attribute rules is a function of this interface. Setting/retrieving the domain name, fieldname, subtypecode of a particular attribute rule are members of this interface.
IAttributeRule is the interface on a AttributeRule object used to get and set the properties of an Attribute Rule. For example, use the IAttributeRule interface when creating a new attribute rule and setting its domain name, field name, and subtype code that it will apply to. You can also use the Validate function of the attribute rule object to validate a particular row against this attribute rule. The validate function returns a boolean value of TRUE if it is valid and FALSE if it was not.
IAttributeRule is for setting rules based on attributes for object classes. They describe the legal values for a field in an object class. For example, you might set an attribute rule that specifies wood poles can only be within a certain height range. You do this by establishing a range domain for pole heights and then using an attribute rule to apply this domain to a particular field in the pole object class, probably the height field.
| Method Summary | |
java.lang.String |
getDomainName()
The domain name associated with the attribute rule. |
java.lang.String |
getFieldName()
The field name associated with the attribute rule. |
int |
getSubtypeCode()
The subtype code. |
void |
setDomainName(java.lang.String name)
The domain name associated with the attribute rule. |
void |
setFieldName(java.lang.String name)
The field name associated with the attribute rule. |
void |
setSubtypeCode(int value)
The subtype code. |
boolean |
validate(IRow row,
java.lang.String[] errorMessage)
Validates the rule. |
| Methods inherited from interface com.esri.arcgis.geodatabase.IRule |
getCategory, getHelpstring, getID, getType, setCategory, setHelpstring, setID |
| Method Detail |
public java.lang.String getDomainName()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDomainName(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 getFieldName()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFieldName(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 int getSubtypeCode()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSubtypeCode(int value)
throws java.io.IOException,
AutomationException
value - The value (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean validate(IRow row,
java.lang.String[] errorMessage)
throws java.io.IOException,
AutomationException
row - A reference to a com.esri.arcgis.geodatabase.IRow (in)errorMessage - The errorMessage (out: use single element array)
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 | |||||||||