
com.github.rahulsom.cda.IVLMO 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.07.06 at 04:34:47 PM PDT
//
package com.github.rahulsom.cda;
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.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
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 IVL_MO complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="IVL_MO">
* <complexContent>
* <extension base="{urn:hl7-org:v3}SXCM_MO">
* <choice minOccurs="0">
* <sequence>
* <element name="low" type="{urn:hl7-org:v3}IVXB_MO"/>
* <choice minOccurs="0">
* <element name="width" type="{urn:hl7-org:v3}MO" minOccurs="0"/>
* <element name="high" type="{urn:hl7-org:v3}IVXB_MO" minOccurs="0"/>
* </choice>
* </sequence>
* <element name="high" type="{urn:hl7-org:v3}IVXB_MO"/>
* <sequence>
* <element name="width" type="{urn:hl7-org:v3}MO"/>
* <element name="high" type="{urn:hl7-org:v3}IVXB_MO" minOccurs="0"/>
* </sequence>
* <sequence>
* <element name="center" type="{urn:hl7-org:v3}MO"/>
* <element name="width" type="{urn:hl7-org:v3}MO" minOccurs="0"/>
* </sequence>
* </choice>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IVL_MO", namespace = "urn:hl7-org:v3", propOrder = {
"rest"
})
public class IVLMO
extends SXCMMO
{
@XmlElementRefs({
@XmlElementRef(name = "center", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "high", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "low", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false),
@XmlElementRef(name = "width", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false)
})
protected List> rest;
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "High" is used by two different parts of a schema. See:
* line 612 of file:/Users/rahulsomasunderam/IdeaProjects/home/ihe-iti/src/main/resources/cda/processable/coreschemas/datatypes.xsd
* line 605 of file:/Users/rahulsomasunderam/IdeaProjects/home/ihe-iti/src/main/resources/cda/processable/coreschemas/datatypes.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
* Gets the value of the rest 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 rest property.
*
*
* For example, to add a new item, do as follows:
*
* getRest().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link MO }{@code >}
* {@link JAXBElement }{@code <}{@link IVXBMO }{@code >}
* {@link JAXBElement }{@code <}{@link IVXBMO }{@code >}
* {@link JAXBElement }{@code <}{@link MO }{@code >}
*
*
*/
public List> getRest() {
if (rest == null) {
rest = new ArrayList>();
}
return this.rest;
}
public IVLMO withRest(JAXBElement extends MO> ... values) {
if (values!= null) {
for (JAXBElement extends MO> value: values) {
getRest().add(value);
}
}
return this;
}
public IVLMO withRest(Collection> values) {
if (values!= null) {
getRest().addAll(values);
}
return this;
}
@Override
public IVLMO withOperator(SetOperator value) {
setOperator(value);
return this;
}
@Override
public IVLMO withValue(String value) {
setValue(value);
return this;
}
@Override
public IVLMO withCurrency(String value) {
setCurrency(value);
return this;
}
@Override
public IVLMO withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public IVLMO withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
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);
}
}