Package org.gedcomx.conclusion
Class Document
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Document
- All Implemented Interfaces:
Attributable,HasNotes,HasText,HasTransientProperties,SupportsLinks,SupportsExtensionElements,ReferencesSources
An abstract document that contains derived (conclusionary) text -- for example, a transcription or researcher analysis.
-
Field Summary
FieldsFields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.analysis(ResourceReference analysis) Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.Add a reference to the analysis for this conclusion.attribution(Attribution attribution) Build up this conclusion with attribution.confidence(URI confidence) Build up this conclusion with a confidence level.confidence(ConfidenceLevel confidence) Build up this conclusion with a confidence level.voidEmbed a document.extensionElement(Object element) Build up this document with an extracted flag.Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.The enum referencing the known type of the document, orDocumentType.OTHERif not known.getText()The document text.The text type of the document.getType()The type of the document.Build up this object with an id.booleanWhether the text of the document is to be interpreted as plain text (as opposed to XHTML).booleanWhether the text of the document is to be interpreted as XHTML text (as opposed to plain text).Build up this conclusion with a lang.Build up this data with a link.Build up this data with a link.Build up this conclusion with a note.voidsetExtracted(Boolean extracted) Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.voidsetKnownType(DocumentType knownType) Set the type of this document from a known enumeration of document types.voidThe document text.voidsetTextType(String textType) The text type of the document.voidThe type of the document.Build up this fact with a sort key.source(SourceDescription source) Build up this conclusion with a source reference.source(SourceReference sourceReference) Build up this conclusion with a source reference.Build up this document with some text.Build up this document with a text type.Build up this document with a type.type(DocumentType type) Build up this document with a type.Methods inherited from class org.gedcomx.conclusion.Conclusion
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, notes, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sources, toStringMethods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gedcomx.common.Attributable
getAttribution, setAttribution
-
Field Details
-
TEXT_TYPE_PLAIN
- See Also:
-
TEXT_TYPE_XHTML
- See Also:
-
-
Constructor Details
-
Document
public Document() -
Document
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classConclusion
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
lang
Description copied from class:ConclusionBuild up this conclusion with a lang.- Overrides:
langin classConclusion- Parameters:
lang- The lang.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
source- The source description being referenced.- Returns:
- this.
-
note
Description copied from class:ConclusionBuild up this conclusion with a note.- Overrides:
notein classConclusion- Parameters:
note- The note.- Returns:
- this.
-
attribution
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classConclusion- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
sortKey
Description copied from class:ConclusionBuild up this fact with a sort key.- Overrides:
sortKeyin classConclusion- Parameters:
sortKey- The sort key.- Returns:
- this.
-
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
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
Build up this document with an extracted flag.- Parameters:
extracted- The extracted flag.- Returns:
- this.
-
getType
The type of the document.- Returns:
- The type of the document.
-
setType
The type of the document.- Parameters:
type- The type of the document.
-
type
Build up this document with a type.- Parameters:
type- The type.- Returns:
- this.
-
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
The text type of the document.- Returns:
- The text type of the document.
-
setTextType
The text type of the document.- Parameters:
textType- The text type of the document.
-
textType
Build up this document with a text type.- Parameters:
textType- The text type.- Returns:
- this.
-
getKnownType
The enum referencing the known type of the document, orDocumentType.OTHERif not known.- Returns:
- The enum referencing the known type of the document, or
DocumentType.OTHERif not known.
-
setKnownType
Set the type of this document from a known enumeration of document types.- Parameters:
knownType- the document type.
-
getText
The document text. -
setText
The document text. -
text
Build up this document with some text.- Parameters:
text- The text.- Returns:
- this.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
Embed a document.- Parameters:
document- The document to embed.
-