1 package org.kuali.ole.docstore.common.document.content.instance; 2 3 import com.thoughtworks.xstream.annotations.XStreamAlias; 4 import com.thoughtworks.xstream.annotations.XStreamImplicit; 5 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 import java.util.ArrayList; 11 import java.util.List; 12 13 14 /** 15 * Created by IntelliJ IDEA. 16 * User: vivekb 17 * Date: 8/17/12 18 * Time: 10:47 AM 19 * To change this template use File | Settings | File Templates. 20 * <p/> 21 * <p>Java class for numberOfCirculations complex type. 22 * <p/> 23 * <p>The following schema fragment specifies the expected content contained within this class. 24 * <p/> 25 * <pre> 26 * <complexType name="numberOfCirculations"> 27 * <complexContent> 28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 29 * <sequence> 30 * <element name="checkInLocation" type="{http://ole.kuali.org/standards/ole-instance}checkInLocation" maxOccurs="unbounded" minOccurs="0"/> 31 * </sequence> 32 * </restriction> 33 * </complexContent> 34 * </complexType> 35 * </pre> 36 */ 37 @XmlAccessorType(XmlAccessType.FIELD) 38 @XmlType(name = "numberOfCirculations", propOrder = {"checkInLocation"}) 39 @XStreamAlias("numberOfCirculations") 40 public class NumberOfCirculations { 41 42 @XStreamImplicit(itemFieldName = "checkInLocation") 43 protected List<CheckInLocation> checkInLocation; 44 45 /** 46 * Gets the value of the checkInLocation property. 47 * <p/> 48 * <p/> 49 * This accessor method returns a reference to the live list, 50 * not a snapshot. Therefore any modification you make to the 51 * returned list will be present inside the JAXB object. 52 * This is why there is not a <CODE>set</CODE> method for the checkInLocation property. 53 * <p/> 54 * <p/> 55 * For example, to add a new item, do as follows: 56 * <pre> 57 * getCheckInLocation().add(newItem); 58 * </pre> 59 * <p/> 60 * <p/> 61 * <p/> 62 * Objects of the following type(s) are allowed in the list 63 * {@link CheckInLocation } 64 */ 65 public List<CheckInLocation> getCheckInLocation() { 66 if (checkInLocation == null) { 67 checkInLocation = new ArrayList<CheckInLocation>(); 68 } 69 return this.checkInLocation; 70 } 71 72 public void setCheckInLocation(List<CheckInLocation> checkInLocation) { 73 this.checkInLocation = checkInLocation; 74 } 75 }