1
2 package org.kuali.ole.docstore.model.xmlpojo.config;
3
4 import javax.xml.bind.annotation.*;
5 import java.util.ArrayList;
6 import java.util.List;
7
8
9 /**
10 * <p>Java class for DocumentFormat complex type.
11 * <p/>
12 * <p>The following schema fragment specifies the expected content contained within this class.
13 * <p/>
14 * <pre>
15 * <complexType name="DocumentFormat">
16 * <complexContent>
17 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18 * <sequence>
19 * <element name="fields" type="{}Field" maxOccurs="unbounded" minOccurs="0"/>
20 * </sequence>
21 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
22 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
23 * </restriction>
24 * </complexContent>
25 * </complexType>
26 * </pre>
27 */
28 @XmlAccessorType(XmlAccessType.FIELD)
29 @XmlRootElement(name = "DocumentFormat")
30
31 public class DocumentFormat {
32 @XmlElement(name = "field")
33 protected List<Field> fields;
34 @XmlAttribute
35 protected String id;
36 @XmlAttribute
37 protected String name;
38
39 /**
40 * Gets the value of the fields property.
41 * <p/>
42 * <p/>
43 * This accessor method returns a reference to the live list,
44 * not a snapshot. Therefore any modification you make to the
45 * returned list will be present inside the JAXB object.
46 * This is why there is not a <CODE>set</CODE> method for the fields property.
47 * <p/>
48 * <p/>
49 * For example, to add a new item, do as follows:
50 * <pre>
51 * getFields().add(newItem);
52 * </pre>
53 * <p/>
54 * <p/>
55 * <p/>
56 * Objects of the following type(s) are allowed in the list
57 * {@link Field }
58 */
59 public List<Field> getFields() {
60 if (fields == null) {
61 fields = new ArrayList<Field>();
62 }
63 return this.fields;
64 }
65
66 /**
67 * Gets the value of the id property.
68 *
69 * @return possible object is
70 * {@link String }
71 */
72 public String getId() {
73 return id;
74 }
75
76 /**
77 * Sets the value of the id property.
78 *
79 * @param value allowed object is
80 * {@link String }
81 */
82 public void setId(String value) {
83 this.id = value;
84 }
85
86 /**
87 * Gets the value of the name property.
88 *
89 * @return possible object is
90 * {@link String }
91 */
92 public String getName() {
93 return name;
94 }
95
96 /**
97 * Sets the value of the name property.
98 *
99 * @param value allowed object is
100 * {@link String }
101 */
102 public void setName(String value) {
103 this.name = value;
104 }
105
106 }