1 /*
2 * $HeadURL: $
3 * $Date: $
4 * $Revision: $
5 * $Author: $
6 *
7 * Copyright (c) 2005 MindTree Consulting Ltd.
8 *
9 * This file is part of Insight.
10 *
11 * Insight is free software: you can redistribute it and/or modify it under the
12 * terms of the GNU General Public License as published by the Free Software
13 * Foundation, either version 3 of the License, or (at your option) any later
14 * version.
15 *
16 * Insight is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License along with
22 * Insight. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25 package com.mindtree.techworks.insight.preferences.xmlpersistence;
26
27
28 /**
29 * Contains the constants for the XML Names
30 *
31 * @author Bindul Bhowmik
32 * @version $Revision: 154 $ $Date: 2008-04-03 09:51:05 -0600 (Thu, 03 Apr 2008) $
33 *
34 */
35 public interface PreferenceXMLNameConstants {
36
37 /**
38 * Namespace of the XML file
39 */
40 static final String DEFAULT_NAMESPACE = "http://mindtree.com/techworks/insight/Preferences";
41
42 /**
43 * The XSI Namespace
44 */
45 static final String XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance";
46
47 /**
48 * Value for 'true'
49 */
50 static final String TRUE = "true";
51
52 /**
53 * The XSI 'type' attribute
54 */
55 static final String XMLNAME_XSI_TYPE = "type";
56
57 /**
58 * The 'preference' element name
59 */
60 static final String XMLNAME_PREFERENCE = "preference";
61
62 /**
63 * The 'id' attribute of 'preference' element
64 */
65 static final String XMLNAME_PREFERENCE_ID = "id";
66
67 /**
68 * The 'name' attribute of 'preference' element
69 */
70 static final String XMLNAME_PREFERENCE_NAME = "name";
71
72 /**
73 * The 'isUserModifiable' attribute of 'preference' element
74 */
75 static final String XMLNAME_PREFERENCE_ISUSERMOD = "isUserModifiable";
76
77 /**
78 * The 'displayClass' attribute of 'preference' element
79 */
80 static final String XMLNAME_PREFERENCE_DISPLAY_CLASS = "displayClass";
81
82 /**
83 * the 'isAggregated' attribute of 'preference' element
84 */
85 static final String XMLNAME_PREFERENCE_ISAGGREGATED = "isAggregated";
86
87 /**
88 * The top level 'InsightPreferences' element
89 */
90 static final String XMLNAME_INSIGHT_PREFERENCE = "InsightPreferences";
91
92 /**
93 * The 'preferenceAttribute' element
94 */
95 static final String XMLNAME_PREFERENCE_ATTRIBUTE = "preferenceAttribute";
96
97 /**
98 * The 'id' attribute of 'preferenceAttribute' element
99 */
100 static final String XMLNAME_PREFERENCE_ATT_ID = "id";
101
102 /**
103 * The 'name' attribute of 'preferenceAttribute' element
104 */
105 static final String XMLNAME_PREFERENCE_ATT_NAME = "name";
106
107 /**
108 * The xsi type for the 'ListPreferenceAttribute'
109 */
110 static final String XMLNAME_LIST_PREFERENCE_ATTRIBUTE = "ListPreferenceAttribute";
111
112 /**
113 * The 'defaultValue' element under 'preferenceAttribute' element
114 */
115 static final String XMLNAME_PREF_ATT_DEFAULT_VALUE = "defaultValue";
116
117 /**
118 * The 'value' element under 'preferenceAttribute' element
119 */
120 static final String XMLNAME_PREF_ATT_VALUE = "value";
121
122 /**
123 * The 'encrypted' element under 'preferenceAttribute' element
124 */
125 static final String XMLNAME_PREF_ATT_ENCRYPTED = "encrypted";
126
127 /**
128 * The 'type' element under 'preferenceAttribute' element
129 */
130 static final String XMLNAME_PREF_ATT_TYPE = "type";
131
132 /**
133 * The 'persistant' element under 'preferenceAttribute' element
134 */
135 static final String XMLNAME_PREF_ATT_PERSISTANT = "persistant";
136
137 /**
138 * The 'userModifiable' element under 'preferenceAttribute' element
139 */
140 static final String XMLNAME_PREF_ATT_USER_MOD = "userModifiable";
141
142 /**
143 * The 'options' element under 'preferenceAttribute' element
144 */
145 static final String XMLNAME_PREF_ATT_OPTIONS = "options";
146
147 /**
148 * The 'option' element under 'options' element
149 */
150 static final String XMLNAME_PREF_ATT_OPTION_VAL = "option";
151 }