
org.hl7.v3.TEL 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.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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
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;
/**
*
* A telephone number (voice or fax), e-mail address, or
* other locator for a resource (information or service)
* mediated by telecommunication equipment. The address
* is specified as a URL
* qualified by time specification and use codes that help
* in deciding which address to use for a given time and
* purpose.
*
*
* Java class for TEL complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TEL">
* <complexContent>
* <extension base="{urn:hl7-org:v3}URL">
* <sequence>
* <element name="useablePeriod" type="{urn:hl7-org:v3}SXCM_TS" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="use" type="{urn:hl7-org:v3}set_TelecommunicationAddressUse" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TEL", namespace = "urn:hl7-org:v3", propOrder = {
"useablePeriod"
})
public class TEL
extends URL
{
@XmlElement(namespace = "urn:hl7-org:v3")
protected List useablePeriod;
@XmlAttribute(name = "use")
protected List use;
/**
* Gets the value of the useablePeriod 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 useablePeriod property.
*
*
* For example, to add a new item, do as follows:
*
* getUseablePeriod().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SXCMTS }
*
*
*/
public List getUseablePeriod() {
if (useablePeriod == null) {
useablePeriod = new ArrayList();
}
return this.useablePeriod;
}
/**
* Gets the value of the use 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 use property.
*
*
* For example, to add a new item, do as follows:
*
* getUse().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getUse() {
if (use == null) {
use = new ArrayList();
}
return this.use;
}
public TEL withUseablePeriod(SXCMTS... values) {
if (values!= null) {
for (SXCMTS value: values) {
getUseablePeriod().add(value);
}
}
return this;
}
public TEL withUseablePeriod(Collection values) {
if (values!= null) {
getUseablePeriod().addAll(values);
}
return this;
}
public TEL withUse(String... values) {
if (values!= null) {
for (String value: values) {
getUse().add(value);
}
}
return this;
}
public TEL withUse(Collection values) {
if (values!= null) {
getUse().addAll(values);
}
return this;
}
@Override
public TEL withValue(String value) {
setValue(value);
return this;
}
@Override
public TEL withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public TEL 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);
}
}