Revision 30207 branches/v2_0_0_prep/libraries/libTools/src/org/gvsig/tools/persistence/xml/XMLPersistentConstants.java
XMLPersistentConstants.java | ||
---|---|---|
105 | 105 |
* Root state id attribute name |
106 | 106 |
*/ |
107 | 107 |
public static final String ROOSTATE_ID_ATTR = "id_state"; |
108 |
|
|
108 | 109 |
/** |
110 |
* States tag name |
|
111 |
*/ |
|
112 |
public static final String STATES_TAG = "states"; |
|
113 |
|
|
114 |
/** |
|
109 | 115 |
* Root state item format.<br> |
110 | 116 |
* Parameters: |
111 | 117 |
* <ol> |
... | ... | |
115 | 121 |
public static final String ROOTSTATE_VALUE = INDENDT_1 + "<" |
116 | 122 |
+ ROOTSTATE_TAG + " " + ROOSTATE_ID_ATTR |
117 | 123 |
+ "=\"{0}\" xlink:type=\"simple\"" |
118 |
+ " xlink:href=\"#id(''{0}'')\" />"; |
|
124 |
+ " xlink:href=\"" + STATES_TAG |
|
125 |
+ "#id(''{0}'')\" />"; |
|
119 | 126 |
|
120 | 127 |
|
121 | 128 |
|
... | ... | |
123 | 130 |
// State item definition |
124 | 131 |
|
125 | 132 |
/** |
126 |
* States tag name |
|
127 |
*/ |
|
128 |
public static final String STATES_TAG = "states"; |
|
129 |
|
|
130 |
/** |
|
131 | 133 |
* States item start |
132 | 134 |
*/ |
133 | 135 |
public static final String STATES_START = "<" + STATES_TAG + ">"; |
... | ... | |
137 | 139 |
public static final String STATES_END = "</" + STATES_TAG + ">"; |
138 | 140 |
|
139 | 141 |
/** |
140 |
* State item tag name |
|
141 |
*/ |
|
142 |
public static final String STATE_TAG = "state"; |
|
143 |
|
|
144 |
/** |
|
145 | 142 |
* State id attribute name |
146 | 143 |
*/ |
147 | 144 |
public static final String STATE_ID_ATTR = "id"; |
148 | 145 |
|
149 | 146 |
/** |
150 |
* State class attribute name |
|
151 |
*/ |
|
152 |
public static final String STATE_CLASS_ATTR = "class"; |
|
153 |
/** |
|
154 | 147 |
* State item start format.<br> |
155 | 148 |
* Parameters: |
156 | 149 |
* <ol> |
... | ... | |
158 | 151 |
* <li>theClassName</li> |
159 | 152 |
* </ol> |
160 | 153 |
*/ |
161 |
public static final String STATE_START = INDENDT_1 + "<" + STATE_TAG |
|
162 |
+ " " |
|
163 |
+ STATE_ID_ATTR + "=\"{0}\" " + STATE_CLASS_ATTR + "=\"{1}\">"; |
|
154 |
public static final String STATE_START = INDENDT_1 + "<{1} " |
|
155 |
+ STATE_ID_ATTR + "=\"{0}\">"; |
|
164 | 156 |
|
165 | 157 |
/** |
166 |
* State item end.<br> |
|
158 |
* State item end format.<br> |
|
159 |
* Parameters: |
|
160 |
* <ol> |
|
161 |
* <li>id state</li> |
|
162 |
* <li>theClassName</li> |
|
163 |
* </ol> |
|
167 | 164 |
*/ |
168 |
public static final String STATE_END = INDENDT_1 + "</" + STATE_TAG + ">";
|
|
165 |
public static final String STATE_END = INDENDT_1 + "</{1}>";
|
|
169 | 166 |
|
170 | 167 |
|
171 | 168 |
|
... | ... | |
240 | 237 |
public static final String REFERENCE_VALUE = "\n" + INDENDT_4 + "<" |
241 | 238 |
+ REFERENCE_TAG + " " + REFERENCE_ID_ATTR |
242 | 239 |
+ "=\"{0}\" xlink:type=\"simple\"" |
243 |
+ " xlink:href=\"#id(''{0}'')\" />"; |
|
240 |
+ " xlink:href=\"" + STATES_TAG |
|
241 |
+ "#id(''{0}'')\" />"; |
|
244 | 242 |
/** |
245 | 243 |
* list item tag name of data of Value item for list values. |
246 | 244 |
*/ |
Also available in: Unified diff