Package cz.diribet.aqdef
Class KKeyRepository
- java.lang.Object
-
- cz.diribet.aqdef.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)
CatalogFieldandCatalogenums.Repository is a singleton. It can be retrieved by
getInstance()method.- Author:
- Vlastimil Dolejs
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<KKey>getAllKKeys()com.google.common.collect.ImmutableList<KKey>getCharacteristicKKeys()static KKeyRepositorygetInstance()KKeyMetadatagetMetadataFor(KKey kKey)Findsmetadatafor a given K-key.com.google.common.collect.ImmutableList<KKey>getPartKKeys()com.google.common.collect.ImmutableList<KKey>getValueKKeys()
-
-
-
Method Detail
-
getInstance
public static KKeyRepository getInstance()
-
getMetadataFor
public KKeyMetadata getMetadataFor(KKey kKey)
Findsmetadatafor 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
-
-