package org.talend.types.test.library.common._1; 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; /** * <p>Java class for BookType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="BookType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Title" type="{http://types.talend.org/test/Library/Common/1.0}LongNameType" maxOccurs="3"/> * <element name="Author" type="{http://types.talend.org/test/Library/Common/1.0}PersonType" maxOccurs="unbounded"/> * <element name="ISBN" type="{http://types.talend.org/test/Library/Common/1.0}ISBNType"/> * <element name="Publisher" type="{http://types.talend.org/test/Library/Common/1.0}LongNameType" maxOccurs="unbounded"/> * <element name="Year_published"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <length value="4"/> * </restriction> * </simpleType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BookType", propOrder = { "title", "author", "isbn", "publisher", "yearPublished" }) public class BookType { @XmlElement(name = "Title", required = true) protected List<String> title; @XmlElement(name = "Author", required = true) protected List<PersonType> author; @XmlElement(name = "ISBN", required = true) protected String isbn; @XmlElement(name = "Publisher", required = true) protected List<String> publisher; @XmlElement(name = "Year_published", required = true) protected String yearPublished; /** * Gets the value of the title 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 title property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTitle().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getTitle() { if (title == null) { title = new ArrayList<String>(); } return this.title; } /** * Gets the value of the author 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 author property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAuthor().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PersonType } * * */ public List<PersonType> getAuthor() { if (author == null) { author = new ArrayList<PersonType>(); } return this.author; } /** * Gets the value of the isbn property. * * @return * possible object is * {@link String } * */ public String getISBN() { return isbn; } /** * Sets the value of the isbn property. * * @param value * allowed object is * {@link String } * */ public void setISBN(String value) { this.isbn = value; } /** * Gets the value of the publisher 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 publisher property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPublisher().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getPublisher() { if (publisher == null) { publisher = new ArrayList<String>(); } return this.publisher; } /** * Gets the value of the yearPublished property. * * @return * possible object is * {@link String } * */ public String getYearPublished() { return yearPublished; } /** * Sets the value of the yearPublished property. * * @param value * allowed object is * {@link String } * */ public void setYearPublished(String value) { this.yearPublished = value; } }