
package at.vvo.omds.types.omds3Types.r1_3_0.servicetypes;

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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;

import at.vvo.omds.types.omds3Types.r1_3_0.common.PartnerRoleType;


/**
 * Partnerrollen in einer Polizze: Versicherungsnehmer, Versicherte Person
 * 
 * <p>Java-Klasse für PolicyPartnerRole complex type.
 * 
 * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
 * 
 * <pre>
 * &lt;complexType name="PolicyPartnerRole"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="partnerNumber" type="{urn:omds20}Personennr"/&gt;
 *         &lt;element name="partnerRole" type="{urn:omds3CommonServiceTypes-1-1-0}PartnerRoleType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PolicyPartnerRole", propOrder = {
    "partnerNumber",
    "partnerRole"
})
public class PolicyPartnerRole {

    @XmlElement(required = true)
    protected String partnerNumber;
    @XmlSchemaType(name = "string")
    protected List<PartnerRoleType> partnerRole;

    /**
     * Ruft den Wert der partnerNumber-Eigenschaft ab.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPartnerNumber() {
        return partnerNumber;
    }

    /**
     * Legt den Wert der partnerNumber-Eigenschaft fest.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPartnerNumber(String value) {
        this.partnerNumber = value;
    }

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

}
