All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.example.stock.async.StockOffer Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version

package com.example.stock.async;

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.XmlType;


/**
 * 

Java class for StockOffer complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="StockOffer">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="symbol" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="price" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="list" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "StockOffer", propOrder = { "symbol", "price", "name", "list" }) public class StockOffer { @XmlElement(required = true) protected String symbol; @XmlElement(required = true, type = Float.class, nillable = true) protected Float price; protected String name; protected List list; /** * Gets the value of the symbol property. * * @return * possible object is * {@link String } * */ public String getSymbol() { return symbol; } /** * Sets the value of the symbol property. * * @param value * allowed object is * {@link String } * */ public void setSymbol(String value) { this.symbol = value; } /** * Gets the value of the price property. * * @return * possible object is * {@link Float } * */ public Float getPrice() { return price; } /** * Sets the value of the price property. * * @param value * allowed object is * {@link Float } * */ public void setPrice(Float value) { this.price = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the list property. * *

* 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 set method for the list property. * *

* For example, to add a new item, do as follows: *

     *    getList().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getList() { if (list == null) { list = new ArrayList(); } return this.list; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy