Interface IdentifiableElement

    • Field Detail

      • ID_PROPERTY

        static final String ID_PROPERTY
        The name of the property used to store the unique identifier (UUID) of the element.
        See Also:
        Constant Field Values
      • METADATA_PROPERTY

        static final String METADATA_PROPERTY
        The name of the property used to store the metadata associated with the element.
        See Also:
        Constant Field Values
    • Method Detail

      • getID

        UUID getID()
        Returns the unique identifier (UUID) of the element.
        Returns:
        The UUID of the element.
      • setID

        void setID​(UUID uuid)
        Sets the unique identifier (UUID) for the element.
        Parameters:
        uuid - The UUID to set.
      • getMetadata

        Metadata getMetadata()
        Returns the metadata associated with the element.

        The metadata is included in JSON serialization only if it is not null.

        Returns:
        The Metadata of the element, or null if none is set.
      • setMetadata

        void setMetadata​(Metadata metadata)
        Sets the metadata for the element.
        Parameters:
        metadata - The Metadata to associate with the element.