
**Inheritance:**
java.lang.Object
```
public class Rule
```

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

| Constructor | Description |
| --- | --- |
| [Rule()](#Rule--) | Constructor. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getCategory()](#getCategory--) | Specifies the text displayed in the Category column of the Issues window. |
| [getClass()](#getClass--) |  |
| [getDescription()](#getDescription--) | the description of the validation rule that appears in the user interface. |
| [getID()](#getID--) | Specifies the unique identifier of the validation rule. |
| [getIgnored()](#getIgnored--) | Specifies whether the validation rule is currently ignored. |
| [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. |
| [getRuleTest()](#getRuleTest--) | Specifies the logical expression that determines whether the target object satisfies the validation rule |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setCategory(String value)](#setCategory-java.lang.String-) | For the description of this property, please see [getCategory()](../../com.aspose.diagram/rule\#getCategory--) |
| [setDescription(String value)](#setDescription-java.lang.String-) | For the description of this property, please see [getDescription()](../../com.aspose.diagram/rule\#getDescription--) |
| [setID(long value)](#setID-long-) | For the description of this property, please see [getID()](../../com.aspose.diagram/rule\#getID--) |
| [setIgnored(int value)](#setIgnored-int-) | For the description of this property, please see [getIgnored()](../../com.aspose.diagram/rule\#getIgnored--) |
| [setNameU(String value)](#setNameU-java.lang.String-) | For the description of this property, please see [getNameU()](../../com.aspose.diagram/rule\#getNameU--) |
| [setRuleFilter(RuleValue value)](#setRuleFilter-com.aspose.diagram.RuleValue-) | For the description of this property, please see [getRuleFilter()](../../com.aspose.diagram/rule\#getRuleFilter--) |
| [setRuleTarget(int value)](#setRuleTarget-int-) | For the description of this property, please see [getRuleTarget()](../../com.aspose.diagram/rule\#getRuleTarget--) |
| [setRuleTest(RuleValue value)](#setRuleTest-com.aspose.diagram.RuleValue-) | For the description of this property, please see [getRuleTest()](../../com.aspose.diagram/rule\#getRuleTest--) |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Rule() {#Rule--}
```
public Rule()
```


Constructor.

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getCategory() {#getCategory--}
```
public String getCategory()
```


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

**Returns:**
java.lang.String
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDescription() {#getDescription--}
```
public String getDescription()
```


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

**Returns:**
java.lang.String
### getID() {#getID--}
```
public long getID()
```


Specifies the unique identifier of the validation rule.

**Returns:**
long
### getIgnored() {#getIgnored--}
```
public int getIgnored()
```


Specifies whether the validation rule is currently ignored. Default is False.

**Returns:**
int
### getNameU() {#getNameU--}
```
public String getNameU()
```


Specifies the universal name of the validation rule.

**Returns:**
java.lang.String
### getRuleFilter() {#getRuleFilter--}
```
public RuleValue getRuleFilter()
```


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

**Returns:**
[RuleValue](../../com.aspose.diagram/rulevalue)
### getRuleTarget() {#getRuleTarget--}
```
public int getRuleTarget()
```


Specifies the type of object to which the validation rule applies.

**Returns:**
int
### getRuleTest() {#getRuleTest--}
```
public RuleValue getRuleTest()
```


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

**Returns:**
[RuleValue](../../com.aspose.diagram/rulevalue)
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setCategory(String value) {#setCategory-java.lang.String-}
```
public void setCategory(String value)
```


For the description of this property, please see [getCategory()](../../com.aspose.diagram/rule\#getCategory--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setDescription(String value) {#setDescription-java.lang.String-}
```
public void setDescription(String value)
```


For the description of this property, please see [getDescription()](../../com.aspose.diagram/rule\#getDescription--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setID(long value) {#setID-long-}
```
public void setID(long value)
```


For the description of this property, please see [getID()](../../com.aspose.diagram/rule\#getID--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long |  |

### setIgnored(int value) {#setIgnored-int-}
```
public void setIgnored(int value)
```


For the description of this property, please see [getIgnored()](../../com.aspose.diagram/rule\#getIgnored--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setNameU(String value) {#setNameU-java.lang.String-}
```
public void setNameU(String value)
```


For the description of this property, please see [getNameU()](../../com.aspose.diagram/rule\#getNameU--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setRuleFilter(RuleValue value) {#setRuleFilter-com.aspose.diagram.RuleValue-}
```
public void setRuleFilter(RuleValue value)
```


For the description of this property, please see [getRuleFilter()](../../com.aspose.diagram/rule\#getRuleFilter--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RuleValue](../../com.aspose.diagram/rulevalue) |  |

### setRuleTarget(int value) {#setRuleTarget-int-}
```
public void setRuleTarget(int value)
```


For the description of this property, please see [getRuleTarget()](../../com.aspose.diagram/rule\#getRuleTarget--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setRuleTest(RuleValue value) {#setRuleTest-com.aspose.diagram.RuleValue-}
```
public void setRuleTest(RuleValue value)
```


For the description of this property, please see [getRuleTest()](../../com.aspose.diagram/rule\#getRuleTest--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RuleValue](../../com.aspose.diagram/rulevalue) |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

