|
| 1 | + |
| 2 | +package org.javaee7.jaxws.client.gen; |
| 3 | + |
| 4 | +import java.util.ArrayList; |
| 5 | +import java.util.List; |
| 6 | +import javax.xml.bind.annotation.XmlAccessType; |
| 7 | +import javax.xml.bind.annotation.XmlAccessorType; |
| 8 | +import javax.xml.bind.annotation.XmlElement; |
| 9 | +import javax.xml.bind.annotation.XmlType; |
| 10 | + |
| 11 | + |
| 12 | +/** |
| 13 | + * <p>Java class for eBook complex type. |
| 14 | + * |
| 15 | + * <p>The following schema fragment specifies the expected content contained within this class. |
| 16 | + * |
| 17 | + * <pre> |
| 18 | + * <complexType name="eBook"> |
| 19 | + * <complexContent> |
| 20 | + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| 21 | + * <sequence> |
| 22 | + * <element name="notes" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> |
| 23 | + * <element name="numPages" type="{http://www.w3.org/2001/XMLSchema}int"/> |
| 24 | + * <element name="price" type="{http://www.w3.org/2001/XMLSchema}double"/> |
| 25 | + * <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> |
| 26 | + * </sequence> |
| 27 | + * </restriction> |
| 28 | + * </complexContent> |
| 29 | + * </complexType> |
| 30 | + * </pre> |
| 31 | + * |
| 32 | + * |
| 33 | + */ |
| 34 | +@XmlAccessorType(XmlAccessType.FIELD) |
| 35 | +@XmlType(name = "eBook", propOrder = { |
| 36 | + "notes", |
| 37 | + "numPages", |
| 38 | + "price", |
| 39 | + "title" |
| 40 | +}) |
| 41 | +public class EBook { |
| 42 | + |
| 43 | + @XmlElement(nillable = true) |
| 44 | + protected List<String> notes; |
| 45 | + protected int numPages; |
| 46 | + protected double price; |
| 47 | + protected String title; |
| 48 | + |
| 49 | + /** |
| 50 | + * Gets the value of the notes property. |
| 51 | + * |
| 52 | + * <p> |
| 53 | + * This accessor method returns a reference to the live list, |
| 54 | + * not a snapshot. Therefore any modification you make to the |
| 55 | + * returned list will be present inside the JAXB object. |
| 56 | + * This is why there is not a <CODE>set</CODE> method for the notes property. |
| 57 | + * |
| 58 | + * <p> |
| 59 | + * For example, to add a new item, do as follows: |
| 60 | + * <pre> |
| 61 | + * getNotes().add(newItem); |
| 62 | + * </pre> |
| 63 | + * |
| 64 | + * |
| 65 | + * <p> |
| 66 | + * Objects of the following type(s) are allowed in the list |
| 67 | + * {@link String } |
| 68 | + * |
| 69 | + * |
| 70 | + */ |
| 71 | + public List<String> getNotes() { |
| 72 | + if (notes == null) { |
| 73 | + notes = new ArrayList<String>(); |
| 74 | + } |
| 75 | + return this.notes; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Gets the value of the numPages property. |
| 80 | + * |
| 81 | + */ |
| 82 | + public int getNumPages() { |
| 83 | + return numPages; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Sets the value of the numPages property. |
| 88 | + * |
| 89 | + */ |
| 90 | + public void setNumPages(int value) { |
| 91 | + this.numPages = value; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Gets the value of the price property. |
| 96 | + * |
| 97 | + */ |
| 98 | + public double getPrice() { |
| 99 | + return price; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Sets the value of the price property. |
| 104 | + * |
| 105 | + */ |
| 106 | + public void setPrice(double value) { |
| 107 | + this.price = value; |
| 108 | + } |
| 109 | + |
| 110 | + /** |
| 111 | + * Gets the value of the title property. |
| 112 | + * |
| 113 | + * @return |
| 114 | + * possible object is |
| 115 | + * {@link String } |
| 116 | + * |
| 117 | + */ |
| 118 | + public String getTitle() { |
| 119 | + return title; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * Sets the value of the title property. |
| 124 | + * |
| 125 | + * @param value |
| 126 | + * allowed object is |
| 127 | + * {@link String } |
| 128 | + * |
| 129 | + */ |
| 130 | + public void setTitle(String value) { |
| 131 | + this.title = value; |
| 132 | + } |
| 133 | + |
| 134 | +} |
0 commit comments