View Javadoc
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   * <p>Java class for coverages complex type.
16   * <p/>
17   * <p>The following schema fragment specifies the expected content contained within this class.
18   * <p/>
19   * <pre>
20   * &lt;complexType name="coverages">
21   *   &lt;complexContent>
22   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23   *       &lt;sequence>
24   *         &lt;element name="coverage" type="{http://ole.kuali.org/standards/ole-eInstance}coverage" maxOccurs="unbounded" minOccurs="0"/>
25   *       &lt;/sequence>
26   *     &lt;/restriction>
27   *   &lt;/complexContent>
28   * &lt;/complexType>
29   * </pre>
30   */
31  @XmlAccessorType(XmlAccessType.FIELD)
32  @XmlType(name = "coverages", namespace = "http://ole.kuali.org/standards/ole-eInstance", propOrder = {
33          "coverage"
34  })
35  @XStreamAlias("coverages")
36  public class Coverages {
37  
38      @XmlElement(namespace = "http://ole.kuali.org/standards/ole-eInstance")
39      @XStreamImplicit(itemFieldName = "coverage")
40      protected List<Coverage> coverage;
41  
42      /**
43       * Gets the value of the coverage property.
44       * <p/>
45       * <p/>
46       * This accessor method returns a reference to the live list,
47       * not a snapshot. Therefore any modification you make to the
48       * returned list will be present inside the JAXB object.
49       * This is why there is not a <CODE>set</CODE> method for the coverage property.
50       * <p/>
51       * <p/>
52       * For example, to add a new item, do as follows:
53       * <pre>
54       *    getCoverage().add(newItem);
55       * </pre>
56       * <p/>
57       * <p/>
58       * <p/>
59       * Objects of the following type(s) are allowed in the list
60       * {@link org.kuali.ole.docstore.common.document.content.instance.Coverage }
61       */
62      public List<Coverage> getCoverage() {
63          if (coverage == null) {
64              coverage = new ArrayList<Coverage>();
65          }
66          return this.coverage;
67      }
68  
69  }