1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  
16  package org.kuali.ole.docstore.model.xmlpojo.metadata;
17  
18  import com.thoughtworks.xstream.annotations.XStreamAlias;
19  import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
20  import com.thoughtworks.xstream.annotations.XStreamImplicit;
21  
22  import java.util.ArrayList;
23  import java.util.List;
24  
25  
26  
27  
28  
29  
30  
31  @XStreamAlias("document")
32  public class DocumentMetaData {
33  
34      @XStreamAsAttribute
35      private String category;
36      @XStreamAsAttribute
37      private String type;
38      @XStreamAsAttribute
39      private String format;
40  
41      @XStreamImplicit
42      @XStreamAlias("fields")
43      private List<Field> fields = null;
44  
45      public String getCategory() {
46          return category;
47      }
48  
49      public void setCategory(String category) {
50          this.category = category;
51      }
52  
53      public String getType() {
54          return type;
55      }
56  
57      public void setType(String type) {
58          this.type = type;
59      }
60  
61      public String getFormat() {
62          return format;
63      }
64  
65      public void setFormat(String format) {
66          this.format = format;
67      }
68  
69      public List<Field> getFields() {
70          if (fields == null)
71              fields = new ArrayList<Field>();
72          return fields;
73      }
74  
75      public void setFields(List<Field> fields) {
76          this.fields = fields;
77      }
78  
79  }