KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > engine > source > ContentType


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 package sync4j.framework.engine.source;
19
20 /**
21  * Models a content type info
22  *
23  * @author Stefano Fornari @ Funambol
24  *
25  * @version $Id: ContentType.java,v 1.4 2005/03/02 20:57:37 harrie Exp $
26  */

27 public class ContentType implements java.io.Serializable JavaDoc {
28     public String JavaDoc type = null;
29     public String JavaDoc version = null;
30     public String JavaDoc capDescription = null;
31
32     /** Getter for property type.
33      * @return Value of property type.
34      *
35      */

36     public String JavaDoc getType() {
37         return type;
38     }
39
40     /** Setter for property type.
41      * @param type New value of property type.
42      *
43      */

44     public void setType(String JavaDoc type) {
45         this.type = type;
46     }
47
48     /** Getter for property version.
49      * @return Value of property version.
50      *
51      */

52     public String JavaDoc getVersion() {
53         return version;
54     }
55
56     /** Setter for property version.
57      * @param version New value of property version.
58      *
59      */

60     public void setVersion(String JavaDoc version) {
61         this.version = version;
62     }
63     
64     // ------------------------------------------------------------ Constructors
65

66     public ContentType() {
67     }
68     
69     public ContentType(String JavaDoc type, String JavaDoc version) {
70         this.type = type ;
71         this.version = version;
72     }
73
74 }
Popular Tags