
generated.EN 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: 2013.05.03 at 09:18:53 PM PDT
//
package generated;
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="{}ANY">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="delimiter" type="{}en.delimiter"/>
* <element name="family" type="{}en.family"/>
* <element name="given" type="{}en.given"/>
* <element name="prefix" type="{}en.prefix"/>
* <element name="suffix" type="{}en.suffix"/>
* </choice>
* <element name="validTime" type="{}IVL_TS" minOccurs="0"/>
* </sequence>
* <attribute name="use" type="{}set_EntityNameUse" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EN", propOrder = {
"content"
})
@XmlSeeAlso({
ON.class,
PN.class,
TN.class
})
public class EN
extends ANY
{
@XmlElementRefs({
@XmlElementRef(name = "given", type = JAXBElement.class, required = false),
@XmlElementRef(name = "suffix", type = JAXBElement.class, required = false),
@XmlElementRef(name = "delimiter", type = JAXBElement.class, required = false),
@XmlElementRef(name = "prefix", type = JAXBElement.class, required = false),
@XmlElementRef(name = "family", type = JAXBElement.class, required = false),
@XmlElementRef(name = "validTime", 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 EnGiven }{@code >}
* {@link String }
* {@link JAXBElement }{@code <}{@link EnSuffix }{@code >}
* {@link JAXBElement }{@code <}{@link EnDelimiter }{@code >}
* {@link JAXBElement }{@code <}{@link EnPrefix }{@code >}
* {@link JAXBElement }{@code <}{@link EnFamily }{@code >}
* {@link JAXBElement }{@code <}{@link IVLTS }{@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);
}
}