
org.hl7.v3.COCTMT080000UVSpecimen Maven / Gradle / Ivy
Show all versions of ihe-iti Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.03.10 at 07:30:12 PM PDT
//
package org.hl7.v3;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Java class for COCT_MT080000UV.Specimen complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="COCT_MT080000UV.Specimen">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <group ref="{urn:hl7-org:v3}InfrastructureRootElements"/>
* <element name="id" type="{urn:hl7-org:v3}II"/>
* <element name="code" type="{urn:hl7-org:v3}CE"/>
* <choice>
* <element name="specimenNatural" type="{urn:hl7-org:v3}COCT_MT080000UV.Natural"/>
* <element name="specimenManufactured" type="{urn:hl7-org:v3}COCT_MT080000UV.Manufactured"/>
* <element name="specimenNonPersonLivingSubject" type="{urn:hl7-org:v3}COCT_MT080000UV.NonPersonLivingSubject"/>
* <element name="specimenPerson" type="{urn:hl7-org:v3}COCT_MT080000UV.Person"/>
* </choice>
* <choice>
* <element name="sourceNatural" type="{urn:hl7-org:v3}COCT_MT080000UV.Natural" minOccurs="0"/>
* <element name="sourceManufactured" type="{urn:hl7-org:v3}COCT_MT080000UV.Manufactured" minOccurs="0"/>
* <element name="sourceNonPersonLivingSubject" type="{urn:hl7-org:v3}COCT_MT080000UV.NonPersonLivingSubject" minOccurs="0"/>
* <element name="sourcePerson" type="{urn:hl7-org:v3}COCT_MT080000UV.Person" minOccurs="0"/>
* </choice>
* <element name="subjectOf1" type="{urn:hl7-org:v3}COCT_MT080000UV.Subject4" maxOccurs="unbounded" minOccurs="0"/>
* <element name="subjectOf2" type="{urn:hl7-org:v3}COCT_MT080000UV.Subject3" maxOccurs="unbounded" minOccurs="0"/>
* <element name="productOf" type="{urn:hl7-org:v3}COCT_MT080000UV.Product" minOccurs="0"/>
* </sequence>
* <attGroup ref="{urn:hl7-org:v3}InfrastructureRootAttributes"/>
* <attribute name="nullFlavor" type="{urn:hl7-org:v3}NullFlavor" />
* <attribute name="classCode" use="required" type="{urn:hl7-org:v3}RoleClassSpecimen" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT080000UV.Specimen", namespace = "urn:hl7-org:v3", propOrder = {
"realmCode",
"typeId",
"templateId",
"id",
"code",
"specimenNatural",
"specimenManufactured",
"specimenNonPersonLivingSubject",
"specimenPerson",
"sourceNatural",
"sourceManufactured",
"sourceNonPersonLivingSubject",
"sourcePerson",
"subjectOf1",
"subjectOf2",
"productOf"
})
public class COCTMT080000UVSpecimen {
@XmlElement(namespace = "urn:hl7-org:v3")
protected List realmCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected II typeId;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List templateId;
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected II id;
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected CE code;
@XmlElement(namespace = "urn:hl7-org:v3")
protected COCTMT080000UVNatural specimenNatural;
@XmlElement(namespace = "urn:hl7-org:v3")
protected COCTMT080000UVManufactured specimenManufactured;
@XmlElement(namespace = "urn:hl7-org:v3")
protected COCTMT080000UVNonPersonLivingSubject specimenNonPersonLivingSubject;
@XmlElement(namespace = "urn:hl7-org:v3")
protected COCTMT080000UVPerson specimenPerson;
@XmlElementRef(name = "sourceNatural", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement sourceNatural;
@XmlElementRef(name = "sourceManufactured", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement sourceManufactured;
@XmlElementRef(name = "sourceNonPersonLivingSubject", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement sourceNonPersonLivingSubject;
@XmlElementRef(name = "sourcePerson", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement sourcePerson;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf1;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List subjectOf2;
@XmlElementRef(name = "productOf", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement productOf;
@XmlAttribute(name = "nullFlavor")
protected List nullFlavor;
@XmlAttribute(name = "classCode", required = true)
protected RoleClassSpecimen classCode;
/**
* Gets the value of the realmCode property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the realmCode property.
*
*
* For example, to add a new item, do as follows:
*
* getRealmCode().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CS }
*
*
*/
public List getRealmCode() {
if (realmCode == null) {
realmCode = new ArrayList();
}
return this.realmCode;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setTypeId(II value) {
this.typeId = value;
}
/**
* Gets the value of the templateId property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the templateId property.
*
*
* For example, to add a new item, do as follows:
*
* getTemplateId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link II }
*
*
*/
public List getTemplateId() {
if (templateId == null) {
templateId = new ArrayList();
}
return this.templateId;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link II }
*
*/
public II getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link II }
*
*/
public void setId(II value) {
this.id = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setCode(CE value) {
this.code = value;
}
/**
* Gets the value of the specimenNatural property.
*
* @return
* possible object is
* {@link COCTMT080000UVNatural }
*
*/
public COCTMT080000UVNatural getSpecimenNatural() {
return specimenNatural;
}
/**
* Sets the value of the specimenNatural property.
*
* @param value
* allowed object is
* {@link COCTMT080000UVNatural }
*
*/
public void setSpecimenNatural(COCTMT080000UVNatural value) {
this.specimenNatural = value;
}
/**
* Gets the value of the specimenManufactured property.
*
* @return
* possible object is
* {@link COCTMT080000UVManufactured }
*
*/
public COCTMT080000UVManufactured getSpecimenManufactured() {
return specimenManufactured;
}
/**
* Sets the value of the specimenManufactured property.
*
* @param value
* allowed object is
* {@link COCTMT080000UVManufactured }
*
*/
public void setSpecimenManufactured(COCTMT080000UVManufactured value) {
this.specimenManufactured = value;
}
/**
* Gets the value of the specimenNonPersonLivingSubject property.
*
* @return
* possible object is
* {@link COCTMT080000UVNonPersonLivingSubject }
*
*/
public COCTMT080000UVNonPersonLivingSubject getSpecimenNonPersonLivingSubject() {
return specimenNonPersonLivingSubject;
}
/**
* Sets the value of the specimenNonPersonLivingSubject property.
*
* @param value
* allowed object is
* {@link COCTMT080000UVNonPersonLivingSubject }
*
*/
public void setSpecimenNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) {
this.specimenNonPersonLivingSubject = value;
}
/**
* Gets the value of the specimenPerson property.
*
* @return
* possible object is
* {@link COCTMT080000UVPerson }
*
*/
public COCTMT080000UVPerson getSpecimenPerson() {
return specimenPerson;
}
/**
* Sets the value of the specimenPerson property.
*
* @param value
* allowed object is
* {@link COCTMT080000UVPerson }
*
*/
public void setSpecimenPerson(COCTMT080000UVPerson value) {
this.specimenPerson = value;
}
/**
* Gets the value of the sourceNatural property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVNatural }{@code >}
*
*/
public JAXBElement getSourceNatural() {
return sourceNatural;
}
/**
* Sets the value of the sourceNatural property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVNatural }{@code >}
*
*/
public void setSourceNatural(JAXBElement value) {
this.sourceNatural = value;
}
/**
* Gets the value of the sourceManufactured property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVManufactured }{@code >}
*
*/
public JAXBElement getSourceManufactured() {
return sourceManufactured;
}
/**
* Sets the value of the sourceManufactured property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVManufactured }{@code >}
*
*/
public void setSourceManufactured(JAXBElement value) {
this.sourceManufactured = value;
}
/**
* Gets the value of the sourceNonPersonLivingSubject property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVNonPersonLivingSubject }{@code >}
*
*/
public JAXBElement getSourceNonPersonLivingSubject() {
return sourceNonPersonLivingSubject;
}
/**
* Sets the value of the sourceNonPersonLivingSubject property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVNonPersonLivingSubject }{@code >}
*
*/
public void setSourceNonPersonLivingSubject(JAXBElement value) {
this.sourceNonPersonLivingSubject = value;
}
/**
* Gets the value of the sourcePerson property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVPerson }{@code >}
*
*/
public JAXBElement getSourcePerson() {
return sourcePerson;
}
/**
* Sets the value of the sourcePerson property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVPerson }{@code >}
*
*/
public void setSourcePerson(JAXBElement value) {
this.sourcePerson = value;
}
/**
* Gets the value of the subjectOf1 property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the subjectOf1 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf1().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT080000UVSubject4 }
*
*
*/
public List getSubjectOf1() {
if (subjectOf1 == null) {
subjectOf1 = new ArrayList();
}
return this.subjectOf1;
}
/**
* Gets the value of the subjectOf2 property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the subjectOf2 property.
*
*
* For example, to add a new item, do as follows:
*
* getSubjectOf2().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT080000UVSubject3 }
*
*
*/
public List getSubjectOf2() {
if (subjectOf2 == null) {
subjectOf2 = new ArrayList();
}
return this.subjectOf2;
}
/**
* Gets the value of the productOf property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVProduct }{@code >}
*
*/
public JAXBElement getProductOf() {
return productOf;
}
/**
* Sets the value of the productOf property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT080000UVProduct }{@code >}
*
*/
public void setProductOf(JAXBElement value) {
this.productOf = value;
}
/**
* Gets the value of the nullFlavor property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the nullFlavor property.
*
*
* For example, to add a new item, do as follows:
*
* getNullFlavor().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getNullFlavor() {
if (nullFlavor == null) {
nullFlavor = new ArrayList();
}
return this.nullFlavor;
}
/**
* Gets the value of the classCode property.
*
* @return
* possible object is
* {@link RoleClassSpecimen }
*
*/
public RoleClassSpecimen getClassCode() {
return classCode;
}
/**
* Sets the value of the classCode property.
*
* @param value
* allowed object is
* {@link RoleClassSpecimen }
*
*/
public void setClassCode(RoleClassSpecimen value) {
this.classCode = value;
}
public COCTMT080000UVSpecimen withRealmCode(CS... values) {
if (values!= null) {
for (CS value: values) {
getRealmCode().add(value);
}
}
return this;
}
public COCTMT080000UVSpecimen withRealmCode(Collection values) {
if (values!= null) {
getRealmCode().addAll(values);
}
return this;
}
public COCTMT080000UVSpecimen withTypeId(II value) {
setTypeId(value);
return this;
}
public COCTMT080000UVSpecimen withTemplateId(II... values) {
if (values!= null) {
for (II value: values) {
getTemplateId().add(value);
}
}
return this;
}
public COCTMT080000UVSpecimen withTemplateId(Collection values) {
if (values!= null) {
getTemplateId().addAll(values);
}
return this;
}
public COCTMT080000UVSpecimen withId(II value) {
setId(value);
return this;
}
public COCTMT080000UVSpecimen withCode(CE value) {
setCode(value);
return this;
}
public COCTMT080000UVSpecimen withSpecimenNatural(COCTMT080000UVNatural value) {
setSpecimenNatural(value);
return this;
}
public COCTMT080000UVSpecimen withSpecimenManufactured(COCTMT080000UVManufactured value) {
setSpecimenManufactured(value);
return this;
}
public COCTMT080000UVSpecimen withSpecimenNonPersonLivingSubject(COCTMT080000UVNonPersonLivingSubject value) {
setSpecimenNonPersonLivingSubject(value);
return this;
}
public COCTMT080000UVSpecimen withSpecimenPerson(COCTMT080000UVPerson value) {
setSpecimenPerson(value);
return this;
}
public COCTMT080000UVSpecimen withSourceNatural(JAXBElement value) {
setSourceNatural(value);
return this;
}
public COCTMT080000UVSpecimen withSourceManufactured(JAXBElement value) {
setSourceManufactured(value);
return this;
}
public COCTMT080000UVSpecimen withSourceNonPersonLivingSubject(JAXBElement value) {
setSourceNonPersonLivingSubject(value);
return this;
}
public COCTMT080000UVSpecimen withSourcePerson(JAXBElement value) {
setSourcePerson(value);
return this;
}
public COCTMT080000UVSpecimen withSubjectOf1(COCTMT080000UVSubject4 ... values) {
if (values!= null) {
for (COCTMT080000UVSubject4 value: values) {
getSubjectOf1().add(value);
}
}
return this;
}
public COCTMT080000UVSpecimen withSubjectOf1(Collection values) {
if (values!= null) {
getSubjectOf1().addAll(values);
}
return this;
}
public COCTMT080000UVSpecimen withSubjectOf2(COCTMT080000UVSubject3 ... values) {
if (values!= null) {
for (COCTMT080000UVSubject3 value: values) {
getSubjectOf2().add(value);
}
}
return this;
}
public COCTMT080000UVSpecimen withSubjectOf2(Collection values) {
if (values!= null) {
getSubjectOf2().addAll(values);
}
return this;
}
public COCTMT080000UVSpecimen withProductOf(JAXBElement value) {
setProductOf(value);
return this;
}
public COCTMT080000UVSpecimen withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
public COCTMT080000UVSpecimen withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
public COCTMT080000UVSpecimen withClassCode(RoleClassSpecimen value) {
setClassCode(value);
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}