429 lines
19 KiB
Java
429 lines
19 KiB
Java
|
package evaluer;
|
||
|
|
||
|
import java.util.Enumeration;
|
||
|
|
||
|
import cXML.node;
|
||
|
import list.listeAttributsAnalyseWriter;
|
||
|
|
||
|
public class evaluationAttribut {
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Analyse tous les attributs des nodes <style:style>.<br>
|
||
|
* Formatage direct des styles de paragraphe.</br>
|
||
|
* Les attributs doivent contenir le code ‼.<br>
|
||
|
* <br>
|
||
|
* @param nodeStudent : le node de l'étudiant.
|
||
|
* @param sujet : le node du sujet
|
||
|
* @param retour : le node à retourner avec les enfants nommés nameItem.
|
||
|
* @param nameItem : le nom des nodes enfants.
|
||
|
* @param nameElt : le nom de l'élément (node) analysé.
|
||
|
* @return le node <b>retour</b> avec tous les nodes enfants <b>nameItem</b> contenant les différentes analyse.
|
||
|
*/
|
||
|
public static node evalLesAttributAnalyseStyle(node nodeStyleParagraphStudent, node nodeStyleParagraphSujet, node retour, String nameItem, String nameElt) {
|
||
|
|
||
|
Enumeration<String> key = nodeStyleParagraphSujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
if(nodeStyleParagraphSujet.getAttributs().get(k).contains("‼") || nodeStyleParagraphSujet.getAttributs().get(k).contains("‽")){
|
||
|
if(nodeStyleParagraphStudent!=null) {
|
||
|
String valueAttributStudent = nodeStyleParagraphStudent.getAttributs().get(k);
|
||
|
String valueAttributSujet = nodeStyleParagraphSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem,k, valueAttributStudent, valueAttributSujet,nameElt);
|
||
|
retour.getNodes().add(item);
|
||
|
}else {
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = nodeStyleParagraphSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,nameElt);
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(nodeStyleParagraphStudent!=null) {
|
||
|
if(nodeStyleParagraphSujet.retourneEnfantsByNameExist("style:paragraph-properties") && nodeStyleParagraphStudent.retourneEnfantsByNameExist("style:paragraph-properties") ) {
|
||
|
node propertiesSujet = nodeStyleParagraphSujet.retourneFirstEnfantsByName("style:paragraph-properties");
|
||
|
node propertiesStudent = nodeStyleParagraphStudent.retourneFirstEnfantsByName("style:paragraph-properties");
|
||
|
key = propertiesSujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
if(propertiesSujet.getAttributs().get(k).contains("‼") || propertiesSujet.getAttributs().get(k).contains("‽")){
|
||
|
if(propertiesStudent!=null) {
|
||
|
String valueAttributStudent = propertiesStudent.getAttributs().get(k);
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem,k, valueAttributStudent, valueAttributSujet,"style:paragraph-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}else {
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,"style:paragraph-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}else {
|
||
|
node propertiesSujet = nodeStyleParagraphSujet.retourneFirstEnfantsByName("style:paragraph-properties");
|
||
|
key = propertiesSujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
if(propertiesSujet.getAttributs().get(k).contains("‼") || propertiesSujet.getAttributs().get(k).contains("‽")){
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,"style:paragraph-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(nodeStyleParagraphStudent!=null) {
|
||
|
if(nodeStyleParagraphSujet.retourneEnfantsByNameExist("style:text-properties") && nodeStyleParagraphStudent.retourneEnfantsByNameExist("style:text-properties") ) {
|
||
|
node propertiesSujet = nodeStyleParagraphSujet.retourneFirstEnfantsByName("style:text-properties");
|
||
|
node propertiesStudent = nodeStyleParagraphStudent.retourneFirstEnfantsByName("style:text-properties");
|
||
|
key = propertiesSujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
if(propertiesSujet.getAttributs().get(k).contains("‼") || propertiesSujet.getAttributs().get(k).contains("‽")){
|
||
|
if(propertiesStudent!=null) {
|
||
|
String valueAttributStudent = propertiesStudent.getAttributs().get(k);
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem,k, valueAttributStudent, valueAttributSujet,"style:text-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}else {
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,"style:text-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}else {
|
||
|
node propertiesSujet = nodeStyleParagraphSujet.retourneFirstEnfantsByName("style:text-properties");
|
||
|
key = propertiesSujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
if(propertiesSujet.getAttributs().get(k).contains("‼") || propertiesSujet.getAttributs().get(k).contains("‽")){
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = propertiesSujet.getAttributs().get(k).replace("‼", "‽");
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,"style:text-properties");
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Analyse tous les attributs et les contenus d'un node.<br>
|
||
|
* Les attributs et les contenus doivent posséder la carcatère ‽ ou ‼.<br>
|
||
|
* <br>
|
||
|
* @param nodeStudent : le node de l'étudiant.
|
||
|
* @param sujet : le node du sujet
|
||
|
* @param retour : le node à retourner avec les enfants nommés nameItem.
|
||
|
* @param nameItem : le nom des nodes enfants.
|
||
|
* @param nameElt : le nom de l'élément (node) analysé.
|
||
|
* @return le node <b>retour</b> avec tous les nodes enfants <b>nameItem</b> contenant les différentes analyse.
|
||
|
*/
|
||
|
public static node evalLesAttributEtContenuDuNode(node nodeStudent, node sujet, node retour, String nameItem, String nameElt) {
|
||
|
Enumeration<String> key = sujet.getAttributs().keys();
|
||
|
while(key.hasMoreElements()) {
|
||
|
String k = key.nextElement();
|
||
|
|
||
|
if( sujet.getAttributs().get(k).contains("‽")){
|
||
|
if(nodeStudent!=null) {
|
||
|
String valueAttributStudent = nodeStudent.getAttributs().get(k);
|
||
|
String valueAttributSujet = sujet.getAttributs().get(k);
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem,k, valueAttributStudent, valueAttributSujet,nameElt);
|
||
|
retour.getNodes().add(item);
|
||
|
}else {
|
||
|
String valueAttributStudent = "null";
|
||
|
String valueAttributSujet = sujet.getAttributs().get(k);
|
||
|
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem, k, valueAttributStudent, valueAttributSujet,nameElt);
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// evaluer avec evalNameNode, evalNameCreator, evalNameInitialCreator, evalEntetePasActive, evalPiedPagePasActive
|
||
|
if(!sujet.getAttributs().get(k).equals("0")) {
|
||
|
if(k.equals("evalNameNode") && !sujet.getAttributs().get(k).equals("0")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
retour = evaluNameNode(retour,nodeStudent, sujet.getNomElt(), sujet.getAttributs().get("evalNameNode"),sujet.getNomElt());
|
||
|
}else {
|
||
|
retour = evaluNameNode(retour,null, sujet.getNomElt(), sujet.getAttributs().get("evalNameNode"),sujet.getNomElt());
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(k.equals("evalNameCreator") && sujet.getNomElt().equals("dc:creator")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
retour = evaluNameCreator(retour,nodeStudent, nodeStudent.getContenu().get(0), sujet.getAttributs().get("evalNameCreator"),"Editeur");
|
||
|
}else {
|
||
|
retour = evaluNameCreator(retour,null, "Pas trouvé l'auteur", sujet.getAttributs().get("evalNameCreator"),"Editeur");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(k.equals("evalNameInitialCreator") && sujet.getNomElt().equals("meta:initial-creator")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
retour = evaluNameInitialCreator(retour,nodeStudent, nodeStudent.getContenu().get(0), sujet.getAttributs().get("evalNameInitialCreator"),"Créateur");
|
||
|
}else {
|
||
|
retour = evaluNameInitialCreator(retour,null, "Pas trouvé le créateur", sujet.getAttributs().get("evalNameInitialCreator"),"Créateur");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(k.equals("evalEntetePasActive") && sujet.getNomElt().equals("style:header-style")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
int nbA=0;
|
||
|
int nbAs=0;
|
||
|
String reponseSujet = "oui";
|
||
|
String reponseStudent = "oui";
|
||
|
Enumeration<String> key1 = sujet.getAttributs().keys();
|
||
|
while(key1.hasMoreElements()) {
|
||
|
String k1 = key1.nextElement();
|
||
|
if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(k1)) nbA++;
|
||
|
}
|
||
|
if(nbA==0) reponseSujet = "non";
|
||
|
key1 = nodeStudent.getAttributs().keys();
|
||
|
while(key1.hasMoreElements()) {
|
||
|
String k1 = key1.nextElement();
|
||
|
if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(k1)) nbAs++;
|
||
|
}
|
||
|
if(nbAs==0)reponseStudent = "non";
|
||
|
retour = evaluEntetePasActive(retour,reponseStudent,reponseSujet,sujet.getAttributs().get("evalEntetePasActive"),"Entete");
|
||
|
}else {
|
||
|
retour = evaluEntetePasActive(retour,null, "Pas trouvé le node de l'étudiant", sujet.getAttributs().get("evalEntetePasActive"),"Entete");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(k.equals("evalPiedPagePasActive") && sujet.getNomElt().equals("style:footer-style")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
int nbA=0;
|
||
|
int nbAs=0;
|
||
|
String reponseSujet = "oui";
|
||
|
String reponseStudent = "oui";
|
||
|
Enumeration<String> key1 = sujet.getAttributs().keys();
|
||
|
while(key1.hasMoreElements()) {
|
||
|
String k1 = key1.nextElement();
|
||
|
if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(k1)) nbA++;
|
||
|
}
|
||
|
if(nbA==0) reponseSujet = "non";
|
||
|
key1 = nodeStudent.getAttributs().keys();
|
||
|
while(key1.hasMoreElements()) {
|
||
|
String k1 = key1.nextElement();
|
||
|
if(listeAttributsAnalyseWriter.isAttributAnalyseWriter(k1)) nbAs++;
|
||
|
}
|
||
|
if(nbAs==0)reponseStudent = "non";
|
||
|
retour = evaluPiedPagePasActive(retour,reponseStudent,reponseSujet , sujet.getAttributs().get("evalEntetePasActive"),"Pied page");
|
||
|
}else {
|
||
|
retour = evaluPiedPagePasActive(retour,null, "Pas trouvé le node de l'étudiant", sujet.getAttributs().get("evalEntetePasActive"),"Pied page");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if(k.equals("evalNameSequence") && sujet.getNomElt().equals("text:sequence-decl")) {
|
||
|
if(nodeStudent!=null) {
|
||
|
retour = evaluNameSequence(retour,nodeStudent, nodeStudent.getAttributs().get("text:name"), sujet.getAttributs().get("evalNameSequence"),"Sequence");
|
||
|
}else {
|
||
|
retour = evaluNameSequence(retour,null, "Pas trouvé la séquence", sujet.getAttributs().get("evalNameSequence"),"Sequence");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
//avec l'attribut allContent="strict1", allContent="strictSansEspace1" et allContent="environ1"
|
||
|
// il faut ajouter une méthode pour ignorer la casse
|
||
|
if(sujet.getAttributs().get("allContent")!=null) if(!sujet.getAttributs().get("allContent").isEmpty()){
|
||
|
String points ="‽0";
|
||
|
if(sujet.getAttributs().get("allContent").contains("strict")) points = sujet.getAttributs().get("allContent").replace("strict", "‽");
|
||
|
if(sujet.getAttributs().get("allContent").contains("strictSansEspace")) points = sujet.getAttributs().get("allContent").replace("strictSansEspace", "≡‽");
|
||
|
if(sujet.getAttributs().get("allContent").contains("environ")) points = sujet.getAttributs().get("allContent").replace("environ", "¢‽");
|
||
|
|
||
|
String testPoint = points.substring(points.indexOf("‽")+1, points.length());
|
||
|
boolean pasDeProblem = true;
|
||
|
boolean pointSupAUn = false;
|
||
|
|
||
|
try {
|
||
|
if(Integer.valueOf(testPoint)>=1) pointSupAUn=true;
|
||
|
}catch (Exception e) {
|
||
|
System.out.println("Dans le node " + sujet.getNomElt() + ".\nIl y a un problème avec la valeur de l'attribut allContent=\"" + sujet.getAttributs().get("allContent") + "\"");
|
||
|
System.out.println(e.toString());
|
||
|
pasDeProblem=false;
|
||
|
}
|
||
|
|
||
|
if(pasDeProblem && pointSupAUn) {
|
||
|
String allContentSujet = evaluation.withoutCodeAndPointPourRechercheContenuExact(sujet.retourneLesContenusEnfants("")) + points;
|
||
|
String allContentStudent = "null";
|
||
|
if( nodeStudent!=null) allContentStudent = nodeStudent.retourneLesContenusEnfants("");
|
||
|
node item = retourneNoteAvecResultatsAnalyse(nameItem,"Contenu textuel", allContentStudent, allContentSujet, nameElt);
|
||
|
retour.getNodes().add(item);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Evalue le nom du node
|
||
|
*
|
||
|
* @param retour : le node retour qui contient l'item ajouté
|
||
|
* @param nodStudent : le node Student qui peut être null
|
||
|
* @param nameNode : le nom du node
|
||
|
* @param point : les points
|
||
|
* @param nameElt : le nom de l'élément
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluNameNode(node retour, node nodStudent, String nameNode, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nodStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nameNode,"name", nodStudent.getNomElt(),nameNode + "‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nameNode, "Erreur", "Nom du node" , "null", nameNode, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Si le node style:header-style ne possède pas d'attribut alors l'entete n'est pas activé.<br>
|
||
|
* Le nombre d'attribut est null.
|
||
|
* @param retour
|
||
|
* @param nodStudent
|
||
|
* @param nameNode
|
||
|
* @param point
|
||
|
* @param nameElt
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluEntetePasActive(node retour, String nbAttributStudent, String nbAttribut, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nbAttributStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nbAttribut,"active", nbAttributStudent,nbAttribut + "‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nbAttribut, "Erreur", "active" , "null", nbAttribut, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Si le node style:footer-style ne possède pas d'attribut alors l'entete n'est pas activé.<br>
|
||
|
* @param retour
|
||
|
* @param nbAttributStudent
|
||
|
* @param nbAttribut
|
||
|
* @param point
|
||
|
* @param nameElt
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluPiedPagePasActive(node retour, String nbAttributStudent, String nbAttribut, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nbAttributStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nbAttribut,"active", nbAttributStudent,nbAttribut + "‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nbAttribut, "Erreur", "active" , "null", nbAttribut, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Evalue le champ auteur (éditeur).
|
||
|
* @param retour
|
||
|
* @param nodStudent
|
||
|
* @param nameCreator
|
||
|
* @param point
|
||
|
* @param nameElt
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluNameCreator(node retour, node nodStudent, String nameCreator, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nodStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nameCreator,"name", nodStudent.getAttributs().get("creator"),nameCreator + "↑‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nameCreator, "Erreur", "Nom du l'éditeur" , "null", nameCreator, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Evalue le nom de l'auteur (créateur ou premier auteur)
|
||
|
* @param retour
|
||
|
* @param nodStudent
|
||
|
* @param nameCreator
|
||
|
* @param point
|
||
|
* @param nameElt
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluNameInitialCreator(node retour, node nodStudent, String nameCreator, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nodStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nameCreator,"name", nodStudent.getContenu().get(0),nameCreator + "↑‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nameCreator, "Erreur", "Nom du créateur" , "null", nameCreator, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Evalue le nom de la séquence.
|
||
|
* @param retour
|
||
|
* @param nodStudent
|
||
|
* @param nameCreator
|
||
|
* @param point
|
||
|
* @param nameElt
|
||
|
* @return
|
||
|
*/
|
||
|
private static node evaluNameSequence(node retour, node nodStudent, String nameCreator, String point, String nameElt) {
|
||
|
node item = null;
|
||
|
if(nodStudent!=null) {
|
||
|
item = retourneNoteAvecResultatsAnalyse(nameCreator,"name", nodStudent.getAttributs().get("text:name"),nameCreator + "↑‽" +point, nameElt );
|
||
|
}else {
|
||
|
evaluation.IncrementPointTotal(Integer.valueOf(point));
|
||
|
item = new node(nameCreator, "Erreur", "Nom de la séquence" , "null", nameCreator, 2, evaluation.getPointEnJeu(),nameElt);
|
||
|
}
|
||
|
retour.getNodes().add(item);
|
||
|
return retour;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Retourne le node avec les résultats de la comparaison entre les deux valeurs (étudiant et sujet).<br>
|
||
|
* <br>
|
||
|
* @param nameNode
|
||
|
* @param Tst (résultat de la comparaison)
|
||
|
* @param property
|
||
|
* @param valueAttributStudent
|
||
|
* @param valueAttributSujet
|
||
|
* @return
|
||
|
*/
|
||
|
public static node retourneNoteAvecResultatsAnalyse(String nameNode, String property, String valueStudent, String valueSujet, String nameElt) {
|
||
|
String Tst = evaluation.Compare(valueStudent, valueSujet);
|
||
|
int niveau = 3;
|
||
|
if(Tst.contains("Correct")) niveau = 1;
|
||
|
if(Tst.contains("Erreur")) niveau = 2;
|
||
|
valueStudent = evaluation.remplaceCaracteresCodageAttribut(valueStudent);
|
||
|
valueSujet = evaluation.remplaceCaracteresCodageAttribut(valueSujet);
|
||
|
node item = new node(nameNode, Tst, property , valueStudent, valueSujet, niveau, evaluation.getPointEnJeu(),nameElt);
|
||
|
return item;
|
||
|
}
|
||
|
|
||
|
}
|