|
||||||||||
| 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.records.Field
public class Field
A field of a record.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
Field()
|
|
| Method Summary | |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
|
void |
addValue(FieldValue value)
Add a reference to the record value values being used as evidence. |
FieldType |
getKnownType()
The known type of the field. |
URI |
getType()
The type of the gender. |
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 gender. |
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. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Field()
| Method Detail |
|---|
public Field id(String id)
ExtensibleData
id in class ExtensibleDataid - The id.public Field link(Link link)
HypermediaEnabledData
link in class HypermediaEnabledDatalink - The link.
public Field link(String rel,
URI href)
HypermediaEnabledData
link in class HypermediaEnabledDatarel - The rel.href - The href.
public URI getType()
public void setType(URI type)
type - The type of the gender.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 ExtensibleData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||