KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > up2date > UpdatePackage


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 /*
25  * Created on 2003-apr-04
26  *
27  * To change the template for this generated file go to
28  * Window>Preferences>Java>Code Generation>Code and Comments
29  */

30 package org.infoglue.cms.entities.up2date;
31
32 import java.io.UnsupportedEncodingException JavaDoc;
33 import java.net.URLDecoder JavaDoc;
34
35
36 /**
37  * @author ss
38  *
39  * To change the template for this generated type comment go to
40  * Window>Preferences>Java>Code Generation>Code and Comments
41  */

42 public class UpdatePackage {
43     private String JavaDoc packageId;
44     private String JavaDoc url;
45     private String JavaDoc detailsUrl;
46     private String JavaDoc description;
47     private String JavaDoc title;
48     private Integer JavaDoc binarySize;
49     private String JavaDoc binaryUrl;
50
51
52     /**
53      * @return
54      */

55     public String JavaDoc getDescription() {
56         return description;
57     }
58
59     /**
60      * @return
61      */

62     public String JavaDoc getPackageId() {
63         return packageId;
64     }
65
66     /**
67      * @return
68      */

69     public String JavaDoc getUrl() {
70         return url;
71     }
72
73     public String JavaDoc getDecodedUrl() {
74         String JavaDoc ret = "";
75         try {
76             ret = URLDecoder.decode(url, "UTF-8");
77         } catch (UnsupportedEncodingException JavaDoc e) {
78             e.printStackTrace();
79         }
80         return ret;
81     }
82
83     public String JavaDoc getDecodedDetailsUrl() {
84         String JavaDoc ret = "";
85         try {
86             ret = URLDecoder.decode(detailsUrl, "UTF-8");
87         } catch (UnsupportedEncodingException JavaDoc e) {
88             e.printStackTrace();
89         }
90         return ret;
91     }
92
93     public String JavaDoc getDecodedBinaryUrl() {
94         String JavaDoc ret = "";
95         try {
96             ret = URLDecoder.decode(binaryUrl, "UTF-8");
97         } catch (UnsupportedEncodingException JavaDoc e) {
98             e.printStackTrace();
99         }
100         return ret;
101     }
102     
103     /**
104      * @param string
105      */

106     public void setDescription(String JavaDoc string) {
107         description = string;
108     }
109
110     /**
111      * @param string
112      */

113     public void setPackageId(String JavaDoc string) {
114         packageId = string;
115     }
116
117     /**
118      * @param string
119      */

120     public void setUrl(String JavaDoc string) {
121         url = string;
122     }
123
124     /**
125      * @return
126      */

127     public String JavaDoc getDetailsUrl() {
128         return detailsUrl;
129     }
130
131     /**
132      * @param string
133      */

134     public void setDetailsUrl(String JavaDoc string) {
135         detailsUrl = string;
136     }
137
138     /**
139      * @return
140      */

141     public String JavaDoc getTitle() {
142         return title;
143     }
144
145     /**
146      * @param string
147      */

148     public void setTitle(String JavaDoc string) {
149         title = string;
150     }
151
152     public Integer JavaDoc getBinarySize()
153     {
154         return binarySize;
155     }
156     public void setBinarySize(Integer JavaDoc binarySize)
157     {
158         this.binarySize = binarySize;
159     }
160     public String JavaDoc getBinaryUrl()
161     {
162         return binaryUrl;
163     }
164     public void setBinaryUrl(String JavaDoc binaryUrl)
165     {
166         this.binaryUrl = binaryUrl;
167     }
168 }
169
Popular Tags