Révision 2389
| tmp/org.txm.core/src/java/org/txm/metadatas/Metadatas.java (revision 2389) | ||
|---|---|---|
| 621 | 621 |
|
| 622 | 622 |
//ensure attribute names format |
| 623 | 623 |
for (org.txm.metadatas.Entry e : metas) {
|
| 624 |
e.o1 = AsciiUtils.buildAttributeId(e.o1);
|
|
| 624 |
e.o1 = AsciiUtils.buildId(e.o1); |
|
| 625 | 625 |
} |
| 626 | 626 |
|
| 627 | 627 |
AddAttributeInXml builder = new AddAttributeInXml(infile, tag, metas); |
| tmp/org.txm.core/src/java/org/txm/objects/Project.java (revision 2389) | ||
|---|---|---|
| 1161 | 1161 |
return getCorpusBuild(id, null); |
| 1162 | 1162 |
} |
| 1163 | 1163 |
|
| 1164 |
/** |
|
| 1165 |
* |
|
| 1166 |
* @param id |
|
| 1167 |
* @param clazz the corpus corpusBuild class must be exactly the same (not inherited) |
|
| 1168 |
* @return |
|
| 1169 |
*/ |
|
| 1164 | 1170 |
public CorpusBuild getCorpusBuild(String id, Class<? extends CorpusBuild> clazz) {
|
| 1165 | 1171 |
// System.out.println("CLASS="+clazz);
|
| 1166 | 1172 |
List<CorpusBuild> builds = getCorpusBuilds(); |
| ... | ... | |
| 1169 | 1175 |
if (id == null) {
|
| 1170 | 1176 |
if (clazz == null) {
|
| 1171 | 1177 |
return build; |
| 1172 |
} else if (build.getClass().equals(clazz)) {
|
|
| 1178 |
} else if (build.getClass().equals(clazz) ) {
|
|
| 1173 | 1179 |
return build; |
| 1174 | 1180 |
} |
| 1175 | 1181 |
} else if (id.equals(build.getID())) {
|
| tmp/org.txm.core/src/java/org/txm/importer/scripts/xmltxm/Xml2Ana.groovy (revision 2389) | ||
|---|---|---|
| 187 | 187 |
// wordid = "w_"+textname+"_"+wordid; |
| 188 | 188 |
// } |
| 189 | 189 |
|
| 190 |
wordid = AsciiUtils.buildAttributeId(wordid); // remove characters not compatible with the id attribute value
|
|
| 190 |
wordid = AsciiUtils.buildWordId(wordid); // remove characters not compatible with the id attribute value
|
|
| 191 | 191 |
|
| 192 | 192 |
writer.writeAttribute(type, wordid); |
| 193 | 193 |
|
Formats disponibles : Unified diff