Package com.orchestranetworks.schema.info

# Interface UniquenessConstraint

public interface UniquenessConstraint
Defines a uniqueness constraint (property `xs:unique`) held by a table node in a data model. This constraint indicates that a value or a set of values has to be unique in a table.

Since:
  5.8.1
See Also:
  - `SchemaNode.getUniquenessConstraints()`
  - Uniqueness constraint
  - https://www.w3.org/TR/2006/WD-xmlschema11-1-20060831/#cIdentity-constraint_Definitions

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getCaseSensitivity()`
  Returns the case sensitivity used to check string fields defined in the uniqueness constraint.
  `List<? extends SchemaNode>`
  `getUniqueFields()`
  Returns the nodes in the data model that are declared as being unique (property `field`).
  `String`
  `getUniquenessName()`
  Returns the name of the uniqueness constraint defined in the data model (property `name`).
  `SchemaFacetValidationPolicy`
  `getValidationPolicy()`
  Returns the validation policy of this uniqueness constraint.

- ## Method Details

  - ### getUniquenessName

    String getUniquenessName()
    Returns the name of the uniqueness constraint defined in the data model (property `name`).

  - ### getUniqueFields

    List<? extends SchemaNode> getUniqueFields()
    Returns the nodes in the data model that are declared as being unique (property `field`).

  - ### getValidationPolicy

    SchemaFacetValidationPolicy getValidationPolicy()
    Returns the validation policy of this uniqueness constraint. Validation policy properties are defined under the element `osd:validation`.
    Since:
      5.8.1
    See Also:
      - `SchemaFacetValidationPolicy`

  - ### getCaseSensitivity

    String getCaseSensitivity()
    Returns the case sensitivity used to check string fields defined in the uniqueness constraint.
    Possible values are: ["sensitive","insensitive"]
    Since:
      6.1.2