Class Gender

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

public class Gender extends Conclusion implements HasFields
A gender conclusion.
Author:
Ryan Heaton
  • Constructor Details

    • Gender

      public Gender()
      Default constructor.
    • Gender

      public Gender(GenderType type)
      Constructs a new gender object with the passed in type.
      Parameters:
      type - The type of the gender.
    • Gender

      public Gender(Gender copy)
  • Method Details

    • id

      public Gender 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 Gender extensionElement(Object element)
      Overrides:
      extensionElement in class Conclusion
    • link

      public Gender 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.
    • link

      public Gender 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.
    • lang

      public Gender lang(String lang)
      Description copied from class: Conclusion
      Build up this conclusion with a lang.
      Overrides:
      lang in class Conclusion
      Parameters:
      lang - The lang.
      Returns:
      this.
    • confidence

      public Gender confidence(URI confidence)
      Description copied from class: Conclusion
      Build up this conclusion with a confidence level.
      Overrides:
      confidence in class Conclusion
      Parameters:
      confidence - The confidence level.
      Returns:
      this.
    • confidence

      public Gender confidence(ConfidenceLevel confidence)
      Description copied from class: Conclusion
      Build up this conclusion with a confidence level.
      Overrides:
      confidence in class Conclusion
      Parameters:
      confidence - The confidence level.
      Returns:
      this.
    • source

      public Gender source(SourceReference sourceReference)
      Description copied from class: Conclusion
      Build up this conclusion with a source reference.
      Overrides:
      source in class Conclusion
      Parameters:
      sourceReference - The source reference.
      Returns:
      this.
    • source

      public Gender source(SourceDescription source)
      Description copied from class: Conclusion
      Build up this conclusion with a source reference.
      Overrides:
      source in class Conclusion
      Parameters:
      source - The source description being referenced.
      Returns:
      this.
    • note

      public Gender note(Note note)
      Description copied from class: Conclusion
      Build up this conclusion with a note.
      Overrides:
      note in class Conclusion
      Parameters:
      note - The note.
      Returns:
      this.
    • attribution

      public Gender attribution(Attribution attribution)
      Description copied from class: Conclusion
      Build up this conclusion with attribution.
      Overrides:
      attribution in class Conclusion
      Parameters:
      attribution - The attribution.
      Returns:
      this.
    • analysis

      public Gender analysis(ResourceReference analysis)
      Description copied from class: Conclusion
      Add a reference to the analysis for this conclusion.
      Overrides:
      analysis in class Conclusion
      Parameters:
      analysis - The analysis.
      Returns:
      this.
    • analysis

      public Gender analysis(Document analysis)
      Description copied from class: Conclusion
      Add a reference to the analysis for this conclusion.
      Overrides:
      analysis in class Conclusion
      Parameters:
      analysis - The analysis.
      Returns:
      this.
    • analysis

      public Gender analysis(URI analysis)
      Description copied from class: Conclusion
      Add a reference to the analysis for this conclusion.
      Overrides:
      analysis in class Conclusion
      Parameters:
      analysis - The analysis.
      Returns:
      this.
    • sortKey

      public Gender sortKey(String sortKey)
      Description copied from class: Conclusion
      Build up this fact with a sort key.
      Overrides:
      sortKey in class Conclusion
      Parameters:
      sortKey - The sort key.
      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 Gender type(URI type)
      Build up this gender with a type.
      Parameters:
      type - The type.
      Returns:
      this.
    • type

      public Gender type(GenderType type)
      Build up this gender with a type.
      Parameters:
      type - The type.
      Returns:
      this.
    • getKnownType

      public GenderType getKnownType()
      The known type of the gender.
      Returns:
      The type of the gender.
    • setKnownType

      public void setKnownType(GenderType type)
      The type of the gender.
      Parameters:
      type - The type of the gender.
    • getFields

      public List<Field> getFields()
      Get the fields being used as evidence.
      Specified by:
      getFields in interface HasFields
      Returns:
      The references to the record fields being used as evidence.
    • setFields

      public void setFields(List<Field> fields)
      Set the list of fields being used as evidence.
      Specified by:
      setFields in interface HasFields
      Parameters:
      fields - - List of fields
    • field

      public Gender field(Field field)
      Build up this gender with a field.
      Parameters:
      field - The field.
      Returns:
      this.
    • addField

      public void addField(Field field)
      Add a record field being used as evidence.
      Parameters:
      field - The evidence to be added.
    • toString

      public String toString()
      Description copied from class: Conclusion
      Provide a simple toString() method.
      Overrides:
      toString in class Conclusion
    • accept

      public void accept(GedcomxModelVisitor visitor)
      Accept a visitor.
      Parameters:
      visitor - The visitor.