|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.source.SourceCitation
public class SourceCitation
Represents a source citation.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
SourceCitation()
|
|
| Method Summary | |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor. |
void |
addField(CitationField field)
Add a reference to the citation fields. |
SourceCitation |
citationTemplate(ResourceReference citationTemplate)
Build out this source citation with a template. |
SourceCitation |
field(CitationField fields)
Build out this citation with a field. |
ResourceReference |
getCitationTemplate()
A reference to the citation template for this citation. |
List<CitationField> |
getFields()
The list of citation fields. |
String |
getLang()
The language of the citation. |
String |
getValue()
A rendering (as a string) of a source citation. |
SourceCitation |
id(String id)
Build up this object with an id. |
SourceCitation |
lang(String lang)
Build out this source citation with a lang. |
SourceCitation |
link(Link link)
Build up this data with a link. |
SourceCitation |
link(String rel,
URI href)
Build up this data with a link. |
void |
setCitationTemplate(ResourceReference citationTemplate)
A reference to the citation template for this citation. |
void |
setFields(List<CitationField> fields)
The list of citation fields. |
void |
setLang(String lang)
The language of the citation. |
void |
setValue(String value)
A rendering (as a string) of a source citation. |
SourceCitation |
value(String value)
Build out this source citation with a value. |
| Methods inherited from class org.gedcomx.links.HypermediaEnabledData |
|---|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks |
| Methods inherited from class org.gedcomx.common.ExtensibleData |
|---|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SourceCitation()
| Method Detail |
|---|
public SourceCitation id(String id)
ExtensibleData
id in class ExtensibleDataid - The id.public SourceCitation link(Link link)
HypermediaEnabledData
link in class HypermediaEnabledDatalink - The link.
public SourceCitation link(String rel,
URI href)
HypermediaEnabledData
link in class HypermediaEnabledDatarel - The rel.href - The href.
public String getLang()
public void setLang(String lang)
lang - The language of the citation.public SourceCitation lang(String lang)
lang - The lang.
public String getValue()
public void setValue(String value)
value - A rendering (as a string) of a source citation. This rendering should be the most complete rendering available.public SourceCitation value(String value)
value - The value.
public ResourceReference getCitationTemplate()
public void setCitationTemplate(ResourceReference citationTemplate)
citationTemplate - A reference to the citation template for this citation.public SourceCitation citationTemplate(ResourceReference citationTemplate)
citationTemplate - The template.
public List<CitationField> getFields()
public void setFields(List<CitationField> fields)
fields - The list of citation fields.public SourceCitation field(CitationField fields)
fields - The field.
public void addField(CitationField field)
field - The field to be added.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||