/** * Create a date/place fact with the passed in type and values. * * @param factType the fact type. * @param date The date of applicability of this fact. * @param place The place of applicability of this fact. */ public Fact(FactType factType, String date, String place) { this(factType, new Date().original(date), new PlaceReference().original(place), null); }
/** * Build out this relationship with a reference to person 1. * * @param person1 person 1. * @return this. */ public Relationship person1(ResourceReference person1) { setPerson1(person1); return this; }
public Name(String fullText, NamePart... parts) { addNameForm(new NameForm(fullText, parts)); }
/** * Build up this identifier with a type. * @param type The type. * @return this. */ public Identifier type(IdentifierType type) { setKnownType(type); return this; }
/** * Build up this subject with an identifier. * * @param identifier The identifier. * @return this. */ public Subject identifier(Identifier identifier) { addIdentifier(identifier); return this; }
/** * Build up this event with a type. * * @param type The type of the event. * @return this. */ public Event type(org.gedcomx.types.EventType type) { setKnownType(type); return this; }
/** * Build up this conclusion with attribution. * * @param attribution The attribution. * @return this. */ public Conclusion attribution(Attribution attribution) { setAttribution(attribution); return this; }
/** * Build up this gender with a field. * * @param field The field. * @return this. */ public Gender field(Field field) { addField(field); return this; }
/** * Build out this name part with a type. * * @param type The type. * @return this. */ public NamePart type(URI type) { setType(type); return this; }
/** * Build up this fact with a type. * * @param type The type. * @return this */ public Fact type(URI type) { setType(type); return this; }
/** * Build up this fact with a date. * * @param date the date. * @return this. */ public Fact date(Date date) { setDate(date); return this; }
/** * Build up this fact with a field. * * @param field The field. * @return this. */ public Fact field(Field field) { addField(field); return this; }
/** * Build out this place with a display exension. * * @param display the display. * @return this */ public PlaceDescription displayExtension(PlaceDisplayProperties display) { setDisplayExtension(display); 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 a text type. * * @param textType The text type. * @return this. */ public Document textType(String textType) { setTextType(textType); return this; }
/** * Build up this document with some text. * * @param text The text. * @return this. */ public Document text(String text) { setText(text); return this; }