Interface NaturalKey

  • All Known Implementing Classes:
    DefaultNaturalKeyImpl, ItemPathNaturalKeyImpl

    public interface NaturalKey
    Describes how to handle a natural key of multi-valued items. Responsibilities: 1. _Matching_ values of a multi-valued item, so that the matching pairs can be appropriately merged. 2. _Merging_ values of the key itself. For example, definitions of an attribute `ri:drink` with `ref` of `drink` (unqualified) and `ri:drink` (qualified) have to be merged, and the result should use the `ref` of `ri:drink`, i.e. the qualified version. (See also the description in GenericItemMerger, where this class is primarily used.)