Class EntityElementImpl

    • Field Detail

      • uuid

        protected UUID uuid
        The unique identifier of the entity.
      • metadata

        protected Metadata metadata
        The metadata of the entity.
    • Constructor Detail

      • EntityElementImpl

        protected EntityElementImpl()
        Default constructor.
    • Method Detail

      • getID

        public UUID getID()
        Returns the unique identifier (UUID) of the element.

        This UUID is used to uniquely identify the entity instance. It is read-only, mandatory, and cannot be null.

        Specified by:
        getID in interface EntityElement
        Specified by:
        getID in interface IdentifiableElement
        Returns:
        The UUID of the element.
      • getMetadata

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

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

        Metadata is automatically managed by the system and is mandatory.

        Specified by:
        getMetadata in interface EntityElement
        Specified by:
        getMetadata in interface IdentifiableElement
        Returns:
        The Metadata of the element, or null if none is set.