Interface MetadataAwareItem

All Known Implementing Classes:
GroupItem, NumberItem

@NonNullByDefault public interface MetadataAwareItem
The MetadataAwareItem is an interface that can be implemented by Items that need to be notified of metadata changes.
Author:
Jan N. Klug - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Can be implemented by subclasses to be informed about added metadata
    void
    Can be implemented by subclasses to be informed about removed metadata
    void
    updatedMetadata(Metadata oldMetadata, Metadata newMetadata)
    Can be implemented by subclasses to be informed about updated metadata
  • Method Details

    • addedMetadata

      void addedMetadata(Metadata metadata)
      Can be implemented by subclasses to be informed about added metadata
      Parameters:
      metadata - the added Metadata object for this Item
    • updatedMetadata

      void updatedMetadata(Metadata oldMetadata, Metadata newMetadata)
      Can be implemented by subclasses to be informed about updated metadata
      Parameters:
      oldMetadata - the old Metadata object for this Item
      newMetadata - the new Metadata object for this Item
    • removedMetadata

      void removedMetadata(Metadata metadata)
      Can be implemented by subclasses to be informed about removed metadata
      Parameters:
      metadata - the removed Metadata object for this Item