//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.03.04 at 09:48:32 AM UTC 
//


package de.ivu.wahl.wus.oasis.eml.external.xnl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
import de.ivu.wahl.wus.oasis.eml.PersonNameStructure;


/**
 * <p>Java class for NameDetails complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="NameDetails"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;choice minOccurs="0"&gt;
 *         &lt;element name="NameLine" type="{urn:oasis:names:tc:ciq:xsdschema:xNL:2.0}NameLineType" maxOccurs="unbounded"/&gt;
 *         &lt;element ref="{urn:oasis:names:tc:ciq:xsdschema:xNL:2.0}PersonName"/&gt;
 *         &lt;element ref="{urn:oasis:names:tc:ciq:xsdschema:xNL:2.0}JointPersonName"/&gt;
 *         &lt;element ref="{urn:oasis:names:tc:ciq:xsdschema:xNL:2.0}OrganisationNameDetails"/&gt;
 *       &lt;/choice&gt;
 *       &lt;attribute name="PartyType" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /&gt;
 *       &lt;attribute name="Code" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" /&gt;
 *       &lt;anyAttribute namespace='##other'/&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NameDetails", propOrder = {
    "nameLine",
    "personName",
    "jointPersonName",
    "organisationNameDetails"
})
@XmlSeeAlso({
    PersonNameStructure.class,
    NameDetails.DependencyName.class,
    NameDetails.class
})
public class NameDetailsType {

    @XmlElement(name = "NameLine")
    protected List<NameLineType> nameLine;
    @XmlElement(name = "PersonName")
    protected PersonName personName;
    @XmlElement(name = "JointPersonName")
    protected JointPersonName jointPersonName;
    @XmlElement(name = "OrganisationNameDetails")
    protected OrganisationNameDetails organisationNameDetails;
    @XmlAttribute(name = "PartyType")
    @XmlSchemaType(name = "anySimpleType")
    protected String partyType;
    @XmlAttribute(name = "Code")
    @XmlSchemaType(name = "anySimpleType")
    protected String code;
    @XmlAnyAttribute
    private Map<QName, String> otherAttributes = new HashMap<QName, String>();

    /**
     * Gets the value of the nameLine 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 nameLine property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getNameLine().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link NameLineType }
     * 
     * 
     */
    public List<NameLineType> getNameLine() {
        if (nameLine == null) {
            nameLine = new ArrayList<NameLineType>();
        }
        return this.nameLine;
    }

    /**
     * Gets the value of the personName property.
     * 
     * @return
     *     possible object is
     *     {@link PersonName }
     *     
     */
    public PersonName getPersonName() {
        return personName;
    }

    /**
     * Sets the value of the personName property.
     * 
     * @param value
     *     allowed object is
     *     {@link PersonName }
     *     
     */
    public void setPersonName(PersonName value) {
        this.personName = value;
    }

    /**
     * Gets the value of the jointPersonName property.
     * 
     * @return
     *     possible object is
     *     {@link JointPersonName }
     *     
     */
    public JointPersonName getJointPersonName() {
        return jointPersonName;
    }

    /**
     * Sets the value of the jointPersonName property.
     * 
     * @param value
     *     allowed object is
     *     {@link JointPersonName }
     *     
     */
    public void setJointPersonName(JointPersonName value) {
        this.jointPersonName = value;
    }

    /**
     * Gets the value of the organisationNameDetails property.
     * 
     * @return
     *     possible object is
     *     {@link OrganisationNameDetails }
     *     
     */
    public OrganisationNameDetails getOrganisationNameDetails() {
        return organisationNameDetails;
    }

    /**
     * Sets the value of the organisationNameDetails property.
     * 
     * @param value
     *     allowed object is
     *     {@link OrganisationNameDetails }
     *     
     */
    public void setOrganisationNameDetails(OrganisationNameDetails value) {
        this.organisationNameDetails = value;
    }

    /**
     * Gets the value of the partyType property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPartyType() {
        return partyType;
    }

    /**
     * Sets the value of the partyType property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPartyType(String value) {
        this.partyType = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets a map that contains attributes that aren't bound to any typed property on this class.
     * 
     * <p>
     * the map is keyed by the name of the attribute and 
     * the value is the string value of the attribute.
     * 
     * the map returned by this method is live, and you can add new attribute
     * by updating the map directly. Because of this design, there's no setter.
     * 
     * 
     * @return
     *     always non-null
     */
    public Map<QName, String> getOtherAttributes() {
        return otherAttributes;
    }

    public void setNameLine(List<NameLineType> value) {
        this.nameLine = null;
        if (value!= null) {
            List<NameLineType> draftl = this.getNameLine();
            draftl.addAll(value);
        }
    }

}
