|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.ObjectClassValidator
public class ObjectClassValidator
Esri ObjectClassValidator object.
Constructor Summary | |
---|---|
ObjectClassValidator()
Constructs a ObjectClassValidator using ArcGIS Engine. |
|
ObjectClassValidator(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ObjectClassValidator theObjectClassValidator = (ObjectClassValidator) obj; |
Method Summary | |
---|---|
void |
addRule(IRule rule)
Adds the rule to the set of associated rules. |
void |
alterRule(IRule rule)
Alter the existing validation rule. |
void |
deleteRule(IRule rule)
Deletes the rule from the set of associated rules. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IEnumRule |
getRules()
The rules associated with the class. |
IEnumRule |
getRulesByField(String fieldName)
The rules associated with the attribute. |
IEnumRule |
getRulesBySubtypeCode(int subtypeCode)
The rules associated with the subtype. |
int |
hashCode()
the hashcode for this object |
ISelectionSet |
validate(IQueryFilter selection,
IWorkspace workspace)
Validates the selection. |
ISelectionSet |
validateSelection(ISelectionSet selection,
IWorkspace workspace)
Validates the selection. |
ISet |
validateSet(ISet selection)
Validates the set. |
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 ObjectClassValidator() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ObjectClassValidator(Object obj) throws IOException
ObjectClassValidator theObjectClassValidator = (ObjectClassValidator) obj;
obj
to ObjectClassValidator
.
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 IEnumRule getRules() throws IOException, AutomationException
getRules
in interface IValidation
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRule getRulesByField(String fieldName) throws IOException, AutomationException
getRulesByField
in interface IValidation
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumRule getRulesBySubtypeCode(int subtypeCode) throws IOException, AutomationException
getRulesBySubtypeCode
in interface IValidation
subtypeCode
- The subtypeCode (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addRule(IRule rule) throws IOException, AutomationException
addRule
in interface IValidation
rule
- A reference to a com.esri.arcgis.geodatabase.IRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteRule(IRule rule) throws IOException, AutomationException
deleteRule
in interface IValidation
rule
- A reference to a com.esri.arcgis.geodatabase.IRule (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelectionSet validate(IQueryFilter selection, IWorkspace workspace) throws IOException, AutomationException
Validate on a row occurs in five steps:
The validate process stops once a row is found invalid. For example, if a network feature violates an attribute rule, the validation process stops and the feature's network connectivity rules are not evaluated until the attribute rule violation is corrected.
validate
in interface IValidation
selection
- A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISelectionSet validateSelection(ISelectionSet selection, IWorkspace workspace) throws IOException, AutomationException
validateSelection
in interface IValidation
selection
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)workspace
- A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISet validateSet(ISet selection) throws IOException, AutomationException
validateSet
in interface IValidation
selection
- A reference to a com.esri.arcgis.system.ISet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void alterRule(IRule rule) throws IOException, AutomationException
The AlterRule method is used to change the characteristics of an existing rule. This is currently implemented to change a subset of properties for connectivity rules only. These properties are:
To alter other properties of a connectivity rule, the rule must be deleted and recreated with the appropriate changes.
alterRule
in interface IValidation2
rule
- A reference to a com.esri.arcgis.geodatabase.IRule (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 |