Direct Known Subclasses:
Agent, Article, Collection, DigitalObject, Event, 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 Details

    • customAttributes

      protected CustomAttributes customAttributes
    • refId

      protected long refId
    • notes

      protected List<LocalizedStructuredContent> notes
  • Constructor Details

    • Entity

      public Entity()
  • Method Details

    • addNotes

      public void addNotes(LocalizedStructuredContent... notesToAdd)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Identifiable
    • 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
    • getEntityType

      @Deprecated(forRemoval=true, since="10.0.0") public EntityType getEntityType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the type of the entity (one of the types this system can manage, defined in enum EntityType).
    • getNavDate

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

      public List<LocalizedStructuredContent> getNotes()
      Arbitrary notes and remarks
    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Identifiable
    • 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
    • setNotes

      public void setNotes(List<LocalizedStructuredContent> notes)
    • setRefId

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