15,7 → 15,7 |
private static String[] caracteresInterdits = {"\\", "/", ","}; |
|
public static String obtenirCheminParent(String cheminMotCle, String motCle) { |
return cheminMotCle.substring(0, cheminMotCle.length() - motCle.length() -1); |
return cheminMotCle.substring(0, cheminMotCle.length() - motCle.length() -1).toLowerCase(); |
} |
|
public static Object[] construireArbre(String NomRacine, String idRacine, |
48,8 → 48,12 |
.isString().stringValue(); |
String motCle = noeud.get("mot_cle").isString() |
.stringValue(); |
|
// le chemin est mis en minuscule afin de fusionner toutes |
// la variantes minuscules majuscule d'un mot clé |
// qui peuvent poser problème |
String chemin = noeud.get("chemin").isString() |
.stringValue(); |
.stringValue().toLowerCase(); |
|
String cheminParent = MotsClesUtilitaire.obtenirCheminParent(chemin, motCle); |
String parent = parentes.get(cheminParent); |
65,6 → 69,7 |
if(afficherCheckbox) { |
node.setChecked(false); |
} |
|
Node parentNode = arbreMotsCles.getNodeById(parent); |
node.setUserObject(usObj); |
parentNode.appendChild(node); |