Class Entity

  • Direct Known Subclasses:
    Agent, Article, Collection, DigitalObject, Expression, GeoLocation, Item, Manifestation, Project, Topic, Website, Work

    public class Entity
    extends Identifiable
    Entities are uniquely identifiable objects, often also uniquely identifiable outside of this technical system - by additionally having unique identifiers of other systems (like GND-Id, VIAF-ID, etc.). An entity is of a specific entity type, like e.g. cultural object, item, manifestation, work, digital object, person, corporation.

    Bibliographic entity types for example are defined in the “Functional Requirements for Bibliographic Records” (FRBR; deutsch ‚Funktionale Anforderungen an bibliographische Datensätze‘): see Wikipedia “Functional Requirements for Bibliographic Records”, URLs:

    https://de.wikipedia.org/wiki/Functional_Requirements_for_Bibliographic_Records https://en.wikipedia.org/wiki/Functional_Requirements_for_Bibliographic_Records

    • Field Detail

      • navDate

        protected LocalDate navDate
        A "navigable" date, required when you need to the display the digital object on a timeline.
      • refId

        protected long refId
    • Constructor Detail

      • Entity

        public Entity()
    • Method Detail

      • getCustomAttribute

        public Object getCustomAttribute​(String attributeName)
        Parameters:
        attributeName - attribute name of custom attribute
        Returns:
        value of custom attribute or null
      • getCustomAttributes

        public CustomAttributes getCustomAttributes()
        Returns:
        custom attributes
      • getNavDate

        public LocalDate getNavDate()
        Returns:
        a date for "navigation" purposes, e.g. a timeline
      • getRefId

        public long getRefId()
        Get the system wide unique reference id. Makes it possible to create very short permanent URIs by using a number.
        Returns:
        system wide unique entity reference id
      • init

        protected void init()
        Description copied from class: UniqueObject
        Use to initialize member variables, used by default constructor and builder
        Overrides:
        init in class Identifiable
      • setCustomAttribute

        public void setCustomAttribute​(String attributeName,
                                       Object attributeValue)
        Sets custom Attribute of given name to given value (overwriting existing value).
        Parameters:
        attributeName - name of custom attribute
        attributeValue - value of custom attibute
      • setCustomAttributes

        public void setCustomAttributes​(CustomAttributes customAttributes)
        Set custom attributes (name, value).
        Parameters:
        customAttributes - custom attributes to be set
      • setNavDate

        public void setNavDate​(LocalDate navDate)
        Sets the "navigation" date
        Parameters:
        navDate - the "navigation" date
      • setRefId

        public void setRefId​(long refId)
        Parameters:
        refId - system wide unique entity reference id.