Class DefaultUniqueConstraint

    • Constructor Detail

      • DefaultUniqueConstraint

        public DefaultUniqueConstraint​(@Nullable
                                       String id,
                                       @Nullable
                                       String formalName,
                                       @Nullable
                                       MarkupLine description,
                                       @NonNull
                                       IConstraint.ISource source,
                                       @NonNull
                                       IConstraint.Level level,
                                       @NonNull
                                       MetapathExpression target,
                                       @NonNull
                                       Map<QName,​Set<String>> properties,
                                       @NonNull
                                       List<DefaultKeyField> keyFields,
                                       @Nullable
                                       MarkupMultiline remarks)
        Create a new key-based constraint, which uses a set of key fields to build a key used to identify non-unique items.
        Parameters:
        id - the optional identifier for the constraint
        formalName - the constraint's formal name or null if not provided
        description - the constraint's semantic description or null if not provided
        source - information about the constraint source
        level - the significance of a violation of this constraint
        target - the Metapath expression identifying the nodes the constraint targets
        properties - a collection of associated properties
        keyFields - a list of key fields associated with the constraint
        remarks - optional remarks describing the intent of the constraint