/** * @author Hyacinthe MENIET * Created on 26 août 07 */ package net.dotmyself.restclient.flickrphotos; 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.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "photo" }) @XmlRootElement(name = "photos") public class Photos { @XmlElement(required = true) protected List photo; @XmlAttribute protected Integer page; @XmlAttribute protected Integer pages; @XmlAttribute protected Integer perpage; @XmlAttribute protected Integer total; /** * Gets the value of the photo 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 photo property. * * For example, to add a new item, do as follows: * getPhoto().add(newItem); * * * Objects of the following type(s) are allowed in the list * {@link Photo } * * */ public List getPhoto() { if (photo == null) { photo = new ArrayList(); } return this.photo; } /** * Gets the value of the page property. * * @return * possible object is * {@link Integer } * */ public Integer getPage() { return page; } /** * Sets the value of the page property. * * @param value * allowed object is * {@link Integer } * */ public void setPage(Integer value) { this.page = value; } /** * Gets the value of the pages property. * * @return * possible object is * {@link Integer } * */ public Integer getPages() { return pages; } /** * Sets the value of the pages property. * * @param value * allowed object is * {@link Integer } * */ public void setPages(Integer value) { this.pages = value; } /** * Gets the value of the perpage property. * * @return * possible object is * {@link Integer } * */ public Integer getPerpage() { return perpage; } /** * Sets the value of the perpage property. * * @param value * allowed object is * {@link Integer } * */ public void setPerpage(Integer value) { this.perpage = value; } /** * Gets the value of the total property. * * @return * possible object is * {@link Integer } * */ public Integer getTotal() { return total; } /** * Sets the value of the total property. * * @param value * allowed object is * {@link Integer } * */ public void setTotal(Integer value) { this.total = value; } }