
org.hl7.v3.SLISTTS 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.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.09 at 07:53:44 PM PDT
//
package org.hl7.v3;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlList;
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 SLIST_TS complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SLIST_TS">
* <complexContent>
* <extension base="{urn:hl7-org:v3}ANY">
* <sequence>
* <element name="origin" type="{urn:hl7-org:v3}TS"/>
* <element name="scale" type="{urn:hl7-org:v3}PQ"/>
* <element name="digits" type="{urn:hl7-org:v3}list_int"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SLIST_TS", namespace = "urn:hl7-org:v3", propOrder = {
"origin",
"scale",
"digits"
})
public class SLISTTS
extends ANY
{
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected TS origin;
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected PQ scale;
@XmlList
@XmlElement(namespace = "urn:hl7-org:v3", required = true)
protected List digits;
/**
* Gets the value of the origin property.
*
* @return
* possible object is
* {@link TS }
*
*/
public TS getOrigin() {
return origin;
}
/**
* Sets the value of the origin property.
*
* @param value
* allowed object is
* {@link TS }
*
*/
public void setOrigin(TS value) {
this.origin = value;
}
/**
* Gets the value of the scale property.
*
* @return
* possible object is
* {@link PQ }
*
*/
public PQ getScale() {
return scale;
}
/**
* Sets the value of the scale property.
*
* @param value
* allowed object is
* {@link PQ }
*
*/
public void setScale(PQ value) {
this.scale = value;
}
/**
* Gets the value of the digits 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 digits property.
*
*
* For example, to add a new item, do as follows:
*
* getDigits().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BigInteger }
*
*
*/
public List getDigits() {
if (digits == null) {
digits = new ArrayList();
}
return this.digits;
}
public SLISTTS withOrigin(TS value) {
setOrigin(value);
return this;
}
public SLISTTS withScale(PQ value) {
setScale(value);
return this;
}
public SLISTTS withDigits(BigInteger... values) {
if (values!= null) {
for (BigInteger value: values) {
getDigits().add(value);
}
}
return this;
}
public SLISTTS withDigits(Collection values) {
if (values!= null) {
getDigits().addAll(values);
}
return this;
}
@Override
public SLISTTS withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public SLISTTS 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);
}
}