0
|
1 /*
|
|
2 * Copyright (c) 2009 Srikalyan Swayampakula.. All rights reserved.
|
|
3 *
|
|
4 * Author : Srikalyan Swayampakula. .
|
|
5 * Name of the File : Link.java .
|
|
6 * Created on : Nov 22, 2009 at 4:54:49 PM .
|
|
7 *
|
|
8 * Redistribution and use in source and binary forms, with or without
|
|
9 * modification, are permitted provided that the following conditions
|
|
10 * are met:
|
|
11 *
|
|
12 * 1. Redistributions of source code must retain the above
|
|
13 * copyright notice, this list of conditions and the following
|
|
14 * disclaimer.
|
|
15 * 2. Redistributions in binary form must reproduce the above
|
|
16 * copyright notice, this list of conditions and the following
|
|
17 * disclaimer in the documentation and/or other materials
|
|
18 * provided with the distribution.
|
|
19 * 3. Neither the name of the University of Georgia nor the names
|
|
20 * of its contributors may be used to endorse or promote
|
|
21 * products derived from this software without specific prior
|
|
22 * written permission.
|
|
23 *
|
|
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
25 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
26 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
27 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
30 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
31 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
32 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
35 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
36 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
37 */
|
|
38 package lsdis;
|
|
39
|
|
40 import java.util.List;
|
|
41
|
|
42 /**
|
|
43 *
|
|
44 * @author Srikalyan Swayampakula.
|
|
45 */
|
|
46 public class Link
|
|
47 {
|
|
48
|
|
49 private List<Doc> docs;
|
|
50 private String resource_type;
|
|
51 private String rel;
|
|
52 private String rev;
|
|
53
|
|
54 public Link(List<Doc> docs, String resource_type, String rel, String rev)
|
|
55 {
|
|
56 this.docs = docs;
|
|
57 this.resource_type = resource_type;
|
|
58 this.rel = rel;
|
|
59 this.rev = rev;
|
|
60 }
|
|
61
|
|
62 public Link()
|
|
63 {
|
|
64 }
|
|
65
|
|
66 public List<Doc> getDocs()
|
|
67 {
|
|
68 return docs;
|
|
69 }
|
|
70
|
|
71 public void setDocs(List<Doc> docs)
|
|
72 {
|
|
73 this.docs = docs;
|
|
74 }
|
|
75
|
|
76 public String getRel()
|
|
77 {
|
|
78 return rel;
|
|
79 }
|
|
80
|
|
81 public void setRel(String rel)
|
|
82 {
|
|
83 this.rel = rel;
|
|
84 }
|
|
85
|
|
86 public String getResource_type()
|
|
87 {
|
|
88 return resource_type;
|
|
89 }
|
|
90
|
|
91 public void setResource_type(String resource_type)
|
|
92 {
|
|
93 this.resource_type = resource_type;
|
|
94 }
|
|
95
|
|
96 public String getRev()
|
|
97 {
|
|
98 return rev;
|
|
99 }
|
|
100
|
|
101 public void setRev(String rev)
|
|
102 {
|
|
103 this.rev = rev;
|
|
104 }
|
|
105 }
|