KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > syncclient > sps > common > DataStoreMetadata


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.syncclient.sps.common;
20
21 /**
22  * This class represents metadata information about a DataStore
23  *
24  * @author Stefano Fornari
25  * @version $Id: DataStoreMetadata.java,v 1.3 2005/01/19 11:18:36 fabius Exp $
26  */

27
28 public class DataStoreMetadata {
29
30     // -------------------------------------------------------------- Properties
31

32     private String JavaDoc name = null;
33
34     public String JavaDoc getName() {
35         return this.name;
36     }
37
38     public void setName(String JavaDoc name) {
39         this.name = name;
40     }
41
42     private String JavaDoc displayName = null;
43
44     public String JavaDoc getDisplayName() {
45         return this.displayName;
46     }
47
48     public void setDisplayName(String JavaDoc displayName) {
49         this.displayName = displayName;
50     }
51
52     private String JavaDoc[] syncModes;
53
54     public String JavaDoc[] getSyncModes() {
55         return this.syncModes;
56     }
57
58     public void setSyncModes(String JavaDoc[] syncModes) {
59         this.syncModes = syncModes;
60     }
61
62     private String JavaDoc defaultSync;
63
64     public String JavaDoc getDefaultSync() {
65         return this.defaultSync;
66     }
67
68     public void setDefaultSync(String JavaDoc defaultSync) {
69         this.defaultSync = defaultSync;
70     }
71
72     /**
73      * Does the database require sorting via software (it does not support
74      * sorting on the physical device)?
75      */

76     boolean softSort = false;
77
78     public boolean isSoftSort() {
79         return this.softSort;
80     }
81
82     public void setSoftSort(boolean softSort) {
83         this.softSort = softSort;
84     }
85
86     private String JavaDoc storeVolume;
87
88     public String JavaDoc getStoreVolume() {
89         return this.storeVolume;
90     }
91
92     public void setStoreVolume(String JavaDoc storeVolume) {
93         this.storeVolume = storeVolume;
94     }
95
96     //------------------------------------------------------------- Constructors
97

98     public DataStoreMetadata (String JavaDoc name) {
99         this.name = name;
100     }
101
102     // ---------------------------------------------------------- Public methods
103

104     /**
105      * Returns the display name
106      *
107      * @return this application's display name
108      */

109     public String JavaDoc toString() {
110         return getDisplayName();
111     }
112
113     //---------------------------------------------------------- Private methods
114

115 }
Popular Tags