|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.conclusion.Conclusion
org.gedcomx.conclusion.Document
public class Document
An abstract document that contains derived (conclusionary) text -- for example, a transcription or researcher analysis.
| Field Summary | |
|---|---|
static String |
TEXT_TYPE_PLAIN
|
static String |
TEXT_TYPE_XHTML
|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
Document()
|
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class org.gedcomx.conclusion.Conclusion |
|---|
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, toString |
| Methods inherited from class org.gedcomx.links.HypermediaEnabledData |
|---|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks |
| Methods inherited from class org.gedcomx.common.ExtensibleData |
|---|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.gedcomx.common.Attributable |
|---|
getAttribution, setAttribution |
| Field Detail |
|---|
public static final String TEXT_TYPE_PLAIN
public static final String TEXT_TYPE_XHTML
| Constructor Detail |
|---|
public Document()
| Method Detail |
|---|
public Document id(String id)
ExtensibleData
id in class Conclusionid - The id.
public Document link(String rel,
URI href)
HypermediaEnabledData
link in class Conclusionrel - The rel.href - The href.
public Document link(Link link)
HypermediaEnabledData
link in class Conclusionlink - The link.
public Document lang(String lang)
Conclusion
lang in class Conclusionlang - The lang.
public Document confidence(URI confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Document confidence(ConfidenceLevel confidence)
Conclusion
confidence in class Conclusionconfidence - The confidence level.
public Document source(SourceReference sourceReference)
Conclusion
source in class ConclusionsourceReference - The source reference.
public Document source(SourceDescription source)
Conclusion
source in class Conclusionsource - The source description being referenced.
public Document note(Note note)
Conclusion
note in class Conclusionnote - The note.
public Document attribution(Attribution attribution)
Conclusion
attribution in class Conclusionattribution - The attribution.
public Document analysis(ResourceReference analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Document analysis(Document analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Document analysis(URI analysis)
Conclusion
analysis in class Conclusionanalysis - The analysis.
public Document sortKey(String sortKey)
Conclusion
sortKey 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()
getText in interface HasTextpublic void setText(String text)
setText in interface HasTexttext - The document 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||