
## Rule class

Represents a single validation rule in a diagram validation rule set.

```js
new Rule()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [getCategory()](#getcategory) | Specifies the text displayed in the Category column of the Issues window. Default is an empty string. |
| [getDescription()](#getdescription) | the description of the validation rule that appears in the user interface. Default is "Unknown". |
| [getID()](#getid) | Specifies the unique identifier of the validation rule. |
| [getIgnored()](#getignored) | Specifies whether the validation rule is currently ignored. Default is False. The value of the property is BOOL integer  |
| [getNameU()](#getnameu) | Specifies the universal name of the validation rule. |
| [getRuleFilter()](#getrulefilter) | Specifies the logical expression that determines whether the validation rule should be applied to a target object. |
| [getRuleTarget()](#getruletarget) | Specifies the type of object to which the validation rule applies. The value of the property is VisRuleTargetsValue inte |
| [getRuleTest()](#getruletest) | Specifies the logical expression that determines whether the target object satisfies the validation rule |
| [setCategory()](#setcategory) | Specifies the text displayed in the Category column of the Issues window. Default is an empty string. |
| [setDescription()](#setdescription) | the description of the validation rule that appears in the user interface. Default is "Unknown". |
| [setID()](#setid) | Specifies the unique identifier of the validation rule. |
| [setIgnored()](#setignored) | Specifies whether the validation rule is currently ignored. Default is False. The value of the property is BOOL integer  |
| [setNameU()](#setnameu) | Specifies the universal name of the validation rule. |
| [setRuleFilter()](#setrulefilter) | Specifies the logical expression that determines whether the validation rule should be applied to a target object. |
| [setRuleTarget()](#setruletarget) | Specifies the type of object to which the validation rule applies. The value of the property is VisRuleTargetsValue inte |
| [setRuleTest()](#setruletest) | Specifies the logical expression that determines whether the target object satisfies the validation rule |

### getCategory() {#getcategory}

Specifies the text displayed in the Category column of the Issues window. Default is an empty string.

### getDescription() {#getdescription}

the description of the validation rule that appears in the user interface. Default is "Unknown".

### getID() {#getid}

Specifies the unique identifier of the validation rule.

### getIgnored() {#getignored}

Specifies whether the validation rule is currently ignored. Default is False. The value of the property is BOOL integer constant.

### getNameU() {#getnameu}

Specifies the universal name of the validation rule.

### getRuleFilter() {#getrulefilter}

Specifies the logical expression that determines whether the validation rule should be applied to a target object.

### getRuleTarget() {#getruletarget}

Specifies the type of object to which the validation rule applies. The value of the property is VisRuleTargetsValue integer constant.

### getRuleTest() {#getruletest}

Specifies the logical expression that determines whether the target object satisfies the validation rule

### setCategory() {#setcategory}

Specifies the text displayed in the Category column of the Issues window. Default is an empty string.

### setDescription() {#setdescription}

the description of the validation rule that appears in the user interface. Default is "Unknown".

### setID() {#setid}

Specifies the unique identifier of the validation rule.

### setIgnored() {#setignored}

Specifies whether the validation rule is currently ignored. Default is False. The value of the property is BOOL integer constant.

### setNameU() {#setnameu}

Specifies the universal name of the validation rule.

### setRuleFilter() {#setrulefilter}

Specifies the logical expression that determines whether the validation rule should be applied to a target object.

### setRuleTarget() {#setruletarget}

Specifies the type of object to which the validation rule applies. The value of the property is VisRuleTargetsValue integer constant.

### setRuleTest() {#setruletest}

Specifies the logical expression that determines whether the target object satisfies the validation rule
