Class ObjectClassValidatorClass

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll
[Guid("F84C6C21-47FF-11D2-9933-0000F80372B4")]
[ClassInterface(ClassInterfaceType.None)]
public class ObjectClassValidatorClass : ObjectClassValidator, IValidation2, IValidation
Inheritance
ObjectClassValidatorClass
Implements
Inherited Members

Constructors

ObjectClassValidatorClass()

public ObjectClassValidatorClass()

Explicit Interface Implementations

AddRule(IRule)

Adds the rule to the set of associated rules.

virtual void AddRule(IRule Rule)

Parameters

Rule IRule

AlterRule(IRule)

Alter the existing validation rule.

virtual void AlterRule(IRule Rule)

Parameters

Rule IRule

Remarks

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:

  • minimum and maximum cardinalities
  • default junction for junction connectivity rules
  • default junction classID for edge connectivity rules
  • default junction subtype code for edge connectivity rules

To alter other properties of a connectivity rule, the rule must be deleted and recreated with the appropriate changes.

DeleteRule(IRule)

Deletes the rule from the set of associated rules.

virtual void DeleteRule(IRule Rule)

Parameters

Rule IRule

IValidation2_AddRule(IRule)

virtual void IValidation2_AddRule(IRule Rule)

Parameters

Rule IRule

IValidation2_DeleteRule(IRule)

virtual void IValidation2_DeleteRule(IRule Rule)

Parameters

Rule IRule

IValidation2_Rules

virtual IEnumRule IValidation2_Rules { get; }

Returns

IEnumRule

IValidation2_RulesByField[string]

virtual IEnumRule IValidation2_RulesByField[string FieldName] { get; }

Parameters

FieldName string

Returns

IEnumRule

IValidation2_RulesBySubtypeCode[int]

virtual IEnumRule IValidation2_RulesBySubtypeCode[int SubtypeCode] { get; }

Parameters

SubtypeCode int

Returns

IEnumRule

IValidation2_Validate(IQueryFilter, IWorkspace)

virtual ISelectionSet IValidation2_Validate(IQueryFilter Selection, IWorkspace Workspace)

Parameters

Selection IQueryFilter
Workspace IWorkspace

Returns

ISelectionSet

IValidation2_ValidateSelection(ISelectionSet, IWorkspace)

virtual ISelectionSet IValidation2_ValidateSelection(ISelectionSet Selection, IWorkspace Workspace)

Parameters

Selection ISelectionSet
Workspace IWorkspace

Returns

ISelectionSet

IValidation2_ValidateSet(ISet)

virtual ISet IValidation2_ValidateSet(ISet Selection)

Parameters

Selection ISet

Returns

ISet

Rules

The rules associated with the class.

virtual IEnumRule Rules { get; }

Returns

IEnumRule

Remarks

Property Rules returns a IEnumRule enumerator hydrated with all of the rules associated with the object class.

RulesByField[string]

The rules associated with the attribute.

virtual IEnumRule RulesByField[string FieldName] { get; }

Parameters

FieldName string

Returns

IEnumRule

RulesBySubtypeCode[int]

The rules associated with the subtype.

virtual IEnumRule RulesBySubtypeCode[int SubtypeCode] { get; }

Parameters

SubtypeCode int

Returns

IEnumRule

Validate(IQueryFilter, IWorkspace)

Validates the selection.

virtual ISelectionSet Validate(IQueryFilter Selection, IWorkspace Workspace)

Parameters

Selection IQueryFilter
Workspace IWorkspace

Returns

ISelectionSet

Remarks

Validate on a row occurs in five steps:

  1. Validate the subtype

  2. Validate the attribute rules

  3. Validate the network connectivity rules (if network feature)

  4. Validate the relationship rules

  5. Perform custom validation (using optional class extension)

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.

ValidateSelection(ISelectionSet, IWorkspace)

Validates the selection.

virtual ISelectionSet ValidateSelection(ISelectionSet Selection, IWorkspace Workspace)

Parameters

Selection ISelectionSet
Workspace IWorkspace

Returns

ISelectionSet

ValidateSet(ISet)

Validates the set.

virtual ISet ValidateSet(ISet Selection)

Parameters

Selection ISet

Returns

ISet