Interface IWithMetadata

  • All Known Implementing Classes:
    Match, MidFileData, StartGroupData, Unit

    public interface IWithMetadata
    Provides the methods to add and retrieve metadata for an object.
    • Method Detail

      • hasMetadata

        boolean hasMetadata()
        Indicates if the object has metadata.
        Returns:
        true if the object has metadata, false otherwise.
      • getMetadata

        Metadata getMetadata()
        Gets the Metadata object for the parent, creates an empty of if there is none.
        Returns:
        the Metadata object for the parent (can be empty, but never null).
      • setMetadata

        void setMetadata​(Metadata metadata)
        sets the Metadata object for the parent.
        Parameters:
        metadata - the new Metadata object for the parent.