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

    • 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
      • getEntityType

        public EntityType getEntityType()
        Returns:
        the type of the entity (one of the types this system can manage, defined in enum EntityType).
      • 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
      • 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
      • setEntityType

        public void setEntityType​(EntityType entityType)
        Parameters:
        entityType - the type of the entity
      • setRefId

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