
package de.christofreichardt.jaxws.securitypriceservice;

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


/**
 * <p>Java-Klasse für SecurityPriceServiceResponse complex type.
 * 
 * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
 * 
 * <pre>
 * &lt;complexType name="SecurityPriceServiceResponse">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
 *         &lt;choice maxOccurs="25">
 *           &lt;element name="SharePrice" type="{http://de.christofreichardt/SecurityPriceService}SharePrice"/>
 *           &lt;element name="IndexPrice" type="{http://de.christofreichardt/SecurityPriceService}IndexPrice"/>
 *           &lt;element name="OptionPrice" type="{http://de.christofreichardt/SecurityPriceService}OptionPrice"/>
 *           &lt;element name="UnknownPrice" type="{http://de.christofreichardt/SecurityPriceService}UnknownPrice"/>
 *         &lt;/choice>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SecurityPriceServiceResponse", propOrder = {
    "timestamp",
    "sharePriceOrIndexPriceOrOptionPrice"
})
public class SecurityPriceServiceResponse {

    @XmlElement(name = "Timestamp", required = true)
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar timestamp;
    @XmlElements({
        @XmlElement(name = "SharePrice", type = SharePrice.class),
        @XmlElement(name = "IndexPrice", type = IndexPrice.class),
        @XmlElement(name = "OptionPrice", type = OptionPrice.class),
        @XmlElement(name = "UnknownPrice", type = UnknownPrice.class)
    })
    protected List<AbstractSecurityPrice> sharePriceOrIndexPriceOrOptionPrice;

    /**
     * Ruft den Wert der timestamp-Eigenschaft ab.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getTimestamp() {
        return timestamp;
    }

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

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

}
