
**Inheritance:**
java.lang.Object
```
public abstract class Constraint
```

Represents a constraint that can be enforced on one or more [DataColumn](../../com.aspose.words.net.system.data/datacolumn/) objects.
## Constructors

| Constructor | Description |
| --- | --- |
| [Constraint()](#Constraint) |  |
## Methods

| Method | Description |
| --- | --- |
| [getConstraintName()](#getConstraintName) | The name of a constraint in the [ConstraintCollection](../../com.aspose.words.net.system.data/constraintcollection/). |
| [setConstraintName(String value)](#setConstraintName-java.lang.String) | The name of a constraint in the [ConstraintCollection](../../com.aspose.words.net.system.data/constraintcollection/). |
### Constraint() {#Constraint}
```
public Constraint()
```


### getConstraintName() {#getConstraintName}
```
public String getConstraintName()
```


The name of a constraint in the [ConstraintCollection](../../com.aspose.words.net.system.data/constraintcollection/).

**Returns:**
java.lang.String - The name of the [Constraint](../../com.aspose.words.net.system.data/constraint/).
### setConstraintName(String value) {#setConstraintName-java.lang.String}
```
public void setConstraintName(String value)
```


The name of a constraint in the [ConstraintCollection](../../com.aspose.words.net.system.data/constraintcollection/).

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | The name of the [Constraint](../../com.aspose.words.net.system.data/constraint/). |

