KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > util > NameValueType


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.util;
21
22 import java.io.*;
23
24
25 /**
26  *
27  *
28  */

29 public class NameValueType extends NameValue implements Serializable {
30     private String JavaDoc type;
31     private String JavaDoc prepend;
32
33     public NameValueType(String JavaDoc name, Object JavaDoc value, String JavaDoc type, String JavaDoc prepend) {
34         super(name, value);
35         this.type = type;
36         this.prepend = prepend;
37     }
38
39     /**
40      *
41      * @return Returns type.
42      */

43     public String JavaDoc getType() {
44         return type;
45     }
46
47     /**
48      *
49      * @return Returns prepend
50      */

51     public String JavaDoc getPrepend() {
52         return prepend;
53     }
54
55     /**
56      *
57      * @param type The value to set.
58      */

59     public void setType(String JavaDoc type) {
60         this.type = type;
61     }
62
63     /**
64      *
65      * @param prepend The prepend to set.
66      */

67     public void setPrepend(String JavaDoc prepend) {
68         this.prepend = prepend;
69     }
70 }
71
Popular Tags