
package de.christofreichardt.jaxws.securitypriceservice;

import java.util.ArrayList;
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.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java-Klasse für SecurityPriceServiceRequest complex type.
 * 
 * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
 * 
 * <pre>
 * &lt;complexType name="SecurityPriceServiceRequest">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="UserId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="TransactionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
 *         &lt;choice maxOccurs="25">
 *           &lt;element name="WKN" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *           &lt;element name="ISIN" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;/choice>
 *       &lt;/sequence>
 *       &lt;attribute name="provider" type="{http://www.w3.org/2001/XMLSchema}string" default="OnVista" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SecurityPriceServiceRequest", propOrder = {
    "userId",
    "transactionId",
    "wknOrISIN"
})
public class SecurityPriceServiceRequest {

    @XmlElement(name = "UserId", required = true)
    protected String userId;
    @XmlElement(name = "TransactionId")
    @XmlSchemaType(name = "unsignedInt")
    protected long transactionId;
    @XmlElementRefs({
        @XmlElementRef(name = "ISIN", namespace = "http://de.christofreichardt/SecurityPriceService", type = JAXBElement.class, required = false),
        @XmlElementRef(name = "WKN", namespace = "http://de.christofreichardt/SecurityPriceService", type = JAXBElement.class, required = false)
    })
    protected List<JAXBElement<String>> wknOrISIN;
    @XmlAttribute(name = "provider")
    protected String provider;

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

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

    /**
     * Ruft den Wert der transactionId-Eigenschaft ab.
     * 
     */
    public long getTransactionId() {
        return transactionId;
    }

    /**
     * Legt den Wert der transactionId-Eigenschaft fest.
     * 
     */
    public void setTransactionId(long value) {
        this.transactionId = value;
    }

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

    /**
     * Ruft den Wert der provider-Eigenschaft ab.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getProvider() {
        if (provider == null) {
            return "OnVista";
        } else {
            return provider;
        }
    }

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

}
