/** * Build up this subject with an evidence reference. * * @param evidence The evidence reference. * @return this. */ public Subject evidence(EvidenceReference evidence) { addEvidence(evidence); 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 subject with a media reference. * * @param media The media reference. * @return this. */ public Subject media(SourceReference media) { addMedia(media); return this; }
public void embed(Relationship relationship) { if (relationship.facts != null) { this.facts = this.facts == null ? new ArrayList<Fact>() : this.facts; this.facts.addAll(relationship.facts); } if (relationship.fields != null) { this.fields = this.fields == null ? new ArrayList<Field>() : this.fields; this.fields.addAll(relationship.fields); } super.embed(relationship); } }
@Override public Relationship analysis(ResourceReference analysis) { return (Relationship) super.analysis(analysis); }
@Override public Event evidence(EvidenceReference evidence) { return (Event) super.evidence(evidence); }
@Override public Relationship confidence(ConfidenceLevel confidence) { return (Relationship) super.confidence(confidence); }
@Override public Relationship extracted(Boolean extracted) { return (Relationship) super.extracted(extracted); }
@Override public Event extensionElement(Object element) { return (Event) super.extensionElement(element); }
@Override public PlaceDescription attribution(Attribution attribution) { return (PlaceDescription) super.attribution(attribution); }
public void embed(ChildAndParentsRelationship relationship) { if (relationship.motherFacts != null) { this.motherFacts = this.motherFacts == null ? new ArrayList<Fact>() : this.motherFacts; this.motherFacts.addAll(relationship.motherFacts); } if (relationship.fatherFacts != null) { this.fatherFacts = this.fatherFacts == null ? new ArrayList<Fact>() : this.fatherFacts; this.fatherFacts.addAll(relationship.fatherFacts); } super.embed(relationship); } }
@Override public Relationship analysis(Document analysis) { return (Relationship) super.analysis(analysis); }
@Override public Person evidence(EvidenceReference evidence) { return (Person) super.evidence(evidence); }
@Override public Person confidence(URI confidence) { return (Person) super.confidence(confidence); }
@Override public PlaceDescription extracted(Boolean extracted) { return (PlaceDescription) super.extracted(extracted); }
@Override public PlaceDescription extensionElement(Object element) { return (PlaceDescription) super.extensionElement(element); }
@Override public Person attribution(Attribution attribution) { return (Person) super.attribution(attribution); }
/** * Embed another event. * * @param event The event to embed. */ public void embed(Event event) { this.type = this.type == null ? event.type : this.type; this.date = this.date == null ? event.date : this.date; this.place = this.place == null ? event.place : this.place; if (event.roles != null) { this.roles = this.roles == null ? new ArrayList<EventRole>() : this.roles; this.roles.addAll(event.roles); } super.embed(event); } }
@Override public Relationship analysis(URI analysis) { return (Relationship) super.analysis(analysis); }
@Override public PlaceDescription evidence(EvidenceReference evidence) { return (PlaceDescription) super.evidence(evidence); }