
org.hl7.v3.COCTMT230100UVPackagedMedicine 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_MT230100UV.PackagedMedicine complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="COCT_MT230100UV.PackagedMedicine">
* <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" minOccurs="0"/>
* <element name="code" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="name" type="{urn:hl7-org:v3}TN" maxOccurs="unbounded" minOccurs="0"/>
* <element name="formCode" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="lotNumberText" type="{urn:hl7-org:v3}ST" minOccurs="0"/>
* <element name="capacityQuantity" type="{urn:hl7-org:v3}PQ" minOccurs="0"/>
* <element name="capTypeCode" type="{urn:hl7-org:v3}CE" minOccurs="0"/>
* <element name="asManufacturedProduct" type="{urn:hl7-org:v3}COCT_MT230100UV.ManufacturedProduct" maxOccurs="unbounded" minOccurs="0"/>
* <element name="asSuperContent" type="{urn:hl7-org:v3}COCT_MT230100UV.SuperContent" minOccurs="0"/>
* <element name="subContent" type="{urn:hl7-org:v3}COCT_MT230100UV.SubContent" 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}EntityClassContainer" />
* <attribute name="determinerCode" use="required" type="{urn:hl7-org:v3}EntityDeterminer" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "COCT_MT230100UV.PackagedMedicine", namespace = "urn:hl7-org:v3", propOrder = {
"realmCode",
"typeId",
"templateId",
"id",
"code",
"name",
"formCode",
"lotNumberText",
"capacityQuantity",
"capTypeCode",
"asManufacturedProduct",
"asSuperContent",
"subContent"
})
public class COCTMT230100UVPackagedMedicine {
@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")
protected II id;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE code;
@XmlElement(namespace = "urn:hl7-org:v3")
protected List name;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE formCode;
@XmlElement(namespace = "urn:hl7-org:v3")
protected ST lotNumberText;
@XmlElement(namespace = "urn:hl7-org:v3")
protected PQ capacityQuantity;
@XmlElement(namespace = "urn:hl7-org:v3")
protected CE capTypeCode;
@XmlElement(namespace = "urn:hl7-org:v3", nillable = true)
protected List asManufacturedProduct;
@XmlElementRef(name = "asSuperContent", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement asSuperContent;
@XmlElementRef(name = "subContent", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
protected JAXBElement subContent;
@XmlAttribute(name = "nullFlavor")
protected List nullFlavor;
@XmlAttribute(name = "classCode", required = true)
protected EntityClassContainer classCode;
@XmlAttribute(name = "determinerCode", required = true)
protected String determinerCode;
/**
* 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 name 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 name property.
*
*
* For example, to add a new item, do as follows:
*
* getName().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TN }
*
*
*/
public List getName() {
if (name == null) {
name = new ArrayList();
}
return this.name;
}
/**
* Gets the value of the formCode property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getFormCode() {
return formCode;
}
/**
* Sets the value of the formCode property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setFormCode(CE value) {
this.formCode = value;
}
/**
* Gets the value of the lotNumberText property.
*
* @return
* possible object is
* {@link ST }
*
*/
public ST getLotNumberText() {
return lotNumberText;
}
/**
* Sets the value of the lotNumberText property.
*
* @param value
* allowed object is
* {@link ST }
*
*/
public void setLotNumberText(ST value) {
this.lotNumberText = value;
}
/**
* Gets the value of the capacityQuantity property.
*
* @return
* possible object is
* {@link PQ }
*
*/
public PQ getCapacityQuantity() {
return capacityQuantity;
}
/**
* Sets the value of the capacityQuantity property.
*
* @param value
* allowed object is
* {@link PQ }
*
*/
public void setCapacityQuantity(PQ value) {
this.capacityQuantity = value;
}
/**
* Gets the value of the capTypeCode property.
*
* @return
* possible object is
* {@link CE }
*
*/
public CE getCapTypeCode() {
return capTypeCode;
}
/**
* Sets the value of the capTypeCode property.
*
* @param value
* allowed object is
* {@link CE }
*
*/
public void setCapTypeCode(CE value) {
this.capTypeCode = value;
}
/**
* Gets the value of the asManufacturedProduct 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 asManufacturedProduct property.
*
*
* For example, to add a new item, do as follows:
*
* getAsManufacturedProduct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link COCTMT230100UVManufacturedProduct }
*
*
*/
public List getAsManufacturedProduct() {
if (asManufacturedProduct == null) {
asManufacturedProduct = new ArrayList();
}
return this.asManufacturedProduct;
}
/**
* Gets the value of the asSuperContent property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVSuperContent }{@code >}
*
*/
public JAXBElement getAsSuperContent() {
return asSuperContent;
}
/**
* Sets the value of the asSuperContent property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVSuperContent }{@code >}
*
*/
public void setAsSuperContent(JAXBElement value) {
this.asSuperContent = value;
}
/**
* Gets the value of the subContent property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVSubContent }{@code >}
*
*/
public JAXBElement getSubContent() {
return subContent;
}
/**
* Sets the value of the subContent property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link COCTMT230100UVSubContent }{@code >}
*
*/
public void setSubContent(JAXBElement value) {
this.subContent = 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 EntityClassContainer }
*
*/
public EntityClassContainer getClassCode() {
return classCode;
}
/**
* Sets the value of the classCode property.
*
* @param value
* allowed object is
* {@link EntityClassContainer }
*
*/
public void setClassCode(EntityClassContainer value) {
this.classCode = value;
}
/**
* Gets the value of the determinerCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDeterminerCode() {
return determinerCode;
}
/**
* Sets the value of the determinerCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDeterminerCode(String value) {
this.determinerCode = value;
}
public COCTMT230100UVPackagedMedicine withRealmCode(CS... values) {
if (values!= null) {
for (CS value: values) {
getRealmCode().add(value);
}
}
return this;
}
public COCTMT230100UVPackagedMedicine withRealmCode(Collection values) {
if (values!= null) {
getRealmCode().addAll(values);
}
return this;
}
public COCTMT230100UVPackagedMedicine withTypeId(II value) {
setTypeId(value);
return this;
}
public COCTMT230100UVPackagedMedicine withTemplateId(II... values) {
if (values!= null) {
for (II value: values) {
getTemplateId().add(value);
}
}
return this;
}
public COCTMT230100UVPackagedMedicine withTemplateId(Collection values) {
if (values!= null) {
getTemplateId().addAll(values);
}
return this;
}
public COCTMT230100UVPackagedMedicine withId(II value) {
setId(value);
return this;
}
public COCTMT230100UVPackagedMedicine withCode(CE value) {
setCode(value);
return this;
}
public COCTMT230100UVPackagedMedicine withName(TN... values) {
if (values!= null) {
for (TN value: values) {
getName().add(value);
}
}
return this;
}
public COCTMT230100UVPackagedMedicine withName(Collection values) {
if (values!= null) {
getName().addAll(values);
}
return this;
}
public COCTMT230100UVPackagedMedicine withFormCode(CE value) {
setFormCode(value);
return this;
}
public COCTMT230100UVPackagedMedicine withLotNumberText(ST value) {
setLotNumberText(value);
return this;
}
public COCTMT230100UVPackagedMedicine withCapacityQuantity(PQ value) {
setCapacityQuantity(value);
return this;
}
public COCTMT230100UVPackagedMedicine withCapTypeCode(CE value) {
setCapTypeCode(value);
return this;
}
public COCTMT230100UVPackagedMedicine withAsManufacturedProduct(COCTMT230100UVManufacturedProduct... values) {
if (values!= null) {
for (COCTMT230100UVManufacturedProduct value: values) {
getAsManufacturedProduct().add(value);
}
}
return this;
}
public COCTMT230100UVPackagedMedicine withAsManufacturedProduct(Collection values) {
if (values!= null) {
getAsManufacturedProduct().addAll(values);
}
return this;
}
public COCTMT230100UVPackagedMedicine withAsSuperContent(JAXBElement value) {
setAsSuperContent(value);
return this;
}
public COCTMT230100UVPackagedMedicine withSubContent(JAXBElement value) {
setSubContent(value);
return this;
}
public COCTMT230100UVPackagedMedicine withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
public COCTMT230100UVPackagedMedicine withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
public COCTMT230100UVPackagedMedicine withClassCode(EntityClassContainer value) {
setClassCode(value);
return this;
}
public COCTMT230100UVPackagedMedicine withDeterminerCode(String value) {
setDeterminerCode(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);
}
}