public class Field extends HypermediaEnabledData
extensionElements, transientProperties| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GedcomxModelVisitor visitor) |
void |
addValue(FieldValue value)
Add a reference to the record value values being used as evidence.
|
Field |
extensionElement(Object element) |
FieldType |
getKnownType()
The known type of the field.
|
URI |
getType()
The type of the field.
|
List<FieldValue> |
getValues()
The set of values for the field.
|
Field |
id(String id)
Build up this object with an id.
|
Field |
link(Link link)
Build up this data with a link.
|
Field |
link(String rel,
URI href)
Build up this data with a link.
|
void |
setKnownType(FieldType type)
The type of the field.
|
void |
setType(URI type)
The type of the field.
|
void |
setValues(List<FieldValue> values)
The set of values for the field.
|
String |
toString()
Provide a simple toString() method.
|
Field |
type(FieldType type)
Build out this field with a type.
|
Field |
type(URI type)
Build out this field with a type.
|
Field |
value(FieldValue value)
Build out this field with a field value.
|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertypublic Field id(String id)
ExtensibleDataid in class ExtensibleDataid - The id.public Field extensionElement(Object element)
extensionElement in class ExtensibleDatapublic Field link(Link link)
HypermediaEnabledDatalink in class HypermediaEnabledDatalink - The link.public Field link(String rel, URI href)
HypermediaEnabledDatalink in class HypermediaEnabledDatarel - The rel.href - The href.public URI getType()
public void setType(URI type)
type - The type of the field.public Field type(URI type)
type - The type.public Field type(FieldType type)
type - The type.public FieldType getKnownType()
public void setKnownType(FieldType type)
type - The type of the field.public List<FieldValue> getValues()
public void setValues(List<FieldValue> values)
values - The set of values for the field.public Field value(FieldValue value)
value - The value.public void addValue(FieldValue value)
value - The value to be added.public void accept(GedcomxModelVisitor visitor)
public String toString()
toString in class ExtensibleDataCopyright © 2016. All rights reserved.