KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > core > dm > ddf > DevDetail


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package sync4j.framework.core.dm.ddf;
20
21
22 /**
23  * Corresponds to the <DevDetail> element in the SyncML devinf DTD
24  *
25  * @author Stefano Nichele @ Funambol
26  *
27  * @version $Id: DevDetail.java,v 1.1 2005/05/16 17:32:55 nichele Exp $
28  */

29
30 public class DevDetail {
31
32     // --------------------------------------------------------------- Constants
33

34    public static final String JavaDoc DEVDETAIL_URI_MAX_DEPTH = "/URI/MaxDepth";
35    public static final String JavaDoc DEVDETAIL_URI_MAX_TOT_LEN = "/URI/MaxToLen" ;
36    public static final String JavaDoc DEVDETAIL_URI_MAX_SEG_LEN = "/URI/MaxSegLen" ;
37    public static final String JavaDoc DEVDETAIL_DEV_TYP = "/DevTyp";
38    public static final String JavaDoc DEVDETAIL_OEM = "/OEM";
39    public static final String JavaDoc DEVDETAIL_FWV = "/FwV";
40    public static final String JavaDoc DEVDETAIL_SWV = "/SwV";
41    public static final String JavaDoc DEVDETAIL_HWV = "/HwV";
42    public static final String JavaDoc DEVDETAIL_LRG_OBJ = "/LrgObj";
43
44
45    // ------------------------------------------------------------ Private data
46
private String JavaDoc uriMaxDepth;
47    private String JavaDoc uriMaxLen;
48    private String JavaDoc uriMaxSegLen;
49    private String JavaDoc devTyp;
50    private String JavaDoc oem;
51    private String JavaDoc fwVersion;
52    private String JavaDoc swVersion;
53    private String JavaDoc hwVersion;
54    private String JavaDoc lrgObj;
55
56
57    // ------------------------------------------------------------ Constructors
58
/** For serialization purposes */
59    protected DevDetail() {}
60
61     /**
62      * Creates a new DevDetail object with the given parameters
63      *
64      * @param uriMaxDepth the maximun depth of the management tree
65      * @param uriMaxLen the maximun total length of any uri
66      * @param uriMaxSegLen the maximun total length of any uri segment
67      * @param devTyp the device type, e.g. PDA, pager, phone
68      * @param oem the original equipment manufacturer
69      * @param fwVersion the firmware version
70      * @param swVersion the software version
71      * @param hwVersion the hardware version
72      * @param lrgObj indicates whether the device supports large object
73      *
74      */

75     public DevDetail(final String JavaDoc uriMaxDepth,
76                      final String JavaDoc uriMaxLen,
77                      final String JavaDoc uriMaxSegLen,
78                      final String JavaDoc devTyp,
79                      final String JavaDoc oem,
80                      final String JavaDoc fwVersion,
81                      final String JavaDoc swVersion,
82                      final String JavaDoc hwVersion,
83                      final String JavaDoc lrgObj) {
84         this.uriMaxDepth = uriMaxDepth;
85         this.uriMaxLen = uriMaxLen;
86         this.uriMaxSegLen = uriMaxSegLen;
87         this.devTyp = devTyp;
88         this.oem = oem;
89         this.fwVersion = fwVersion;
90         this.swVersion = swVersion;
91         this.hwVersion = hwVersion;
92         this.lrgObj = lrgObj;
93     }
94
95
96     // ---------------------------------------------------------- Public methods
97

98
99     /**
100      * Gets the uriMaxDepth
101      *
102      * @return the uriMaxDepth
103      */

104     public String JavaDoc getUriMaxDepth() {
105         return uriMaxDepth;
106     }
107
108     /**
109      * Sets the uriMaxDepth
110      *
111      * @param the uriMaxDepth
112      */

113     public void setUriMaxDepth(String JavaDoc uriMaxDepth) {
114         this.uriMaxDepth = uriMaxDepth;
115     }
116
117     /**
118      * Gets the uriMaxLen
119      *
120      * @return the uriMaxLen
121      */

122     public String JavaDoc getUriMaxLen() {
123         return uriMaxLen;
124     }
125
126     /**
127      * Sets the uriMaxLen
128      *
129      * @param the uriMaxLen
130      */

131     public void setUriMaxLen(String JavaDoc uriMaxLen) {
132         this.uriMaxLen = uriMaxLen;
133     }
134
135     /**
136      * Gets the uriMaxSegLen
137      *
138      * @return the uriMaxSegLen
139      */

140     public String JavaDoc getUriMaxSegLen() {
141         return uriMaxSegLen;
142     }
143
144     /**
145      * Sets the uriMaxSegLen
146      *
147      * @param the uriMaxSegLen
148      */

149     public void setUriMaxSegLen(String JavaDoc uriMaxSegLen) {
150         this.uriMaxSegLen = uriMaxSegLen;
151     }
152
153     /**
154      * Gets the uriMaxDepth
155      *
156      * @return the uriMaxDepth
157      */

158     public String JavaDoc getDevTyp() {
159         return devTyp;
160     }
161
162     /**
163      * Sets the uriMaxDepth
164      *
165      * @param the uriMaxDepth
166      */

167     public void setDevTyp(String JavaDoc devTyp) {
168         this.devTyp = devTyp;
169     }
170
171     /**
172      * Gets the oem
173      *
174      * @return the oem
175      */

176     public String JavaDoc getOem() {
177         return oem;
178     }
179
180     /**
181      * Sets the oem
182      *
183      * @param the oem
184      */

185     public void setOem(String JavaDoc oem) {
186         this.oem = oem;
187     }
188
189     /**
190      * Gets the fwVersion
191      *
192      * @return the fwVersion
193      */

194     public String JavaDoc getFwVersion() {
195         return fwVersion;
196     }
197
198     /**
199      * Sets the fwVersion
200      *
201      * @param the fwVersion
202      */

203     public void setFwVersion(String JavaDoc fwVersion) {
204         this.fwVersion = fwVersion;
205     }
206
207     /**
208      * Gets the swVersion
209      *
210      * @return the swVersion
211      */

212     public String JavaDoc getSwVersion() {
213         return swVersion;
214     }
215
216     /**
217      * Sets the swVersion
218      *
219      * @param the swVersion
220      */

221     public void setSwVersion(String JavaDoc swVersion) {
222         this.swVersion = swVersion;
223     }
224
225     /**
226      * Gets the hwVersion
227      *
228      * @return the hwVersion
229      */

230     public String JavaDoc getHwVersion() {
231         return hwVersion;
232     }
233
234     /**
235      * Sets the hwVersion
236      *
237      * @param the hwVersion
238      */

239     public void setHwVersion(String JavaDoc hwVersion) {
240         this.hwVersion = hwVersion;
241     }
242
243     /**
244      * Gets the lrgObj
245      *
246      * @return the lrgObj
247      */

248     public String JavaDoc getLrgObj() {
249         return lrgObj;
250     }
251
252     /**
253      * Sets the lrgObj
254      *
255      * @param the lrgObj
256      */

257     public void setLrgObj(String JavaDoc lrgObj) {
258         this.lrgObj = lrgObj;
259     }
260
261 }
Popular Tags