Class Field

All Implemented Interfaces:
Attributable, HasNotes, HasTransientProperties, SupportsLinks, SupportsExtensionElements, ReferencesSources

public class Field extends Conclusion
A field of a record.
  • Constructor Details

    • Field

      public Field()
    • Field

      public Field(Field copy)
  • Method Details

    • id

      public Field id(String id)
      Description copied from class: ExtensibleData
      Build up this object with an id.
      Overrides:
      id in class Conclusion
      Parameters:
      id - The id.
      Returns:
      this.
    • extensionElement

      public Field extensionElement(Object element)
      Overrides:
      extensionElement in class Conclusion
    • link

      public Field link(Link link)
      Description copied from class: HypermediaEnabledData
      Build up this data with a link.
      Overrides:
      link in class Conclusion
      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 Conclusion
      Parameters:
      rel - The rel.
      href - The href.
      Returns:
      this.
    • getType

      public URI getType()
      The type of the field.
      Returns:
      The type of the field.
    • setType

      public void setType(URI type)
      The type of the field.
      Parameters:
      type - The type of the field.
    • 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.
    • values

      public Stream<FieldValue> values()
      Create a stream for the values.
      Returns:
      a stream for the values.
    • 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 Conclusion
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object