# Rule Class

> * Namespace: `UiPath.DocumentProcessing.Contracts.Taxonomy`
* Assembly: `UiPath.DocumentProcessing.Contracts`

## Definition

* Namespace: `UiPath.DocumentProcessing.Contracts.Taxonomy`
* Assembly: `UiPath.DocumentProcessing.Contracts`

## Description

Represents the properties of a taxonomy rule.

## Members

#### Properties

* `Name`: The name of the taxonomy rule.
* `Type`: The type of taxonomy, as a `RuleType` object. It can have the following values:
  + `Mandatory`
  + `PossibleValues`
  + `Regex`
  + `StartsWith`
  + `EndsWith`
  + `FixedLength`
  + `IsNumeric`
  + `IsDate`
  + `IsEmail`
  + `Contains`
  + `Expression`
  + `TableExpression`
  + `IsEmpty`
* `LogicalOperator`: The logical operator used in the rule. It can have the following values:
  + `AND`
  + `OR`
* `ComparisonOperator`: The comparison operator used in the rule. It can have the following values:
  + `Equals`
  + `NotEquals`
  + `Greater`
  + `Less`
  + `GreaterOrEqual`
  + `LessOrEqual`
* `Expression`: The expression evaluated in the rule.
* `SetValues`: The set of values associated with the rule.
