/** * @return {@link #entity} (An entity used in this activity.) */ // syntactic sugar public ProvenanceEntityComponent addEntity() { //3 ProvenanceEntityComponent t = new ProvenanceEntityComponent(); if (this.entity == null) this.entity = new ArrayList<ProvenanceEntityComponent>(); this.entity.add(t); return t; }
/** * @return {@link #entity} (An entity used in this activity.) */ // syntactic sugar public ProvenanceEntityComponent addEntity() { //3 ProvenanceEntityComponent t = new ProvenanceEntityComponent(); if (this.entity == null) this.entity = new ArrayList<ProvenanceEntityComponent>(); this.entity.add(t); return t; }
public ProvenanceEntityComponent copy() { ProvenanceEntityComponent dst = new ProvenanceEntityComponent(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.type = type == null ? null : type.copy(); dst.reference = reference == null ? null : reference.copy(); dst.display = display == null ? null : display.copy(); dst.agent = agent == null ? null : agent.copy(); return dst; }
public org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasWhatReference() && src.getWhatReference().hasReference()) tgt.setReference(src.getWhatReference().getReference()); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t)); return tgt; }
public ProvenanceEntityComponent copy() { ProvenanceEntityComponent dst = new ProvenanceEntityComponent(); copyValues(dst); dst.role = role == null ? null : role.copy(); dst.type = type == null ? null : type.copy(); dst.reference = reference == null ? null : reference.copy(); dst.display = display == null ? null : display.copy(); dst.agent = agent == null ? null : agent.copy(); return dst; }
public org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent convertProvenanceEntityComponent(org.hl7.fhir.dstu3.model.Provenance.ProvenanceEntityComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent tgt = new org.hl7.fhir.instance.model.Provenance.ProvenanceEntityComponent(); copyElement(src, tgt); tgt.setRole(convertProvenanceEntityRole(src.getRole())); if (src.hasWhatReference() && src.getWhatReference().hasReference()) tgt.setReference(src.getWhatReference().getReference()); for (org.hl7.fhir.dstu3.model.Provenance.ProvenanceAgentComponent t : src.getAgent()) tgt.setAgent(convertProvenanceAgentComponent(t)); return tgt; }