Class Fact

    • Constructor Detail

      • Fact

        public Fact()
        Create a fact.
      • Fact

        public Fact​(FactType factType,
                    String value)
        Create a fact with the passed in type and values.
        Parameters:
        factType - the fact type.
        value - The value as supplied by the user.
      • Fact

        public Fact​(FactType factType,
                    String date,
                    String place)
        Create a date/place fact with the passed in type and values.
        Parameters:
        factType - the fact type.
        date - The date of applicability of this fact.
        place - The place of applicability of this fact.
      • Fact

        public Fact​(FactType factType,
                    Date date,
                    PlaceReference place)
        Create a date/place fact with the passed in type and values.
        Parameters:
        factType - the fact type.
        date - The date of applicability of this fact.
        place - The place of applicability of this fact.
      • Fact

        public Fact​(FactType factType,
                    Date date,
                    PlaceReference place,
                    String value)
        Create a date/place fact with the passed in type and values.
        Parameters:
        factType - the fact type.
        date - The date of applicability of this fact.
        place - The place of applicability of this fact.
        value - The value as supplied by the user.
    • Method Detail

      • id

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

        public Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 Fact 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 fact.
        Returns:
        The type of the fact.
      • setType

        public void setType​(URI type)
        The type of the fact.
        Parameters:
        type - The type of the fact.
      • type

        public Fact type​(URI type)
        Build up this fact with a type.
        Parameters:
        type - The type.
        Returns:
        this
      • type

        public Fact type​(FactType type)
        Build up this fact with a type.
        Parameters:
        type - The type.
        Returns:
        this
      • getKnownType

        public FactType getKnownType()
        The enum referencing the known type of the fact, or FactType.OTHER if not known.
        Returns:
        The enum referencing the known type of the fact, or FactType.OTHER if not known.
      • setKnownType

        public void setKnownType​(FactType knownType)
        Set the type of this fact from a known enumeration of fact types.
        Parameters:
        knownType - the fact type.
      • getPrimary

        public Boolean getPrimary()
        Indicator of whether this fact is the "primary" fact of the record from which the subject was extracted. Applicable only to extracted persons/relationships. The meaning of this flag outside the scope of an extracted subject is undefined.
        Returns:
        Whether this fact is the primary fact of the record from which the subject was extracted.
      • setPrimary

        public void setPrimary​(Boolean primary)
        Indicator of whether this fact is the "primary" fact of the record from which the subject was extracted. Applicable only to extracted persons/relationships. The meaning of this flag outside the scope of an extracted subject is undefined.
        Parameters:
        primary - Whether this fact is the primary fact of the record from which the subject was extracted.
      • primary

        public Fact primary​(Boolean primary)
        Build up this fact with a 'primary' flag.
        Parameters:
        primary - The primary flag.
        Returns:
        this.
      • getDate

        public Date getDate()
        The date of applicability of this fact.
        Specified by:
        getDate in interface HasDateAndPlace
        Returns:
        The date of applicability of this fact.
      • setDate

        public void setDate​(Date date)
        The date of applicability of this fact.
        Specified by:
        setDate in interface HasDateAndPlace
        Parameters:
        date - The date of applicability of this fact.
      • date

        public Fact date​(Date date)
        Build up this fact with a date.
        Parameters:
        date - the date.
        Returns:
        this.
      • getPlace

        public PlaceReference getPlace()
        The place of applicability of this fact.
        Specified by:
        getPlace in interface HasDateAndPlace
        Returns:
        The place of applicability of this fact.
      • setPlace

        public void setPlace​(PlaceReference place)
        The place of applicability of this fact.
        Specified by:
        setPlace in interface HasDateAndPlace
        Parameters:
        place - The place of applicability of this fact.
      • place

        public Fact place​(PlaceReference place)
        Build up this fact with a place.
        Parameters:
        place - The place.
        Returns:
        this.
      • getValue

        public String getValue()
        The value as supplied by the user.
        Returns:
        The value as supplied by the user.
      • setValue

        public void setValue​(String value)
        The value as supplied by the user.
        Parameters:
        value - The value as supplied by the user.
      • value

        public Fact value​(String value)
        Build up this fact with a value.
        Parameters:
        value - The value.
        Returns:
        this.
      • qualifiers

        public Stream<Qualifier> qualifiers()
        Create a stream for the qualifiers.
        Returns:
        a stream for the qualifiers.
      • getQualifiers

        public List<Qualifier> getQualifiers()
        The qualifiers associated with this fact.
        Returns:
        The qualifiers associated with this fact.
      • setQualifiers

        public void setQualifiers​(List<Qualifier> qualifiers)
        Set the qualifiers associated with this fact.
        Parameters:
        qualifiers - qualifiers to associate with this fact.
      • qualifier

        public Fact qualifier​(Qualifier qualifier)
        Build up this fact with a qualifier.
        Parameters:
        qualifier - The qualifier.
        Returns:
        this.
      • addQualifier

        public void addQualifier​(Qualifier qualifier)
        Add a qualifier.
        Parameters:
        qualifier - The qualifier.
      • 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 Fact field​(Field field)
        Build up this fact with a field.
        Parameters:
        field - The field.
        Returns:
        this.
      • addField

        public void addField​(Field field)
        Add a reference to the record field values being used as evidence.
        Parameters:
        field - The field to be added.
      • accept

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