public MessageDestinationComponent addDestination() { //3 MessageDestinationComponent t = new MessageDestinationComponent(); if (this.destination == null) this.destination = new ArrayList<MessageDestinationComponent>(); this.destination.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("name")) { this.name = castToString(value); // StringType } else if (name.equals("target")) { this.target = castToReference(value); // Reference } else if (name.equals("endpoint")) { this.endpoint = castToUri(value); // UriType } else return super.setProperty(name, value); return value; }
public MessageHeader copy() { MessageHeader dst = new MessageHeader(); copyValues(dst); dst.event = event == null ? null : event.copy(); if (destination != null) { dst.destination = new ArrayList<MessageDestinationComponent>(); for (MessageDestinationComponent i : destination) dst.destination.add(i.copy()); }; dst.receiver = receiver == null ? null : receiver.copy(); dst.sender = sender == null ? null : sender.copy(); dst.timestamp = timestamp == null ? null : timestamp.copy(); dst.enterer = enterer == null ? null : enterer.copy(); dst.author = author == null ? null : author.copy(); dst.source = source == null ? null : source.copy(); dst.responsible = responsible == null ? null : responsible.copy(); dst.reason = reason == null ? null : reason.copy(); dst.response = response == null ? null : response.copy(); if (focus != null) { dst.focus = new ArrayList<Reference>(); for (Reference i : focus) dst.focus.add(i.copy()); }; return dst; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3373707: // name this.name = castToString(value); // StringType return value; case -880905839: // target this.target = castToReference(value); // Reference return value; case 1741102485: // endpoint this.endpoint = castToUri(value); // UriType return value; default: return super.setProperty(hash, name, value); } }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3373707: return getNameElement(); case -880905839: return getTarget(); case 1741102485: return getEndpointElement(); default: return super.makeProperty(hash, name); } }
public MessageDestinationComponent copy() { MessageDestinationComponent dst = new MessageDestinationComponent(); copyValues(dst); dst.name = name == null ? null : name.copy(); dst.target = target == null ? null : target.copy(); dst.endpoint = endpoint == null ? null : endpoint.copy(); return dst; }
public org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent convertMessageDestinationComponent(org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); copyElement(src, tgt); tgt.setName(src.getName()); tgt.setTarget(convertReference(src.getTarget())); tgt.setEndpoint(src.getEndpoint()); return tgt; }
public boolean hasDestination() { if (this.destination == null) return false; for (MessageDestinationComponent item : this.destination) if (!item.isEmpty()) return true; return false; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof MessageDestinationComponent)) return false; MessageDestinationComponent o = (MessageDestinationComponent) other_; return compareDeep(name, o.name, true) && compareDeep(target, o.target, true) && compareDeep(endpoint, o.endpoint, true) ; }
public org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent convertMessageDestinationComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent(); copyElement(src, tgt); tgt.setName(src.getName()); tgt.setTarget(convertReference(src.getTarget())); tgt.setEndpoint(src.getEndpoint()); return tgt; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof MessageDestinationComponent)) return false; MessageDestinationComponent o = (MessageDestinationComponent) other_; return compareValues(name, o.name, true) && compareValues(endpoint, o.endpoint, true); }
public org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent convertMessageDestinationComponent(org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent(); copyElement(src, tgt); tgt.setName(src.getName()); tgt.setTarget(convertReference(src.getTarget())); tgt.setEndpoint(src.getEndpoint()); return tgt; }
public org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent convertMessageDestinationComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent tgt = new org.hl7.fhir.instance.model.MessageHeader.MessageDestinationComponent(); copyElement(src, tgt); tgt.setName(src.getName()); tgt.setTarget(convertReference(src.getTarget())); tgt.setEndpoint(src.getEndpoint()); return tgt; }