Package org.gedcomx.common
Class Attribution
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.common.Attribution
- All Implemented Interfaces:
HasTransientProperties,SupportsExtensionElements
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.
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeMessage(String changeMessage) Build up this attribution with a change message.changeMessageResource(URI changeMessageResource) Build up this attribution with a change message resource.contributor(Agent agent) Build up this attribution with a contributor.contributor(ResourceReference contributor) Build up this attribution with a contributor.contributor(URI contributor) Build up this attribution with a contributor.Build up this attribution with a created date.Build up this attribution with a creator.creator(ResourceReference creator) Build up this attribution with a creator.Build up this attribution with a creator.booleanextensionElement(Object element) The "change message" for the attributed data provided by the contributor.A reference to the change message for the attributed data provided by the contributor.Reference to the contributor of the attributed data.The created timestamp for the attributed data.Reference to the creator of the attributed data.The modified timestamp for the attributed data.inthashCode()Build up this object with an id.Build up this attribution with a modified date.voidsetChangeMessage(String changeMessage) The "change message" for the attributed data provided by the contributor.voidsetChangeMessageResource(URI changeMessageResource) A reference to the change message for the attributed data provided by the contributor.voidsetContributor(ResourceReference contributor) Reference to the contributor of the attributed data.voidsetCreated(Date created) The created timestamp for the attributed data.voidsetCreator(ResourceReference creator) Reference to the creator of the attributed data.voidsetModified(Date modified) The modified timestamp for the attributed data.toString()Provide a simple toString() method.Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty
-
Constructor Details
-
Attribution
public Attribution() -
Attribution
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
getContributor
Reference to the contributor of the attributed data.- Returns:
- Reference to the contributor of the attributed data.
-
setContributor
Reference to the contributor of the attributed data.- Parameters:
contributor- Reference to the contributor of the attributed data.
-
contributor
Build up this attribution with a contributor.- Parameters:
contributor- The contributor.- Returns:
- this.
-
contributor
Build up this attribution with a contributor.- Parameters:
contributor- The contributor.- Returns:
- this.
-
contributor
Build up this attribution with a contributor.- Parameters:
agent- The contributor.- Returns:
- this.
-
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
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
Build up this attribution with a creator.- Parameters:
creator- The creator.- Returns:
- this.
-
creator
Build up this attribution with a creator.- Parameters:
creator- The creator.- Returns:
- this.
-
creator
Build up this attribution with a creator.- Parameters:
agent- The creator.- Returns:
- this.
-
getModified
The modified timestamp for the attributed data.- Returns:
- The modified timestamp for the attributed data.
-
setModified
The modified timestamp for the attributed data.- Parameters:
modified- The modified timestamp for the attributed data.
-
modified
Build up this attribution with a modified date.- Parameters:
modified- The modified date.- Returns:
- this.
-
getCreated
The created timestamp for the attributed data.- Returns:
- The created timestamp for the attributed data.
-
setCreated
The created timestamp for the attributed data.- Parameters:
created- The created timestamp for the attributed data.
-
created
Build up this attribution with a created date.- Parameters:
created- The created date.- Returns:
- this.
-
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
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
Build up this attribution with a change message.- Parameters:
changeMessage- The change message.- Returns:
- this.
-
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
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
Build up this attribution with a change message resource.- Parameters:
changeMessageResource- The change message resource.- Returns:
- this.
-
toString
Provide a simple toString() method.- Overrides:
toStringin classExtensibleData
-
equals
-
hashCode
public int hashCode()
-