View Javadoc

1   package org.kuali.ole.docstore.model.xmlpojo.ingest;
2   
3   
4   import java.util.ArrayList;
5   import java.util.List;
6   
7   /**
8    * User: tirumalesh.b
9    * Date: 9/2/12 Time: 7:50 PM
10   */
11  public class ResponseDocument {
12      private List<LinkInformation> linkInformation;
13      private List<ResponseDocument> linkedDocuments = new ArrayList<ResponseDocument>();
14      private List<ResponseDocument> linkedInstanceDocuments = new ArrayList<ResponseDocument>();
15      private String  id;
16      private String  category;
17      private String  type;
18      private String  format;
19      private String  uuid;
20      private Content content;
21  
22  
23      public List<ResponseDocument> getLinkedInstanceDocuments() {
24          return linkedInstanceDocuments;
25      }
26  
27      public void setLinkedInstanceDocuments(List<ResponseDocument> linkedInstanceDocuments) {
28          this.linkedInstanceDocuments = linkedInstanceDocuments;
29      }
30  
31      public List<ResponseDocument> getLinkedDocuments() {
32          return linkedDocuments;
33      }
34  
35      public void setLinkedDocuments(List<ResponseDocument> linkedDocuments) {
36          this.linkedDocuments = linkedDocuments;
37      }
38  
39      public Content getContent() {
40          return content;
41      }
42  
43      public void setContent(Content content) {
44          this.content = content;
45      }
46  
47      public List<LinkInformation> getLinkInformation() {
48          return linkInformation;
49      }
50  
51      public void setLinkInformation(List<LinkInformation> linkInformation) {
52          this.linkInformation = linkInformation;
53      }
54  
55      public String getId() {
56          return id;
57      }
58  
59      public void setId(String id) {
60          this.id = id;
61      }
62  
63      public String getCategory() {
64          return category;
65      }
66  
67      public void setCategory(String category) {
68          this.category = category;
69      }
70  
71      public String getType() {
72          return type;
73      }
74  
75      public void setType(String type) {
76          this.type = type;
77      }
78  
79      public String getFormat() {
80          return format;
81      }
82  
83      public void setFormat(String format) {
84          this.format = format;
85      }
86  
87      public String getUuid() {
88          return uuid;
89      }
90  
91      public void setUuid(String uuid) {
92          this.uuid = uuid;
93      }
94  
95      public void addLinkedDocument(ResponseDocument responseDocument) {
96          if (!linkedDocuments.contains(responseDocument)) {
97              this.linkedDocuments.add(responseDocument);
98          }
99      }
100 
101      public void addLinkedInstanseDocument(ResponseDocument responseDocument) {
102         if (!linkedInstanceDocuments.contains(responseDocument)) {
103             this.linkedInstanceDocuments.add(responseDocument);
104         }
105     }
106 }