Mercurial > repos > ganjoo > webservice_toolsuite
comparison WebServiceToolWorkflow/ParserForWADL/src/lsdis/Resource.java @ 0:d5cd409b8a18 default tip
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author | ganjoo |
---|---|
date | Tue, 07 Jun 2011 18:00:50 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d5cd409b8a18 |
---|---|
1 /* | |
2 * Copyright (c) 2009 Srikalyan Swayampakula.. All rights reserved. | |
3 * | |
4 * Author : Srikalyan Swayampakula. . | |
5 * Name of the File : Resource.java . | |
6 * Created on : Nov 22, 2009 at 3:22:09 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 Resource | |
47 { | |
48 | |
49 public static final String QUERY_TYPE_DEFAULT = "application/x-www-form-urlencoded"; | |
50 private List<Doc> docs; | |
51 private List<Param> params; | |
52 private List<Method> methods; | |
53 private List<Resource> resources; | |
54 private String id; | |
55 private String queryType; | |
56 private String path; | |
57 | |
58 public Resource() | |
59 { | |
60 } | |
61 | |
62 public Resource(List<Doc> docs, List<Param> params, List<Method> methods, List<Resource> resources, String id, String queryType, String path) | |
63 { | |
64 this.docs = docs; | |
65 this.params = params; | |
66 this.methods = methods; | |
67 this.resources = resources; | |
68 this.id = id; | |
69 if (queryType != null) | |
70 { | |
71 this.queryType = queryType; | |
72 } | |
73 else | |
74 { | |
75 queryType = QUERY_TYPE_DEFAULT; | |
76 } | |
77 this.path = path; | |
78 } | |
79 | |
80 public List<Doc> getDocs() | |
81 { | |
82 return docs; | |
83 } | |
84 | |
85 public void setDocs(List<Doc> docs) | |
86 { | |
87 this.docs = docs; | |
88 } | |
89 | |
90 public String getId() | |
91 { | |
92 return id; | |
93 } | |
94 | |
95 public void setId(String id) | |
96 { | |
97 this.id = id; | |
98 } | |
99 | |
100 public List<Method> getMethods() | |
101 { | |
102 return methods; | |
103 } | |
104 | |
105 public void setMethods(List<Method> methods) | |
106 { | |
107 this.methods = methods; | |
108 } | |
109 | |
110 public List<Param> getParams() | |
111 { | |
112 return params; | |
113 } | |
114 | |
115 public void setParams(List<Param> params) | |
116 { | |
117 this.params = params; | |
118 } | |
119 | |
120 public String getPath() | |
121 { | |
122 return path; | |
123 } | |
124 | |
125 public void setPath(String path) | |
126 { | |
127 this.path = path; | |
128 } | |
129 | |
130 public String getQueryType() | |
131 { | |
132 return queryType; | |
133 } | |
134 | |
135 public void setQueryType(String queryType) | |
136 { | |
137 this.queryType = queryType; | |
138 } | |
139 | |
140 public List<Resource> getResources() | |
141 { | |
142 return resources; | |
143 } | |
144 | |
145 public void setResources(List<Resource> resources) | |
146 { | |
147 this.resources = resources; | |
148 } | |
149 } |