Interface MetadataRegistry

All Superinterfaces:
Registry<Metadata,MetadataKey>

@NonNullByDefault public interface MetadataRegistry extends Registry<Metadata,MetadataKey>
The MetadataRegistry is the central place, where additional information about items is kept. Metadata can be supplied by MetadataProviders, which can provision them from any source they like and also dynamically remove or add data.
Author:
Kai Kreuzer - Initial contribution
  • Field Details

  • Method Details

    • isInternalNamespace

      boolean isInternalNamespace(String namespace)
      Determines whether the given namespace is internal.
      Parameters:
      namespace - the metadata namespace to check
      Returns:
      true if the given namespace is internal, false otherwise
    • getAllNamespaces

      Collection<String> getAllNamespaces(String itemname)
      Provides all namespaces of a particular item
      Parameters:
      itemname - the name of the item for which the namespaces should be searched.
    • removeItemMetadata

      void removeItemMetadata(String itemname)
      Remove all metadata of a given item
      Parameters:
      itemname - the name of the item for which the metadata is to be removed.