public class PlaceReference extends ExtensibleData implements HasFields
extensionElements, transientProperties| Constructor and Description |
|---|
PlaceReference() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor.
|
void |
addField(Field field)
Add a reference to the record field values being used as evidence.
|
void |
addNormalizedExtension(TextValue normalized)
Add a normalized value.
|
PlaceReference |
description(PlaceDescription description)
Build out this place reference with a reference to a place description.
|
PlaceReference |
description(URI ref)
Build out this place reference with a reference to a place description.
|
PlaceReference |
field(Field field)
Build out this place reference with a field.
|
URI |
getDescriptionRef()
A reference to a description of the place being referenced.
|
List<Field> |
getFields()
Get the fields being used as evidence.
|
List<TextValue> |
getNormalizedExtensions()
The list of normalized values for the place, provided for display purposes by the application.
|
String |
getOriginal()
The original value as supplied by the user.
|
PlaceReference |
normalized(String normalized)
Build out this place reference with an normalized string.
|
PlaceReference |
original(String original)
Build out this place reference with an original string.
|
void |
setDescriptionRef(URI descriptionRef)
A reference to a description of the place being referenced.
|
void |
setFields(List<Field> fields)
Set the list of fields being used as evidence.
|
void |
setNormalizedExtensions(List<TextValue> normalized)
The list of normalized values for the place, provided for display purposes by the application.
|
void |
setOriginal(String original)
The original value as supplied by the user.
|
String |
toString()
Provide a simple toString() method.
|
addExtensionElement, embed, extensionElement, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, id, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertypublic String getOriginal()
public void setOriginal(String original)
original - The original value as supplied by the user.public PlaceReference original(String original)
original - The original string.public URI getDescriptionRef()
public void setDescriptionRef(URI descriptionRef)
descriptionRef - A reference to a description of the place being referenced.public PlaceReference description(PlaceDescription description)
description - The reference to the place description.public PlaceReference description(URI ref)
ref - The reference to the place description.public List<TextValue> getNormalizedExtensions()
public void setNormalizedExtensions(List<TextValue> normalized)
normalized - The list of normalized values for the place, provided for display purposes by the application. Normalized values are
not specified by GEDCOM X core, but as extension elements by GEDCOM X RS.public void addNormalizedExtension(TextValue normalized)
normalized - The normalized value.public PlaceReference normalized(String normalized)
normalized - The normalized string.public void addField(Field field)
field - The field to be added.public PlaceReference field(Field field)
field - The field.public String toString()
ExtensibleDatatoString in class ExtensibleDatapublic void accept(GedcomxModelVisitor visitor)
visitor - The visitor.Copyright © 2016. All rights reserved.