/** * Build up this document with an extracted flag. * @param extracted The extracted flag. * @return this. */ public Document extracted(Boolean extracted) { setExtracted(extracted); return this; }
/** * Build up this document with a type. * * @param type The type. * @return this. */ public Document type(DocumentType type) { setKnownType(type); return this; }
/** * Build up this document with some text. * * @param text The text. * @return this. */ public Document text(String text) { setText(text); return this; }
/** * Build up this document with a type. * * @param type The type. * @return this. */ public Document type(URI type) { setType(type); return this; }
/** * Build up this document with a text type. * * @param textType The text type. * @return this. */ public Document textType(String textType) { setTextType(textType); return this; }
/** * Add a reference to the analysis for this conclusion. * * @param analysis The analysis. * @return this. */ public Conclusion analysis(Document analysis) { if (analysis.getId() == null) { throw new IllegalArgumentException("Cannot reference analysis: no id."); } return analysis(URI.create("#" + analysis.getId())); }
/** * The enum referencing the known type of the document, or {@link org.gedcomx.types.DocumentType#OTHER} if not known. * * @return The enum referencing the known type of the document, or {@link org.gedcomx.types.DocumentType#OTHER} if not known. */ @XmlTransient @JsonIgnore @org.codehaus.jackson.annotate.JsonIgnore public org.gedcomx.types.DocumentType getKnownType() { return getType() == null ? null : DocumentType.fromQNameURI(getType()); }
for (Document document : documents) { if (document != null) { document.accept(this);
/** * Set the type of this document from a known enumeration of document types. * * @param knownType the document type. */ @JsonIgnore @org.codehaus.jackson.annotate.JsonIgnore public void setKnownType(org.gedcomx.types.DocumentType knownType) { setType(knownType == null ? null : knownType.toQNameURI()); }