KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > core > bootstrap > Parm


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.bootstrap;
20
21
22 /**
23  * Corresponds to the <parm> tag in a Wap provisioning doc.
24  *
25  * @author Stefano Nichele
26  *
27  * @version $Id: Parm.java,v 1.1 2005/05/16 17:32:54 nichele Exp $
28  *
29  */

30 public final class Parm {
31
32     // -------------------------------------------------------------- Properties
33

34     private String JavaDoc name;
35     private String JavaDoc value;
36
37     // ------------------------------------------------------------ Constructors
38
public Parm() {
39     }
40
41     public Parm(String JavaDoc name, String JavaDoc value) {
42         this.name = name;
43         setValue(value);
44     }
45
46
47     /**
48      * Gets the name
49      * @return the name of this parm
50      */

51     public String JavaDoc getName() {
52         return name;
53     }
54
55     /**
56      * Sets the name of this parm
57      * @param name the name to sets
58      */

59     public void setName(String JavaDoc name) {
60         this.name = name;
61     }
62
63     /**
64      * Gets the value
65      * @return the value of this parm.
66      */

67     public String JavaDoc getValue() {
68         return value;
69     }
70
71     /**
72      * Sets the value of this parm
73      * @param value the value to sets
74      */

75     public void setValue(String JavaDoc value) {
76         this.value = ( (value == null) ? "" : value );
77     }
78
79
80 }
Popular Tags