All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.v3.EN Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
//
// 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.io.Serializable;
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.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSeeAlso;
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 name for a person, organization, place or thing. A
 *             sequence of name parts, such as given name or family
 *             name, prefix, suffix, etc. Examples for entity name
 *             values are "Jim Bob Walton, Jr.", "Health Level Seven,
 *             Inc.", "Lake Tahoe", etc. An entity name may be as simple
 *             as a character string or may consist of several entity name
 *             parts, such as, "Jim", "Bob", "Walton", and "Jr.", "Health
 *             Level Seven" and "Inc.", "Lake" and "Tahoe".
 *          
 * 
 * 

Java class for EN complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="EN">
 *   <complexContent>
 *     <extension base="{urn:hl7-org:v3}ANY">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element name="delimiter" type="{urn:hl7-org:v3}en.delimiter"/>
 *           <element name="family" type="{urn:hl7-org:v3}en.family"/>
 *           <element name="given" type="{urn:hl7-org:v3}en.given"/>
 *           <element name="prefix" type="{urn:hl7-org:v3}en.prefix"/>
 *           <element name="suffix" type="{urn:hl7-org:v3}en.suffix"/>
 *         </choice>
 *         <element name="validTime" type="{urn:hl7-org:v3}IVL_TS" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="use" type="{urn:hl7-org:v3}set_EntityNameUse" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EN", namespace = "urn:hl7-org:v3", propOrder = { "content" }) @XmlSeeAlso({ ON.class, PN.class, TN.class }) public class EN extends ANY { @XmlElementRefs({ @XmlElementRef(name = "suffix", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false), @XmlElementRef(name = "delimiter", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false), @XmlElementRef(name = "validTime", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false), @XmlElementRef(name = "family", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false), @XmlElementRef(name = "given", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false), @XmlElementRef(name = "prefix", namespace = "urn:hl7-org:v3", type = JAXBElement.class, required = false) }) @XmlMixed protected List content; @XmlAttribute(name = "use") protected List use; /** * * A name for a person, organization, place or thing. A * sequence of name parts, such as given name or family * name, prefix, suffix, etc. Examples for entity name * values are "Jim Bob Walton, Jr.", "Health Level Seven, * Inc.", "Lake Tahoe", etc. An entity name may be as simple * as a character string or may consist of several entity name * parts, such as, "Jim", "Bob", "Walton", and "Jr.", "Health * Level Seven" and "Inc.", "Lake" and "Tahoe". * Gets the value of the content 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 content property. * *

* For example, to add a new item, do as follows: *

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link EnSuffix }{@code >} * {@link JAXBElement }{@code <}{@link EnDelimiter }{@code >} * {@link JAXBElement }{@code <}{@link IVLTS }{@code >} * {@link String } * {@link JAXBElement }{@code <}{@link EnFamily }{@code >} * {@link JAXBElement }{@code <}{@link EnGiven }{@code >} * {@link JAXBElement }{@code <}{@link EnPrefix }{@code >} * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } /** * 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 EN withContent(Serializable... values) { if (values!= null) { for (Serializable value: values) { getContent().add(value); } } return this; } public EN withContent(Collection values) { if (values!= null) { getContent().addAll(values); } return this; } public EN withUse(String... values) { if (values!= null) { for (String value: values) { getUse().add(value); } } return this; } public EN withUse(Collection values) { if (values!= null) { getUse().addAll(values); } return this; } @Override public EN withNullFlavor(String... values) { if (values!= null) { for (String value: values) { getNullFlavor().add(value); } } return this; } @Override public EN 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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy