Package org.gedcomx.source
Class CitationField
- java.lang.Object
-
- org.gedcomx.source.CitationField
-
- All Implemented Interfaces:
HasJsonKey
public class CitationField extends Object implements HasJsonKey
Represents a citation field -- its name and value.
-
-
Constructor Summary
Constructors Constructor Description CitationField()CitationField(String name, String value)CitationField(URI name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJsonKey()The json key that is used define this link in a map.URIgetName()The citation field's name.StringgetValue()The citation field's value.booleanisHasUniqueKey()CitationFieldname(URI name)Build out this citation field with a name.CitationFieldnameValue(String name)Build out this citation field with a name.voidsetJsonKey(String jsonKey)The json key that is used define this link in a map.voidsetName(URI name)The citation field's name.voidsetNameValue(String name)The citation field's name.voidsetValue(String value)The citation field's value.CitationFieldvalue(String value)Build out this citation field with a value.
-
-
-
Method Detail
-
isHasUniqueKey
public boolean isHasUniqueKey()
- Specified by:
isHasUniqueKeyin interfaceHasJsonKey
-
getName
public URI getName()
The citation field's name.- Returns:
- The citation field's name.
-
setName
public void setName(URI name)
The citation field's name.- Parameters:
name- The citation field's name.
-
name
public CitationField name(URI name)
Build out this citation field with a name.- Parameters:
name- the name.- Returns:
- this.
-
setNameValue
public void setNameValue(String name)
The citation field's name.- Parameters:
name- The citation field's name.
-
nameValue
public CitationField nameValue(String name)
Build out this citation field with a name.- Parameters:
name- The name.- Returns:
- this.
-
getJsonKey
public String getJsonKey()
The json key that is used define this link in a map.- Specified by:
getJsonKeyin interfaceHasJsonKey- Returns:
- The json key that is used define this link in a map.
-
setJsonKey
public void setJsonKey(String jsonKey)
The json key that is used define this link in a map.- Specified by:
setJsonKeyin interfaceHasJsonKey- Parameters:
jsonKey- The json key that is used define this link in a map.
-
getValue
public String getValue()
The citation field's value.- Returns:
- The citation field's value.
-
setValue
public void setValue(String value)
The citation field's value.- Parameters:
value- The citation field's value.
-
value
public CitationField value(String value)
Build out this citation field with a value.- Parameters:
value- The value.- Returns:
- this.
-
-