View Javadoc
1   package org.kuali.ole.docstore.common.document.content.instance;
2   
3   
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: Pranitha
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 extentOfOwnership complex type.
22   * <p/>
23   * <p>The following schema fragment specifies the expected content contained within this class.
24   * <p/>
25   * <pre>
26   * &lt;complexType name="extentOfOwnership">
27   *   &lt;complexContent>
28   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29   *       &lt;sequence>
30   *         &lt;element name="textualHoldings" type="{http://www.w3.org/2001/XMLSchema}string"/>
31   *         &lt;element name="note" type="{http://ole.kuali.org/standards/ole-instance}note" maxOccurs="unbounded" minOccurs="0"/>
32   *         &lt;element name="type" type="{http://www.w3.org/2001/XMLSchema}string"/>
33   *       &lt;/sequence>
34   *     &lt;/restriction>
35   *   &lt;/complexContent>
36   * &lt;/complexType>
37   * </pre>
38   */
39  @XmlAccessorType(XmlAccessType.FIELD)
40  @XmlType(name = "extentOfOwnership", propOrder = {
41          "textualHoldings",
42          "note",
43          "type",
44          "coverages",
45          "perpetualAccesses"
46  })
47  public class ExtentOfOwnership {
48  
49      @XmlElement(required = true)
50      protected String textualHoldings;
51      @XStreamImplicit(itemFieldName = "note")
52      protected List<Note> note;
53      @XmlElement(required = true)
54      protected String type;
55  
56      //@XmlElement(name = "coverages")
57      protected Coverages coverages;
58      //@XmlElement(name = "perpetualAccesses")
59      protected PerpetualAccesses perpetualAccesses;
60  
61  
62      /**
63       * Gets the value of the textualHoldings property.
64       *
65       * @return possible object is
66       *         {@link String }
67       */
68      public String getTextualHoldings() {
69          return textualHoldings;
70      }
71  
72      /**
73       * Sets the value of the textualHoldings property.
74       *
75       * @param value allowed object is
76       *              {@link String }
77       */
78      public void setTextualHoldings(String value) {
79          this.textualHoldings = value;
80      }
81  
82      /**
83       * Gets the value of the note property.
84       * <p/>
85       * <p/>
86       * This accessor method returns a reference to the live list,
87       * not a snapshot. Therefore any modification you make to the
88       * returned list will be present inside the JAXB object.
89       * This is why there is not a <CODE>set</CODE> method for the note property.
90       * <p/>
91       * <p/>
92       * For example, to add a new item, do as follows:
93       * <pre>
94       *    getNote().add(newItem);
95       * </pre>
96       * <p/>
97       * <p/>
98       * <p/>
99       * Objects of the following type(s) are allowed in the list
100      * {@link Note }
101      */
102     public List<Note> getNote() {
103         if (note == null) {
104             note = new ArrayList<Note>();
105         }
106         return this.note;
107     }
108 
109     /**
110      * Gets the value of the type property.
111      *
112      * @return possible object is
113      *         {@link String }
114      */
115     public String getType() {
116         return type;
117     }
118 
119     /**
120      * Sets the value of the type property.
121      *
122      * @param value allowed object is
123      *              {@link String }
124      */
125     public void setType(String value) {
126         this.type = value;
127     }
128 
129     /**
130      * Gets the value of the coverages property.
131      *
132      * @return possible object is
133      *         {@link org.kuali.ole.docstore.common.document.content.instance.Coverages }
134      */
135     public Coverages getCoverages() {
136         return coverages;
137     }
138 
139     /**
140      * Sets the value of the coverages property.
141      *
142      * @param value allowed object is
143      *              {@link org.kuali.ole.docstore.common.document.content.instance.Coverages }
144      */
145     public void setCoverages(Coverages value) {
146         this.coverages = value;
147     }
148 
149     /**
150      * Gets the value of the perpetualAccesses property.
151      *
152      * @return possible object is
153      *         {@link org.kuali.ole.docstore.common.document.content.instance.PerpetualAccesses }
154      */
155     public PerpetualAccesses getPerpetualAccesses() {
156         return perpetualAccesses;
157     }
158 
159     /**
160      * Sets the value of the perpetualAccesses property.
161      *
162      * @param value allowed object is
163      *              {@link org.kuali.ole.docstore.common.document.content.instance.PerpetualAccesses }
164      */
165     public void setPerpetualAccesses(PerpetualAccesses value) {
166         this.perpetualAccesses = value;
167     }
168 
169 
170 }