Identifies a Metapath expression referencing a value that is used in generating a key as part of a IsUnique, Index, or IndexHasKey constraint annotation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Retrieve an optional pattern to use to retrieve the value.
    Any remarks about the key field, encoded as an escaped Markdown string.
    An optional metapath that points to the target flag or field value that the key applies to.
  • Element Details

    • target

      @NonNull String target
      An optional metapath that points to the target flag or field value that the key applies to. If omitted the target will be ".", which means the target is the value of the BoundFlag, BoundField or BoundFieldValue annotation the constraint appears on. In the prior case, this annotation may only appear on a BoundField if the field has no flags, which results in a BoundField annotation on a field instance with a scalar, data type value.
      Returns:
      the target metapath
      Default:
      "."
    • pattern

      @NonNull String pattern
      Retrieve an optional pattern to use to retrieve the value. If non-null, the first capturing group is used to retrieve the value. This must be a pattern that can compile using Pattern.compile(String).
      Returns:
      a pattern string or an empty string if no pattern is provided
      Default:
      ""
    • remarks

      @NonNull String remarks
      Any remarks about the key field, encoded as an escaped Markdown string.
      Returns:
      an encoded markdown string or an empty string if no remarks are provided
      Default:
      ""