org.gedcomx.records
Class Field

java.lang.Object
  extended by org.gedcomx.common.ExtensibleData
      extended by org.gedcomx.links.HypermediaEnabledData
          extended by org.gedcomx.records.Field
All Implemented Interfaces:
HasTransientProperties, SupportsLinks, SupportsExtensionElements

public class Field
extends HypermediaEnabledData

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

Field

public Field()
Method Detail

id

public Field id(String id)
Description copied from class: ExtensibleData
Build up this object with an id.

Overrides:
id in class ExtensibleData
Parameters:
id - The id.

link

public Field link(Link link)
Description copied from class: HypermediaEnabledData
Build up this data with a link.

Overrides:
link in class HypermediaEnabledData
Parameters:
link - The link.
Returns:
this.

link

public Field link(String rel,
                  URI href)
Description copied from class: HypermediaEnabledData
Build up this data with a link.

Overrides:
link in class HypermediaEnabledData
Parameters:
rel - The rel.
href - The href.
Returns:
this.

getType

public URI getType()
The type of the gender.

Returns:
The type of the gender.

setType

public void setType(URI type)
The type of the gender.

Parameters:
type - The type of the gender.

type

public Field type(URI type)
Build out this field with a type.

Parameters:
type - The type.
Returns:
this.

type

public Field type(FieldType type)
Build out this field with a type.

Parameters:
type - The type.
Returns:
this.

getKnownType

public FieldType getKnownType()
The known type of the field.

Returns:
The type of the field.

setKnownType

public void setKnownType(FieldType type)
The type of the field.

Parameters:
type - The type of the field.

getValues

public List<FieldValue> getValues()
The set of values for the field.

Returns:
The set of values for the field.

setValues

public void setValues(List<FieldValue> values)
The set of values for the field.

Parameters:
values - The set of values for the field.

value

public Field value(FieldValue value)
Build out this field with a field value.

Parameters:
value - The value.
Returns:
this.

addValue

public void addValue(FieldValue value)
Add a reference to the record value values being used as evidence.

Parameters:
value - The value to be added.

accept

public void accept(GedcomxModelVisitor visitor)

toString

public String toString()
Provide a simple toString() method.

Overrides:
toString in class ExtensibleData


Copyright © 2015. All rights reserved.