package org.hl7.v3; import java.util.ArrayList; 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.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * * A character string token representing a part of a name. * May have a type code signifying the role of the part in * the whole entity name, and a qualifier code for more detail * about the name part type. Typical name parts for person * names are given names, and family names, titles, etc. * * * <p>Java class for ENXP complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ENXP"> * <complexContent> * <extension base="{urn:hl7-org:v3}ST"> * <attribute name="partType" type="{urn:hl7-org:v3}EntityNamePartType" /> * <attribute name="qualifier" type="{urn:hl7-org:v3}set_EntityNamePartQualifier" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ENXP") @XmlSeeAlso({ EnDelimiter.class, EnPrefix.class, EnSuffix.class, EnGiven.class, EnFamily.class }) public class ENXP extends ST { /** * */ private static final long serialVersionUID = 1L; @XmlAttribute protected String partType; @XmlAttribute protected List<String> qualifier; /** * Gets the value of the partType property. * * @return * possible object is * {@link String } * */ public String getPartType() { return partType; } /** * Sets the value of the partType property. * * @param value * allowed object is * {@link String } * */ public void setPartType(String value) { this.partType = value; } /** * Gets the value of the qualifier property. * * <p> * 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 <CODE>set</CODE> method for the qualifier property. * * <p> * For example, to add a new item, do as follows: * <pre> * getQualifier().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getQualifier() { if (qualifier == null) { qualifier = new ArrayList<String>(); } return this.qualifier; } }