public class Document extends Conclusion implements HasText, Attributable
| Modifier and Type | Field and Description |
|---|---|
static String |
TEXT_TYPE_PLAIN |
static String |
TEXT_TYPE_XHTML |
extensionElements, transientProperties| Constructor and Description |
|---|
Document() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(GedcomxModelVisitor visitor)
Accept a visitor.
|
Document |
analysis(Document analysis)
Add a reference to the analysis for this conclusion.
|
Document |
analysis(ResourceReference analysis)
Add a reference to the analysis for this conclusion.
|
Document |
analysis(URI analysis)
Add a reference to the analysis for this conclusion.
|
Document |
attribution(Attribution attribution)
Build up this conclusion with attribution.
|
Document |
confidence(ConfidenceLevel confidence)
Build up this conclusion with a confidence level.
|
Document |
confidence(URI confidence)
Build up this conclusion with a confidence level.
|
void |
embed(Document document)
Embed a document.
|
Document |
extensionElement(Object element) |
Document |
extracted(Boolean extracted)
Build up this document with an extracted flag.
|
Boolean |
getExtracted()
Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.
|
DocumentType |
getKnownType()
The enum referencing the known type of the document, or
DocumentType.OTHER if not known. |
String |
getText()
The document text.
|
String |
getTextType()
The text type of the document.
|
URI |
getType()
The type of the document.
|
Document |
id(String id)
Build up this object with an id.
|
boolean |
isPlainText()
Whether the text of the document is to be interpreted as plain text (as opposed to XHTML).
|
boolean |
isXhtmlText()
Whether the text of the document is to be interpreted as XHTML text (as opposed to plain text).
|
Document |
lang(String lang)
Build up this conclusion with a lang.
|
Document |
link(Link link)
Build up this data with a link.
|
Document |
link(String rel,
URI href)
Build up this data with a link.
|
Document |
note(Note note)
Build up this conclusion with a note.
|
void |
setExtracted(Boolean extracted)
Whether this document has been identified as "extracted", meaning it captures information extracted from a single source.
|
void |
setKnownType(DocumentType knownType)
Set the type of this document from a known enumeration of document types.
|
void |
setText(String text)
The document text.
|
void |
setTextType(String textType)
The text type of the document.
|
void |
setType(URI type)
The type of the document.
|
Document |
sortKey(String sortKey)
Build up this fact with a sort key.
|
Document |
source(SourceDescription source)
Build up this conclusion with a source reference.
|
Document |
source(SourceReference sourceReference)
Build up this conclusion with a source reference.
|
Document |
text(String text)
Build up this document with some text.
|
Document |
textType(String textType)
Build up this document with a text type.
|
Document |
type(DocumentType type)
Build up this document with a type.
|
Document |
type(URI type)
Build up this document with a type.
|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, toStringaddLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribution, setAttributionpublic static final String TEXT_TYPE_PLAIN
public static final String TEXT_TYPE_XHTML
public Document id(String id)
ExtensibleDataid in class Conclusionid - The id.public Document extensionElement(Object element)
extensionElement in class Conclusionpublic Document link(String rel, URI href)
HypermediaEnabledDatalink in class Conclusionrel - The rel.href - The href.public Document link(Link link)
HypermediaEnabledDatalink in class Conclusionlink - The link.public Document lang(String lang)
Conclusionlang in class Conclusionlang - The lang.public Document confidence(URI confidence)
Conclusionconfidence in class Conclusionconfidence - The confidence level.public Document confidence(ConfidenceLevel confidence)
Conclusionconfidence in class Conclusionconfidence - The confidence level.public Document source(SourceReference sourceReference)
Conclusionsource in class ConclusionsourceReference - The source reference.public Document source(SourceDescription source)
Conclusionsource in class Conclusionsource - The source description being referenced.public Document note(Note note)
Conclusionnote in class Conclusionnote - The note.public Document attribution(Attribution attribution)
Conclusionattribution in class Conclusionattribution - The attribution.public Document analysis(ResourceReference analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Document analysis(Document analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Document analysis(URI analysis)
Conclusionanalysis in class Conclusionanalysis - The analysis.public Document sortKey(String sortKey)
ConclusionsortKey in class ConclusionsortKey - The sort key.public Boolean getExtracted()
public void setExtracted(Boolean extracted)
extracted - Whether this document has been identified as "extracted".public Document extracted(Boolean extracted)
extracted - The extracted flag.public URI getType()
public void setType(URI type)
type - The type of the document.public Document type(URI type)
type - The type.public Document type(DocumentType type)
type - The type.public boolean isPlainText()
public boolean isXhtmlText()
public String getTextType()
public void setTextType(String textType)
textType - The text type of the document.public Document textType(String textType)
textType - The text type.public DocumentType getKnownType()
DocumentType.OTHER if not known.DocumentType.OTHER if not known.public void setKnownType(DocumentType knownType)
knownType - the document type.public String getText()
public void setText(String text)
public Document text(String text)
text - The text.public void accept(GedcomxModelVisitor visitor)
visitor - The visitor.public void embed(Document document)
document - The document to embed.Copyright © 2016. All rights reserved.