Class MetadataKey


  • @NonNullByDefault
    public final class MetadataKey
    extends AbstractUID
    This class represents the key of a Metadata entity. It is a simple combination of a namespace and an item name.
    Author:
    Kai Kreuzer - Initial contribution
    • Constructor Detail

      • MetadataKey

        public MetadataKey​(String namespace,
                           String itemName)
        Creates a new instance.
        Parameters:
        namespace -
        itemName -
    • Method Detail

      • getItemName

        public String getItemName()
        Provides the item name of this key
        Returns:
        the item name
      • getNamespace

        public String getNamespace()
        Provides the namespace of this key
        Returns:
        the namespace
      • getMinimalNumberOfSegments

        protected int getMinimalNumberOfSegments()
        Description copied from class: AbstractUID
        Specifies how many segments the UID has to have at least.
        Specified by:
        getMinimalNumberOfSegments in class AbstractUID
        Returns: