Class KKeyRepository


  • public final class KKeyRepository
    extends Object
    Repository that stores all K-keys (with metadata) of:
    • part (K1xxx)
    • characteristic (K2xxx)
    • value (K0xxx)
    • structure (K5xxx)
    • quality control charts (K8xxx)
    If you are looking for catalog K-keys (K4xxx) see CatalogField and Catalog enums.

    Repository is a singleton. It can be retrieved by getInstance() method.

    Author:
    Vlastimil Dolejs
    • Method Detail

      • getMetadataFor

        public KKeyMetadata getMetadataFor​(KKey kKey)
        Finds metadata for a given K-key.

        Returns null if there is no metadata for the given K-key.

        Parameters:
        kKey -
        Returns:
      • getAllKKeys

        public com.google.common.collect.ImmutableList<KKey> getAllKKeys()
        Returns:
        all sorted K-keys
      • getPartKKeys

        public com.google.common.collect.ImmutableList<KKey> getPartKKeys()
        Returns:
        sorted K-keys of part
      • getCharacteristicKKeys

        public com.google.common.collect.ImmutableList<KKey> getCharacteristicKKeys()
        Returns:
        sorted K-keys of characteristic
      • getValueKKeys

        public com.google.common.collect.ImmutableList<KKey> getValueKKeys()
        Returns:
        sorted K-keys of value