Class Attribution

  • All Implemented Interfaces:
    HasTransientProperties, SupportsExtensionElements

    public class Attribution
    extends ExtensibleData
    Attribution for genealogical information. Attribution is used to model who is contributing/modifying information, when they contributed it, and why they are making the contribution/modification.
    • Constructor Detail

      • Attribution

        public Attribution()
    • Method Detail

      • getContributor

        public ResourceReference getContributor()
        Reference to the contributor of the attributed data.
        Returns:
        Reference to the contributor of the attributed data.
      • setContributor

        public void setContributor​(ResourceReference contributor)
        Reference to the contributor of the attributed data.
        Parameters:
        contributor - Reference to the contributor of the attributed data.
      • contributor

        public Attribution contributor​(ResourceReference contributor)
        Build up this attribution with a contributor.
        Parameters:
        contributor - The contributor.
        Returns:
        this.
      • contributor

        public Attribution contributor​(URI contributor)
        Build up this attribution with a contributor.
        Parameters:
        contributor - The contributor.
        Returns:
        this.
      • contributor

        public Attribution contributor​(Agent agent)
        Build up this attribution with a contributor.
        Parameters:
        agent - The contributor.
        Returns:
        this.
      • getCreator

        public ResourceReference getCreator()
        Reference to the creator of the attributed data. The creator might be different from the contributor if the attributed data has been modified since it was created.
        Returns:
        Reference to the creator of the attributed data.
      • setCreator

        public void setCreator​(ResourceReference creator)
        Reference to the creator of the attributed data. The creator might be different from the contributor if the attributed data has been modified since it was created.
        Parameters:
        creator - Reference to the creator of the attributed data.
      • creator

        public Attribution creator​(ResourceReference creator)
        Build up this attribution with a creator.
        Parameters:
        creator - The creator.
        Returns:
        this.
      • creator

        public Attribution creator​(URI creator)
        Build up this attribution with a creator.
        Parameters:
        creator - The creator.
        Returns:
        this.
      • creator

        public Attribution creator​(Agent agent)
        Build up this attribution with a creator.
        Parameters:
        agent - The creator.
        Returns:
        this.
      • getModified

        public Date getModified()
        The modified timestamp for the attributed data.
        Returns:
        The modified timestamp for the attributed data.
      • setModified

        public void setModified​(Date modified)
        The modified timestamp for the attributed data.
        Parameters:
        modified - The modified timestamp for the attributed data.
      • modified

        public Attribution modified​(Date modified)
        Build up this attribution with a modified date.
        Parameters:
        modified - The modified date.
        Returns:
        this.
      • getCreated

        public Date getCreated()
        The created timestamp for the attributed data.
        Returns:
        The created timestamp for the attributed data.
      • setCreated

        public void setCreated​(Date created)
        The created timestamp for the attributed data.
        Parameters:
        created - The created timestamp for the attributed data.
      • created

        public Attribution created​(Date created)
        Build up this attribution with a created date.
        Parameters:
        created - The created date.
        Returns:
        this.
      • getChangeMessage

        public String getChangeMessage()
        The "change message" for the attributed data provided by the contributor.
        Returns:
        The "change message" for the attributed data provided by the contributor.
      • setChangeMessage

        public void setChangeMessage​(String changeMessage)
        The "change message" for the attributed data provided by the contributor.
        Parameters:
        changeMessage - The "change message" for the attributed data provided by the contributor.
      • changeMessage

        public Attribution changeMessage​(String changeMessage)
        Build up this attribution with a change message.
        Parameters:
        changeMessage - The change message.
        Returns:
        this.
      • getChangeMessageResource

        public URI getChangeMessageResource()
        A reference to the change message for the attributed data provided by the contributor.
        Returns:
        A reference to the change message for the attributed data provided by the contributor.
      • setChangeMessageResource

        public void setChangeMessageResource​(URI changeMessageResource)
        A reference to the change message for the attributed data provided by the contributor.
        Parameters:
        changeMessageResource - A reference to the change message for the attributed data provided by the contributor.
      • changeMessageResource

        public Attribution changeMessageResource​(URI changeMessageResource)
        Build up this attribution with a change message resource.
        Parameters:
        changeMessageResource - The change message resource.
        Returns:
        this.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object