KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > server > ID


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.server;
20
21 import java.io.Serializable JavaDoc;
22
23 /**
24  * This class represents a GUID.
25  *
26  * @version $Id: ID.java,v 1.1 2005/07/25 15:28:05 nichele Exp $
27  *
28  */

29 public class ID implements Serializable JavaDoc {
30
31     // -------------------------------------------------------------- Properties
32
private String JavaDoc idSpace = "";
33     private int value = 0;
34
35     // ------------------------------------------------------------- Constructor
36

37     public ID(String JavaDoc idSpace) {
38         this.idSpace = idSpace;
39     }
40
41     public int getValue() {
42         return value;
43     }
44
45     public void setValue(int newValue) {
46         this.value = newValue;
47     }
48
49     public String JavaDoc getIdSpace() {
50         return idSpace;
51     }
52
53     public void setIdSpace(String JavaDoc idSpace) {
54         this.idSpace = idSpace;
55     }
56
57 }
58
Popular Tags