/** * Build up this document with a type. * * @param type The type. * @return this. */ public Document type(URI type) { setType(type); return 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()); }