View Javadoc

1   /*
2    * Copyright 2012 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Class DocumentMetaData to represent entity of type DocumentMetaData.
27   * 
28   * @author Rajesh Chowdary K
29   * @created Jun 14, 2012
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  }