Back to project page Book-MetaSearch.
The source code is released under:
Apache License
If you think the Android project Book-MetaSearch listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ECS.client.jax; /*w ww . j a v a 2 s. co m*/ import java.util.ArrayList; import java.util.List; public class Promotions { protected List<Promotion> promotion; /** * Gets the value of the promotion 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 promotion property. * * <p> * For example, to add a new item, do as follows: * <pre> * getPromotion().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Promotion } * * */ public List<Promotion> getPromotion() { if (promotion == null) { promotion = new ArrayList<Promotion>(); } return this.promotion; } }