Package org.gedcomx.source
Class SourceCitation
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.source.SourceCitation
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
Represents a source citation.
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidaddField(CitationField field) Add a reference to the citation fields.citationTemplate(ResourceReference citationTemplate) Build out this source citation with a template.booleanextensionElement(Object element) field(CitationField fields) Build out this citation with a field.A reference to the citation template for this citation.The list of citation fields.getLang()The language of the citation.getValue()A rendering (as a string) of a source citation.inthashCode()Build up this object with an id.Build out this source citation with a lang.Build up this data with a link.Build up this data with a link.voidsetCitationTemplate(ResourceReference citationTemplate) A reference to the citation template for this citation.voidsetFields(List<CitationField> fields) The list of citation fields.voidThe language of the citation.voidA rendering (as a string) of a source citation.Build out this source citation with a value.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
SourceCitation
public SourceCitation() -
SourceCitation
-
-
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
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
getLang
The language of the citation. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of the note.
-
setLang
The language of the citation. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of the citation.
-
lang
Build out this source citation with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getValue
A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.- Returns:
- A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
-
setValue
A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.- Parameters:
value- A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.
-
value
Build out this source citation with a value.- Parameters:
value- The value.- Returns:
- this.
-
getCitationTemplate
A reference to the citation template for this citation.- Returns:
- A reference to the citation template for this citation.
-
setCitationTemplate
A reference to the citation template for this citation.- Parameters:
citationTemplate- A reference to the citation template for this citation.
-
citationTemplate
Build out this source citation with a template.- Parameters:
citationTemplate- The template.- Returns:
- this.
-
getFields
The list of citation fields.- Returns:
- The list of citation fields.
-
setFields
The list of citation fields.- Parameters:
fields- The list of citation fields.
-
field
Build out this citation with a field.- Parameters:
fields- The field.- Returns:
- This.
-
addField
Add a reference to the citation fields.- Parameters:
field- The field to be added.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
equals
-
hashCode
public int hashCode()
-