Class Document

    • Constructor Detail

      • Document

        public Document()
    • Method Detail

      • lang

        public Document 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 Document 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 Document 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 Document 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 Document 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 Document 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 Document 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 Document 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 Document 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 Document 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.
      • getExtracted

        public Boolean getExtracted()
        Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.
        Returns:
        Whether this document has been identified as "extracted".
      • setExtracted

        public void setExtracted​(Boolean extracted)
        Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.
        Parameters:
        extracted - Whether this document has been identified as "extracted".
      • extracted

        public Document extracted​(Boolean extracted)
        Build up this document with an extracted flag.
        Parameters:
        extracted - The extracted flag.
        Returns:
        this.
      • getType

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

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

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

        public Document type​(DocumentType type)
        Build up this document with a type.
        Parameters:
        type - The type.
        Returns:
        this.
      • isPlainText

        public boolean isPlainText()
        Whether the text of the document is to be interpreted as plain text (as opposed to XHTML).
        Returns:
        Whether the text of the document is to be interpreted as plain text (as opposed to XHTML).
      • isXhtmlText

        public boolean isXhtmlText()
        Whether the text of the document is to be interpreted as XHTML text (as opposed to plain text).
        Returns:
        Whether the text of the document is to be interpreted as XHTML text (as opposed to plain text).
      • getTextType

        public String getTextType()
        The text type of the document.
        Returns:
        The text type of the document.
      • setTextType

        public void setTextType​(String textType)
        The text type of the document.
        Parameters:
        textType - The text type of the document.
      • textType

        public Document textType​(String textType)
        Build up this document with a text type.
        Parameters:
        textType - The text type.
        Returns:
        this.
      • setKnownType

        public void setKnownType​(DocumentType knownType)
        Set the type of this document from a known enumeration of document types.
        Parameters:
        knownType - the document type.
      • getText

        public String getText()
        The document text.
        Specified by:
        getText in interface HasText
        Returns:
        The document text.
      • setText

        public void setText​(String text)
        The document text.
        Specified by:
        setText in interface HasText
        Parameters:
        text - The document text.
      • text

        public Document text​(String text)
        Build up this document with some text.
        Parameters:
        text - The text.
        Returns:
        this.
      • accept

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

        public void embed​(Document document)
        Embed a document.
        Parameters:
        document - The document to embed.