Révision 2090
tmp/org.txm.core/src/java/org/txm/metadatas/Metadatas.java (revision 2090) | ||
---|---|---|
95 | 95 |
ArrayList<String> headersList = new ArrayList<String>(); |
96 | 96 |
|
97 | 97 |
/** The isinialize. */ |
98 |
boolean isinialize = false;
|
|
98 |
boolean isInitialize = false;
|
|
99 | 99 |
|
100 | 100 |
/** |
101 | 101 |
* Checks if is initialized. |
... | ... | |
104 | 104 |
*/ |
105 | 105 |
public boolean isInitialized() |
106 | 106 |
{ |
107 |
return isinialize;
|
|
107 |
return isInitialize;
|
|
108 | 108 |
} |
109 | 109 |
|
110 | 110 |
/** The ns context. */ |
... | ... | |
249 | 249 |
} |
250 | 250 |
// write the other attributes |
251 | 251 |
for (int j = 0 ; j < headers.size() ; j++) { |
252 |
if (!headers.get(j).equals("id")) { |
|
253 |
// |
|
254 |
writer.writeStartElement("entry"); |
|
255 |
writer.writeAttribute("id", headers.get(j)); |
|
252 |
if (headers.get(j).equals("id")) { |
|
253 |
continue; |
|
254 |
} |
|
255 |
writer.writeStartElement("entry"); |
|
256 |
writer.writeAttribute("id", headers.get(j)); |
|
257 |
if (dataline.size() <= j) { |
|
258 |
System.out.println("Warning: malformed data line="+dataline+" at="+j+" for header="+headers); |
|
259 |
writer.writeAttribute("value", ""); |
|
260 |
} else { |
|
256 | 261 |
writer.writeAttribute("value", dataline.get(j)); |
257 |
writer.writeEndElement(); |
|
258 | 262 |
} |
263 |
writer.writeEndElement(); |
|
259 | 264 |
} |
260 | 265 |
writer.writeEndElement(); |
261 | 266 |
writer.writeCharacters("\n"); |
... | ... | |
266 | 271 |
|
267 | 272 |
writer.close(); |
268 | 273 |
output.close(); |
269 |
|
|
270 | 274 |
writer.close(); |
271 | 275 |
return true; |
272 | 276 |
} |
... | ... | |
334 | 338 |
this.put(inj.id, inj); |
335 | 339 |
} |
336 | 340 |
|
337 |
isinialize = true;
|
|
341 |
isInitialize = true;
|
|
338 | 342 |
return true; |
339 | 343 |
} |
340 | 344 |
|
tmp/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 2090) | ||
---|---|---|
1488 | 1488 |
nodePath = "instance/" + nodePath; |
1489 | 1489 |
} |
1490 | 1490 |
|
1491 |
if (nodePath == null) { |
|
1492 |
try { |
|
1493 |
Log.severe("TXMPreferences.findNodePath(): no node qualifier has been founded (key = " + key + ", TXMResult = " + result + ").");
|
|
1494 |
} |
|
1495 |
catch(Exception e) { |
|
1496 |
e.printStackTrace(); |
|
1497 |
} |
|
1498 |
} |
|
1491 |
// if (nodePath == null) {
|
|
1492 |
// try {
|
|
1493 |
// Log.warning("TXMPreferences.findNodePath(): no node qualifier has been found (key = " + key + ", TXMResult = " + result + ").");
|
|
1494 |
// }
|
|
1495 |
// catch(Exception e) {
|
|
1496 |
// e.printStackTrace();
|
|
1497 |
// }
|
|
1498 |
// }
|
|
1499 | 1499 |
return nodePath; |
1500 | 1500 |
} |
1501 | 1501 |
|
Formats disponibles : Unified diff