MAJ V4.4.2 (ajout de la méthode evalFormatageDirect)

This commit is contained in:
pablo rodriguez 2022-12-23 19:24:59 +01:00
parent 4d68d710ee
commit 4193e9ea06
68 changed files with 750 additions and 359 deletions

Binary file not shown.

Binary file not shown.

201
bin/.gitignore vendored
View File

@ -1,208 +1,8 @@
/MEPTL/
/calcul/
/downnode.svg
/downnodemini.png
/entetenon.png
/entetenon.svg
/entetenonmini.png
/enteteoui.png
/enteteoui.svg
/enteteouimini.png
/et.png
/et.svg
/etmini.png
/evalcalc.png
/evalnamepage.png
/evalnamepage.svg
/evalnamepagemini.png
/evalnamesequence.png
/evalnamesequence.svg
/evalnamesequencemini.png
/evalnode.svg
/evalnodemini.png
/evalnumeroabsoluepage.png
/evalnumeroabsoluepage.svg
/evalnumeroabsoluepagemini.png
/evalnumeropage.png
/evalnumeropage.svg
/evalnumeropageancrage.png
/evalnumeropageancrage.svg
/evalnumeropageancragemini.png
/evalnumeropagemini.png
/evaltextuserdefined.png
/evaltextuserdefined.svg
/evaltextuserdefinedmini.png
/evaluate.png
/evaluate.svg
/evaluatemax.png
/evaluatemini.png
/evaluer.png
/evaluer.svg
/evaluer/
/evaluerFalse.svg
/evaluerTrue.svg
/evaluerfalse.png
/evaluerfalsemini.png
/evaluermini.png
/evaluerstyle.png
/evaluerstyle.svg
/evaluerstylemini.png
/evaluertouslesenfants.png
/evaluertouslesenfants.svg
/evaluertouslesenfantsfaux.png
/evaluertouslesenfantsfaux.svg
/evaluertouslesenfantsfauxmini.png
/evaluertouslesenfantsmaxi.png
/evaluertouslesenfantsmini.png
/evaluertouslesstylesparagraphes.png
/evaluertouslesstylesparagraphes.svg
/evaluertouslesstylesparagraphesmini.png
/evaluertrue.png
/evaluertruemini.png
/evalwriter.ico
/evalwriter.png
/evalwriter.svg
/evalwriter32.png
/exit.png
/exit.svg
/exitmini.png
/expandAll.svg
/expandNode.svg
/expandall.png
/expandallmini.png
/expandnode.png
/expandnodemini.png
/false.png
/false.svg
/falsemini.png
/feedback.png
/feedback.svg
/feedbackmini.png
/feedbackstudent.png
/feedbackstudentmini.png
/fenetres/
/fichierAnalyse.png
/fichierAnalyseInfo.png
/fichierAnalyseInfo2.png
/fichierAnalyseInfo2max.png
/fichierAnalyseInfo2mini.png
/fichierAnalyseInfomax.png
/fichierAnalyseInfomini.png
/fichierAnalyseModif.png
/fichierAnalyseModifmax.png
/fichierAnalyseModifmini.png
/fichierAnalysemax.png
/fichierAnalysemini.png
/fichierCSV.png
/fichierCSVInfo.png
/fichierCSVInfoXML.png
/fichierCSVInfoXMLmax.png
/fichierCSVInfoXMLmini.png
/fichierCSVInfomax.png
/fichierCSVInfomini.png
/fichierCSVmax.png
/fichierCSVmini.png
/fichierODF.png
/fichierODFmax.png
/fichierODFmini.png
/fichierSVG.png
/fichierSVGmax.png
/fichierSVGmini.png
/fichier_analyse.svg
/fichier_analyseXML info.svg
/fichier_analyseXML info1.svg
/fichier_analyseXML.svg
/fichier_analyse_ODF.svg
/fichier_csv_student.svg
/fichier_csv_student_info.svg
/fichier_csv_student_xml.svg
/fichier_svg.svg
/fichieretudiant.png
/fichieretudiant.svg
/fichieretudiantmini.png
/fichiergestion.png
/fichiergestion.svg
/heritagestyle.png
/heritagestyle.svg
/heritagestylemini.png
/heritagestyletouslesnodes.png
/heritagestyletouslesnodes.svg
/heritagestyletouslesnodesmini.png
/indexfigure.png
/indexfigure.svg
/indexmatiere.png
/indexmatiere.svg
/information.png
/information.svg
/informationmaxi.png
/informationmini.png
/informationmultiple.png
/informationmultiple.svg
/informationmultiplemini.png
/intervalle.png
/intervalle.svg
/intervallemini.png
/lesnodesevaluer.png
/lesnodesevaluer.svg
/lesnodesevaluermaxi.png
/lesnodesevaluermini.png
/list/
/loadpreference.svg
/loadpreferencemini.png
/loadpreferences.png
/logo.png
/logo.svg
/marquenode.png
/marquenode.svg
/marquenodemini.png
/meta.png
/meta.svg
/new.png
/nocsvstudent.png
/nocsvstudentmini.png
/nodeFichier.png
/nodeFichier_FichierAnalyse.svg
/nodeFichiermax.png
/nodeFichiermini.png
/nodetail.png
/nodetail.svg
/nodetailfeedback.png
/nodetailfeedbackmini.png
/nodetailmini.png
/nofeedback.png
/nofeedbackmini.png
/nofeedbackstudent.png
/nofeedbackstudent.svg
/nofeedbackstudentmini.png
/nologo.png
/nonotestudent.png
/nonotestudentl.svg
/nonotestudentmini.png
/notestudent.png
/notestudentmini.png
/noverifhistoriquestudent.png
/noverifhistoriquestudentmini.png
/nozipstudent.png
/nozipstudentmini.png
/numerotationchapitre.png
/numerotationchapitre.svg
/objet.png
/objet.svg
/odreparagraphe.png
/odreparagraphemini.png
/open.png
/open.svg
/open2.png
/openmax.png
/openmini.png
/ordreparagraphe.svg
/ou.png
/ouenviron.png
/ouenviron.svg
/ouenvironmini.png
/ouenvironsimilitude.png
/ouenvironsimilitude.svg
/ouenvironsimilitudemini.png
/oumini.png
/oustrict.png
/oustrict.svg
@ -336,3 +136,4 @@
/zipstudent.png
/zipstudent.svg
/zipstudentmini.png
/resources/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/informationmultiple.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

141
bin/informationmultiple.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="45"
height="45"
viewBox="0 0 11.90625 11.90625"
version="1.1"
id="svg5"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
sodipodi:docname="evalformatagedirect.svg"
inkscape:export-filename="evalformatagedirectmini.png"
inkscape:export-xdpi="51.200001"
inkscape:export-ydpi="51.200001"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="8.6782937"
inkscape:cx="16.650739"
inkscape:cy="23.795"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g660">
<path
id="rect263"
style="fill:#ff0000;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 9.1927205 8.3798503 L 2.6814901 8.3798503 L 2.5140584 9.1462118 L 1.0293945 9.1462118 L 1.0293945 10.853601 L 10.876855 10.853601 L 10.876855 9.1462118 L 9.3797892 9.1462118 L 9.1927205 8.3798503 z " />
<path
id="path595"
style="fill:#ffffff;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 8.8878296 7.1297974 L 2.9548584 7.1297974 L 2.6814901 8.3798503 L 9.1927205 8.3798503 L 8.8878296 7.1297974 z " />
<path
id="path593"
style="fill:#ff0000;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 3.2173747 5.9298706 L 2.9548584 7.1297974 L 8.8878296 7.1297974 L 8.595341 5.9298706 L 3.2173747 5.9298706 z " />
<path
id="path590"
style="fill:#ffffff;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 8.29045 4.6798177 L 3.490743 4.6798177 L 3.2173747 5.9298706 L 8.595341 5.9298706 L 8.29045 4.6798177 z " />
<path
id="path588"
style="fill:#ff0000;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 3.6741943 3.841626 L 3.490743 4.6798177 L 8.29045 4.6798177 L 8.0858114 3.841626 L 3.6741943 3.841626 z " />
<path
id="path585"
style="fill:#ffffff;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 7.7809204 2.5915731 L 3.9475627 2.5915731 L 3.6741943 3.841626 L 8.0858114 3.841626 L 7.7809204 2.5915731 z " />
<path
id="path583"
style="fill:#ff0000;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
d="M 4.2612386 1.1585856 L 3.9475627 2.5915731 L 7.7809204 2.5915731 L 7.4315877 1.1585856 L 4.2612386 1.1585856 z " />
<rect
style="fill:#ffcc00;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stop-color:#000000"
id="rect598"
width="9.8474607"
height="1.7073891"
x="1.0293945"
y="9.1462116" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

View File

@ -32,7 +32,7 @@ public class commandes {
public static node nodeCSV = null;
//**version
public static String version ="V4.4.1"; // La version actuelle
public static String version ="V4.4.2"; // La version actuelle
public static String branch = "Origin";
public static String Annee ="2022";
@ -73,7 +73,7 @@ public class commandes {
//** setting valeur par défaut
public static String culture = "FR";
public static int tolerance_characters = 5;
public static double tolerance_text = 0.79;
public static double tolerance_text = 0.8;
public static int number_match = 2;
public static int mini_number_modification = 0;
public static int nombres_modifications_simultané_maxi = 100;
@ -105,7 +105,7 @@ public class commandes {
public static double analyse_progression=1;
public static double analyse_notefrom=20;
public static int analyse_tolerance_characters = 5;
public static double analyse_tolerance_text = 0.79;
public static double analyse_tolerance_text = 0.8;
public static int analyse_number_match = 2;
public static int analyse_mini_number_modification = 0;
public static int analyse_nombres_modifications_simultané_maxi = 100;
@ -130,7 +130,7 @@ public class commandes {
//** setting valeur par défaut
culture = "FR";
tolerance_characters = 5;
tolerance_text = 0.79;
tolerance_text = 0.8;
number_match = 2;
mini_number_modification = 0;
nombres_modifications_simultané_maxi = 100;
@ -158,7 +158,7 @@ public class commandes {
analyse_progression=1;
analyse_notefrom=20;
analyse_tolerance_characters = 5;
analyse_tolerance_text = 0.79;
analyse_tolerance_text = 0.8;
analyse_number_match = 2;
analyse_mini_number_modification = 0;
analyse_nombres_modifications_simultané_maxi = 100;

View File

@ -385,7 +385,7 @@ public class ecritureSujet {
node similarity = new node();
similarity.setNomElt("text:similarity");
similarity.getAttributs().put("tolerance_characters", "5");
similarity.getAttributs().put("tolerance_text", "0.79");
similarity.getAttributs().put("tolerance_text", String.valueOf(commandes.analyse_tolerance_text));
similarity.setClose(true);
//node color

View File

@ -111,7 +111,7 @@ public class meptl {
//** Chargement du format (content) et transformation en node pour l'application
node nod = Run.XMLContent(a.getLectDossiers().getEC().getListeContentWriter().get(i));
node nodStudent = LectureFichierEtudiantSousFormeDeNode(nod,a,i);
Run.ecritureNodeEnXML(nodStudent, a.getLectDossiers().getEC().getListeNomDossier().get(i),commandes.path,""); //écriture du node de l'étudiant
Run.ecritureNodeEnXML(nodStudent, a.getLectDossiers().getEC().getListeNomDossier().get(i),commandes.path,Run.TypeFile.StudentFile); //écriture du node de l'étudiant
}
//** bye bye analyseWriter
commandes.clotureApplication();
@ -126,7 +126,7 @@ public class meptl {
nodSujet = LectureFichierEtudiantSousFormeDeNode(nodSujet,a,index);
nodSujet.getAttributs().put("analysis_filename", a.getLectDossiers().getEC().getListeNomDossier().get(index)+".xml");
nodSujet = ecritureSujet.nodePourEcritureSujet(nodSujet,a,index);
Run.ecritureNodeEnXML(nodSujet, a.getLectDossiers().getEC().getListeNomDossier().get(index),commandes.path,"Sujet");
Run.ecritureNodeEnXML(nodSujet, a.getLectDossiers().getEC().getListeNomDossier().get(index),commandes.path,Run.TypeFile.Sujet);
}
//** bye bye analyseWriter
commandes.clotureApplication();
@ -210,7 +210,7 @@ public class meptl {
//********************************
//** Ecriture du node verif.xml **
//********************************
Run.ecritureNodeEnXML(verif, "Verif",commandes.path,"Verif"); //écriture du node de vérification
Run.ecritureNodeEnXML(verif, "Verif",commandes.path,Run.TypeFile.Verif); //écriture du node de vérification
if(!commandes.analyse) {
//** bye bye analyseWriter
commandes.clotureApplication();
@ -256,7 +256,7 @@ public class meptl {
//** Ecriture des fichiers d'analyse des students **
//**************************************************
if(commandes.ecritNodeAnalyse) {
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,""); //écriture du node analyse de l'étudiant
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,Run.TypeFile.Analyse); //écriture du node analyse de l'étudiant
}
//****************************
@ -1513,7 +1513,7 @@ public class meptl {
//********************************
//** Ecriture du node verif.xml **
//********************************
Run.ecritureNodeEnXML(verif, "Verif",commandes.path, "Verif"); //écriture du node de vérification
Run.ecritureNodeEnXML(verif, "Verif",commandes.path, Run.TypeFile.Verif); //écriture du node de vérification
commandes.message.append("\n*******************************************************");
commandes.message.append("\nEcriture du fichier Verif.xml dans le dossier d'analyse");
commandes.message.append("\n*******************************************************");
@ -1559,7 +1559,7 @@ public class meptl {
//** Ecriture des fichiers d'analyse des students **
//**************************************************
if(commandes.ecritNodeAnalyse) {
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,""); //écriture du node analyse de l'étudiant
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,Run.TypeFile.Analyse); //écriture du node analyse de l'étudiant
}
//****************************

View File

@ -824,24 +824,16 @@ public class verificationFichierAnalyse {
if(commandes.sujet.getAttributs().get("analysis_filename")==null) {
maj=true;
}else {
if(!commandes.sujet.getAttributs().get("analysis_filename").equals(commandes.analysis_filename)) {
maj=true;
if(!commandes.analysis_filename.isEmpty()) {
if(!commandes.sujet.getAttributs().get("analysis_filename").equals(commandes.analysis_filename)) {
maj=true;
}
}
}
if(maj) {
int nbespace = "───────────────────────────┐".length()-commandes.hash.length();
if (nbespace<0) nbespace=1;
int nbespace2 = "───────────────────────────────┐".length()-commandes.analysis_filename.length();
if (nbespace2<0) nbespace2=1;
System.out.println("\t\t┌────────────────────────────────────────────────────────────────────┐");
System.out.println("\t\t│ Le hash du code de l'évaluation ou le nom du fichier d'analyse │");
System.out.println("\t\t│ a été mise à jour dans le fichier d'analyse. │");
System.out.println("\t\t│ │");
System.out.println("\t\t│ Le hash du code de l'évaluation est : " + commandes.hash + new String(new char[nbespace]).replace("\0", " ") +"" );
System.out.println("\t\t│ Le nom du fichier d'analyse est : " + commandes.analysis_filename + new String(new char[nbespace2]).replace("\0", " ") +"" );
System.out.println("\t\t│ │");
System.out.println("\t\t└────────────────────────────────────────────────────────────────────┘");
System.out.println();
commandes.sujet.getAttributs().put("hash", commandes.hash);
commandes.sujet.getAttributs().put("analysis_filename", commandes.nameSujet);
@ -856,16 +848,13 @@ public class verificationFichierAnalyse {
String cheminVersFichierAnalyse = commandes.PathFilenameAnalysis;
if(!commandes.console) cheminVersFichierAnalyse = commandes.PathFilenameAnalysis.substring(0,commandes.PathFilenameAnalysis.lastIndexOf("\\"));
if(commandes.analysis_filename.contains(".")) {
Run.ecritureNodeEnXML(commandes.sujet,commandes.analysis_filename.substring(0, commandes.nameSujet.lastIndexOf(".")),cheminVersFichierAnalyse,"Sujet");
Run.ecritureNodeEnXML(commandes.sujet,commandes.analysis_filename.substring(0, commandes.nameSujet.lastIndexOf(".")),cheminVersFichierAnalyse,Run.TypeFile.Sujet);
}else {
Run.ecritureNodeEnXML(commandes.sujet,commandes.analysis_filename,cheminVersFichierAnalyse,"Sujet");
Run.ecritureNodeEnXML(commandes.sujet,commandes.analysis_filename,cheminVersFichierAnalyse,Run.TypeFile.Sujet);
}
}else {
System.out.println("\t\t┌─────────────────────────────────────────────────────┐");
System.out.println("\t\t│ Vérification du hash et du nom du fichier correct. │");
System.out.println("\t\t└─────────────────────────────────────────────────────┘");
System.out.println();
commandes.message.append("<p>**********************************************************</p>");
commandes.message.append("<p> Vérification du hash et du nom du fichier correct.</p>");
commandes.message.append("<p>**********************************************************</p>");
@ -905,7 +894,8 @@ public class verificationFichierAnalyse {
node nodeSujet = meptl.chargementFichierAnalyse(commandes.nameSujet, true);
nodeSujet.getAttributs().put("hash", String.valueOf(Run.HashNode(nodeSujet, 0)));
nodeSujet.getAttributs().put("analysis_filename", "sujet.xml");
Run.ecritureNodeEnXML(nodeSujet, "sujet",commandes.path,"Sujet"); // ecriture du node sujet. Uniquement les nodes évalués.
Run.ecritureNodeEnXML(nodeSujet, "sujet",commandes.path,Run.TypeFile.Sujet); // ecriture du node sujet. Uniquement les nodes évalués.
commandes.message.append("<p> Un nouveau fichier d'analyse a été créé dans le dossier courant.</p>");
System.out.println("\t\t┌─────────────────────────────────────────────────────────────────────┐");
System.out.println("\t\t│ Un nouveau fichier \"sujet.xml\" a été créé dans le dossier courant. │");
System.out.println("\t\t└─────────────────────────────────────────────────────────────────────┘");

View File

@ -150,6 +150,17 @@ public class calculNombrePointEvaluation {
}
}
if(nod.getAttributs().get("evalFormatageDirect")!=null) {
try {
point = point + Integer.valueOf(nod.getAttributs().get("evalFormatageDirect"));
} catch (Exception e) {
JOptionPane.showInternalMessageDialog(null, "Erreur dans la valeur de l'attribut evalFormatageDirect");
}
}
//***********************************************

View File

@ -9,6 +9,7 @@ import cXML.node;
import list.listeAttributsAnalyseWriter;
import list.listeDesNodesAncrable;
import list.listeDesNodesEvalPlacement;
import list.listeDesNodesFormatageDirect;
public class evaluationAttribut {
@ -329,6 +330,12 @@ public class evaluationAttribut {
retour = evaluationPremierEnfant(retour,null, "true", sujet.getAttributs().get("evalLastChild"),"LastChild");
}
}
//evaluation de l'absence ou de la présence du formatage direct
if(k.equals("evalFormatageDirect") && listeDesNodesFormatageDirect.isFormatageDirect(sujet)) {
retour = evalFormatageDirect(sujet,nodeStudent,retour,nameElt);
}
}
}
@ -601,6 +608,61 @@ public class evaluationAttribut {
}
private static node evalFormatageDirect(node sujet,node nodeStudent, node retour, String nameElt) {
if(nodeStudent!=null) {
String nameStyleStudent = "nonStudent";
boolean formatageStudent = false;
String nameStyleSujet = "nonSujet";
boolean formatageSujet = false;
if(nodeStudent.getAttributs().get("text:style-name")!=null) {
nameStyleStudent=nodeStudent.getAttributs().get("text:style-name");
}
if(sujet.getAttributs().get("text:style-name")!=null) {
nameStyleSujet = sujet.getAttributs().get("text:style-name");
}
Pattern p = Pattern.compile("^P[0-9]{1,}$");
Matcher m = p.matcher(nameStyleStudent);
if(m.find()) formatageStudent=true;
m = p.matcher(nameStyleSujet);
if(m.find()) formatageSujet=true;
if((formatageSujet && formatageStudent)) {
retour = evaluationFormatageDirect(retour,"Présence formatage direct", "Présence formatage direct", sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}
if((!formatageSujet && !formatageStudent)){
retour = evaluationFormatageDirect(retour,"Absence formatage direct", "Absence formatage direct" , sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}
if((formatageSujet && !formatageStudent)){
retour = evaluationFormatageDirect(retour,"Présence formatage direct", "Absence formatage direct" , sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}
if((!formatageSujet && formatageStudent)){
retour = evaluationFormatageDirect(retour,"Absence formatage direct", "Présence formatage direct" , sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}
}else {
String nameStyleSujet = "nonSujet";
boolean formatageSujet = false;
if(sujet.getAttributs().get("text:style-name")!=null) {
nameStyleSujet = sujet.getAttributs().get("text:style-name");
}
Pattern p = Pattern.compile("^P[0-9]{1,}$");
Matcher m = p.matcher(nameStyleSujet);
if(m.find()) formatageSujet=true;
if((formatageSujet)){
retour = evaluationFormatageDirect(retour,null, "Présence formatage direct" , sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}else {
retour = evaluationFormatageDirect(retour,null, "Absence formatage direct" , sujet.getAttributs().get("evalFormatageDirect"),"Formatage");
}
}
return retour;
}
//***********************************************************************************
@ -917,6 +979,29 @@ public class evaluationAttribut {
return retour;
}
/**
*
* @param retour
* @param contenuParagraphStudentAvant
* @param contenuParagraphSujetAvant
* @param point
* @param nameElt
* @return
*/
private static node evaluationFormatageDirect(node retour, String formatStudent, String FormatSujet, String point, String nameElt) {
node item = null;
if(formatStudent!=null) {
//compare la même valeur "contenuParagraph" pour obtenir les points mais si un voisinage du contenu.
item = retourneNoteAvecResultatsAnalyse("Formatage","paragraphe", formatStudent , FormatSujet + "" +point, nameElt );
}else {
evaluation.IncrementPointTotal(Integer.valueOf(point));
item = new node("Formatage", "Erreur : -"+ point, "paragraphe" , "null", FormatSujet , 2, evaluation.getPointEnJeu(),nameElt);
}
retour.getNodes().add(item);
return retour;
}
/**
* Evaluation du dernier enfant.</br>
* @param retour

View File

@ -75,6 +75,7 @@ public class afficheText extends JEditorPane {
String imagePremierEnfant= "<img src="+afficheText.class.getResource("/resources/premierenfantmini.png").toString()+">";
String imageIsDoublon= "<img src="+afficheText.class.getResource("/resources/rechercheDoublonmini.png").toString()+">";
String imageEvalAncrageNumeroAbsoluPage= "<img src="+afficheText.class.getResource("/resources/evalnumeropageancragemini.png").toString()+">";
String imageEvalFormatageDirect= "<img src="+afficheText.class.getResource("/resources/evalformatagedirectmini.png").toString()+">";
StringBuilder sb = new StringBuilder();
@ -247,6 +248,9 @@ public class afficheText extends JEditorPane {
if(Lesattributsdunode.get(i).equals("evalAncrageNumeroAbsoluePage") && !nod.getAttributs().get(Lesattributsdunode.get(i)).equals("0")) {
sb.append("<li class=\"p4\">"+imageEvalAncrageNumeroAbsoluPage+ " <b>" + Lesattributsdunode.get(i) + " = \"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"</b></li>");
}
if(Lesattributsdunode.get(i).equals("evalFormatageDirect") && !nod.getAttributs().get(Lesattributsdunode.get(i)).equals("0")) {
sb.append("<li class=\"p4\">"+imageEvalFormatageDirect+ " <b>" + Lesattributsdunode.get(i) + " = \"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"</b></li>");
}
// sb.append("<li class=\"p4\"><b>" + Lesattributsdunode.get(i) + "=\"" + nod.getAttributs().get(Lesattributsdunode.get(i))+"\"</b></li>");
}

View File

@ -283,8 +283,8 @@ public class attributs extends JFrame {
//Enabled false les valeurs ne peuvent pas être modifiées.
//Enabled false les evaluer si pas evaluable.
for(int i = 0 ; i<Leslabels.size();i++) {
if(listeAttributWriterValeurPasModifiable.isModifiable(Leslabels.get(i).getText())) {Lesvaleurs.get(i).setEnabled(false);}
if(listeAttributWriterPasEvaluableAvecCodeEvaluateur.isEvaluable(Leslabels.get(i).getText())) {Lesevaluer.get(i).setEnabled(false);Lespoints.get(i).setEnabled(false);}
if(listeAttributWriterValeurPasModifiable.isNotModifiable(Leslabels.get(i).getText())) {Lesvaleurs.get(i).setEnabled(false);}
if(listeAttributWriterPasEvaluableAvecCodeEvaluateur.isNotEvaluable(Leslabels.get(i).getText())) {Lesevaluer.get(i).setEnabled(false);Lespoints.get(i).setEnabled(false);}
// Important
//exception avec text:section et son attribut text:name qui doit être évaluable
if(nod.getNomElt().equals("text:section") && Leslabels.get(i).getText().equals("text:name")) {Lesvaleurs.get(i).setEnabled(true);Lesevaluer.get(i).setEnabled(true);Lespoints.get(i).setEnabled(true);}

View File

@ -24,6 +24,8 @@ import fenetres.create_act.actEvalEntetePasActive;
import fenetres.create_act.actEvalEntetePasActiveNon;
import fenetres.create_act.actEvalFirstChildFalse;
import fenetres.create_act.actEvalFirstChildTrue;
import fenetres.create_act.actEvalFormatageDirectNon;
import fenetres.create_act.actEvalFormatageDirectOui;
import fenetres.create_act.actEvalInitialCreator;
import fenetres.create_act.actEvalLastChildFalse;
import fenetres.create_act.actEvalLastChildTrue;
@ -92,6 +94,7 @@ import list.listeDesNodesAncrable;
import list.listeDesNodesAvecEvalNameNode;
import list.listeDesNodesAvecOU;
import list.listeDesNodesEvalPlacement;
import list.listeDesNodesFormatageDirect;
import list.listeDesNodesPourEvaluationEntetePage;
import list.listeDesNodesPourEvaluerPage;
import list.listeDesNodesPourEvaluerPiedDePage;
@ -184,6 +187,19 @@ if(nod!=null) {
return mnEvaluer;
}
/**
* Evauler l'absence ou la présence du formatage direct.</br>
* Uniquement présent sur les paragraphes ou les titres.</br>
* @return
*/
private JMenu mnEvalFormatageDirect() {
JMenu mnEvalFormatageDirect = new JMenu("evaluer l'absence ou la présence du formatage direct");
mnEvalFormatageDirect.setIcon( new ImageIcon(create.class.getResource("/resources/evalformatagedirectmini.png")));
mnEvalFormatageDirect.add(new actEvalFormatageDirectOui());
mnEvalFormatageDirect.add(new actEvalFormatageDirectNon());
return mnEvalFormatageDirect;
}
/**
* Menu Arbre.</br>
* @return
@ -258,7 +274,7 @@ if(nod!=null) {
* @return
*/
private JMenu mnInsereInformation() {
JMenu mnInsereInformation = new JMenu("Insère information contenu du node");
JMenu mnInsereInformation = new JMenu("Insère l'information contenu du node");
mnInsereInformation.setIcon( new ImageIcon(create.class.getResource("/resources/informationmini.png")));
mnInsereInformation.add(new actInsereInformationTrue());
mnInsereInformation.add(new actInsereInformationFalse());
@ -721,6 +737,11 @@ if(nod!=null) {
mnGroupeMethodeEvaluer.add(mnEvalAncrageNumeroAbsoluPageAncrage());
}
if(listeDesNodesFormatageDirect.isFormatageDirect(nod)) {
mnGroupeMethodeEvaluer.addSeparator();
mnGroupeMethodeEvaluer.add(mnEvalFormatageDirect());
}
if(listeEvalNameNode.isNodeEvalNameNode(nod)) {
mnGroupeMethodeEvaluer.addSeparator();
mnGroupeMethodeEvaluer.add(mnEvalNameNode());

View File

@ -0,0 +1,29 @@
package fenetres.create_act;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import cXML.node;
import fenetres.create;
public class actEvalFormatageDirectNon extends AbstractAction{
{
putValue( Action.NAME, "Supprime évaluer l'absence ou la présence du formatage direct" );
putValue( Action.SHORT_DESCRIPTION, "Supprime évaluer l'absence ou la présence du formatage direct." );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")) );
}
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalFormatageDirect");
fenetres.create.getTextNodeSelect().refreshAffichage(nod); }
}

View File

@ -0,0 +1,55 @@
package fenetres.create_act;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import cXML.node;
import fenetres.baliseStyle;
import fenetres.create;
public class actEvalFormatageDirectOui extends AbstractAction{
{
putValue( Action.NAME, "Oui, combien de point?" );
putValue( Action.SHORT_DESCRIPTION, "Evaluer la présence ou l'basence du formatage direct." );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/truemini.png")) );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/truemini.png")) );
}
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
int point = 0;
if(nod.getAttributs().get("evalFormatageDirect")!=null) {
point = Integer.valueOf(nod.getAttributs().get("evalFormatageDirect"));
}
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
if(!a.isEmpty()) {
try {
point = Integer.valueOf(a);
if(point<=0) {
nod.getAttributs().put("evalFormatageDirect", String.valueOf(0));
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalFormatageDirect=0.</h2>");
}else {
nod.getAttributs().put("evalFormatageDirect", String.valueOf(point));
}
} catch (Exception e2) {
fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -51,7 +51,7 @@ public class actSave extends AbstractAction{
try {
verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(commandes.nameSujet);
Run.ecritureNodeEnXML(commandes.sujet, commandes.nameSujet,commandes.PathFilenameAnalysis,"sujet");
Run.ecritureNodeEnXML(commandes.sujet, commandes.nameSujet,commandes.PathFilenameAnalysis,Run.TypeFile.Sujet);
if(m.find()) {
fenetres.create.getTextNodeSelect().setText("Le fichier \"" + commandes.nameSujet + " a été réenregistré.\n\n"

View File

@ -52,9 +52,9 @@ public class actSaveAs extends AbstractAction{
verificationFichierAnalyse.MiseAJourHashNomFichierAnalyse(fileToSave.getName());
if(commandes.os.contains("Win")) {
Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),"sujet" );
Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),Run.TypeFile.Sujet );
}else {
Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("/")),"sujet" );
Run.ecritureNodeEnXML(commandes.sujet, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("/")),Run.TypeFile.Sujet );
}
commandes.nameSujet = fileToSave.getName();

View File

@ -686,11 +686,8 @@ public class evaluate extends JFrame {
@Override
public void actionPerformed( ActionEvent e ) {
System.out.println( "Open" );
new filechooserXML();
System.out.println( "Rafraichissement du label informations" );
refreshLabel();
System.out.println( "Open close" );
}
};

View File

@ -111,7 +111,7 @@ public class evaluerLesFichiersEtudiants implements Runnable{
//** Ecriture du node verif.xml **
//********************************
try {
Run.ecritureNodeEnXML(verif, "Verif",commandes.path, "Verif");
Run.ecritureNodeEnXML(verif, "Verif",commandes.path, Run.TypeFile.Verif );
} catch (IOException e) {
e.printStackTrace();
} //écriture du node de vérification
@ -186,7 +186,7 @@ public class evaluerLesFichiersEtudiants implements Runnable{
//**************************************************
if(commandes.ecritNodeAnalyse) {
try {
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,"");
Run.ecritureNodeEnXML(ana, "nodana"+ana.retourneFirstEnfantsByName("ouverture").getAttributs().get("dossier"),commandes.path,Run.TypeFile.Analyse);
} catch (IOException e) {
e.printStackTrace();
}

View File

@ -379,7 +379,7 @@ public final class setting extends JFrame {
JLabel lbllesSimilitude = new JLabel("<html>Les méthodes par comparaison des chaînes de caractères utilisent <b><u>la distance de Levenshtein d=[0;1]</u></b>.<br>"
+ "Exemple : allContent=\"environ1\", ou \"value\".<br><br>"
+ "La valeur du paramètre \"texte similitude\" par défaut est de <b>0.79</b> pour la méthode envirion, les fonctions dans les attributs de Writer.<br>"
+ "La valeur du paramètre \"texte similitude\" par défaut est de <b>"+ String.valueOf(commandes.tolerance_text) + "</b> pour la méthode environ, les fonctions dans les attributs de Writer.<br>"
+ "</html>");
lbllesSimilitude.setVerticalAlignment(SwingConstants.TOP);
lbllesSimilitude.setHorizontalAlignment(SwingConstants.LEFT);
@ -684,9 +684,9 @@ public final class setting extends JFrame {
try {
if(commandes.os.contains("Win")) {
Run.ecritureNodeEnXML(nodeTransalte, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),"setting" );
Run.ecritureNodeEnXML(nodeTransalte, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("\\")),Run.TypeFile.Setting );
}else {
Run.ecritureNodeEnXML(nodeTransalte, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("/")),"setting" );
Run.ecritureNodeEnXML(nodeTransalte, fileToSave.getName(), fileToSave.getPath().substring(0,fileToSave.getPath().lastIndexOf("/")),Run.TypeFile.Setting );
}
JOptionPane.showMessageDialog(null, "Le fichier \"" + fileToSave.getName() + ".xml\" a été renregistré.\n\nIl se trouve dans le dossier " + fileToSave.getPath());

View File

@ -12,13 +12,26 @@ public class listeAttributWriterPasEvaluableAvecCodeEvaluateur {
* @param nameAttribut
* @return
*/
public static boolean isEvaluable(String nameAttribut) {
if(nameAttribut.equals("style:name")) return true;
if(nameAttribut.equals("style:page-layout-name")) return true;
if(nameAttribut.equals("style:family")) return true;
if(nameAttribut.equals("text:name")) return true;
if(nameAttribut.equals("text:style-name")) return true;
return false;
public static boolean isNotEvaluable(String nameAttribut) {
switch (nameAttribut) {
case "style:name":return true;
case "style:page-layout-name":return true;
case "style:family":return true;
case "text:name":return true;
case "text:style-name":return true;
default:
return false;
}
// if(nameAttribut.equals("style:name")) return true;
// if(nameAttribut.equals("style:page-layout-name")) return true;
// if(nameAttribut.equals("style:family")) return true;
// if(nameAttribut.equals("text:name")) return true;
// if(nameAttribut.equals("text:style-name")) return true;
// return false;
}
}

View File

@ -6,22 +6,48 @@ public class listeAttributWriterValeurPasModifiable {
}
public static boolean isModifiable(String nameAttribut) {
if(nameAttribut.equals("style:name")) return true;
if(nameAttribut.equals("style:display-name")) return true;
if(nameAttribut.equals("style:next-style-name")) return true;
if(nameAttribut.equals("style:parent-style-name")) return true;
if(nameAttribut.equals("style:family")) return true;
if(nameAttribut.equals("style:master-page-name")) return true;
if(nameAttribut.equals("style:page_number"))return true;
if(nameAttribut.equals("style:page-layout-name")) return true;
if(nameAttribut.equals("numeroabsolue")) return true;
if(nameAttribut.equals("numero")) return true;
if(nameAttribut.equals("draw:style-name")) return true;
if(nameAttribut.equals("text:style-name")) return true;
if(nameAttribut.equals("text:name")) return true;
return false;
/**
* Liste des nodes qui ne peuvent pas être modifiable.</br>
* @param nameAttribut
* @return
*/
public static boolean isNotModifiable(String nameAttribut) {
switch (nameAttribut) {
case "style:name": return true;
case "style:display-name": return true;
case "style:next-style-name": return true;
case "style:parent-style-name": return true;
case "style:family": return true;
case "style:master-page-name": return true;
case "style:page_number": return true;
case "style:page-layout-name": return true;
case "numeroabsolue": return true;
case "numero": return true;
case "draw:style-name": return true;
case "text:style-name": return true;
case "text:name": return true;
default:
return false;
}
//
// if(nameAttribut.equals("style:name")) return true;
// if(nameAttribut.equals("style:display-name")) return true;
// if(nameAttribut.equals("style:next-style-name")) return true;
// if(nameAttribut.equals("style:parent-style-name")) return true;
// if(nameAttribut.equals("style:family")) return true;
// if(nameAttribut.equals("style:master-page-name")) return true;
// if(nameAttribut.equals("style:page_number"))return true;
// if(nameAttribut.equals("style:page-layout-name")) return true;
// if(nameAttribut.equals("numeroabsolue")) return true;
// if(nameAttribut.equals("numero")) return true;
// if(nameAttribut.equals("draw:style-name")) return true;
// if(nameAttribut.equals("text:style-name")) return true;
// if(nameAttribut.equals("text:name")) return true;
// return false;
}
}

View File

@ -13,80 +13,153 @@ public class listeAttributsAnalyseWriter {
*/
public static boolean isAttributAnalyseWriter(String attribut) {
if(attribut.equals("evaluer")) return true;
if(attribut.equals("addmenu")) return true;
if(attribut.equals("saut")) return true;
if(attribut.equals("titre")) return true;
if(attribut.equals("titre1")) return true;
if(attribut.equals("titre2")) return true;
if(attribut.equals("titre3")) return true;
if(attribut.equals("marquenode")) return true;
if(attribut.equals("information")) return true;
if(attribut.equals("poids")) return true;
if(attribut.equals("analyseStyle")) return true;
if(attribut.equals("index")) return true;
if(attribut.equals("recherche_index")) return true;
if(attribut.equals("recherche_contenu_exact")) return true;
if(attribut.equals("styletitre")) return true; //ancienne version, il faudra les supprimer au fur plus ajouter depuis la version v4.1.2
if(attribut.equals("recherche_anchor-page-number")) return true;
if(attribut.equals("recherche_contenu_plus_proche_voisin")) return true;
if(attribut.equals("numero")) return true;
if(attribut.equals("numeroabsolue")) return true;
if(attribut.equals("isDoublon")) return true;
switch (attribut) {
case "evaluer": return true;
case "addmenu": return true;
case "saut": return true;
case "titre": return true;
case "titre1": return true;
case "titre2": return true;
case "titre3": return true;
case "marquenode": return true;
case "information": return true;
case "poids": return true;
case "analyseStyle": return true;
case "index": return true;
case "recherche_index": return true;
case "recherche_contenu_exact": return true;
case "recherche_anchor-page-number": return true;
case "recherche_contenu_plus_proche_voisin": return true;
case "numero": return true;
case "numeroabsolue": return true;
case "isDoublon": return true;
case "EvaluerATraversAnalyseStyle": return true;
case "evalNameCreator": return true;
case "evalNameInitialCreator": return true;
case "evalNameLegacyStyle": return true;
case "allContent": return true;
case "evalNameNode": return true;
case "evalEntetePasActive": return true;
case "evalEnteteActive": return true;
case "evalPiedPagePasActive": return true;
case "evalPiedPageActive": return true;
case "evalNameSequence": return true;
case "evalNamePage": return true;
case "evalTextUserDefined": return true;
case "evalNumeroAbsoluePage": return true;
case "evalNumeroPage": return true;
case "evalPlacement": return true;
case "evalLastChild": return true;
case "evalFirstChild": return true;
case "evalAncrageNumeroAbsoluePage": return true;
case "evalFormatageDirect": return true;
// Les attributs évaluateurs
if(attribut.equals("EvaluerATraversAnalyseStyle")) return true;
if(attribut.equals("evalNameCreator")) return true;
if(attribut.equals("evalNameInitialCreator")) return true;
if(attribut.equals("evalNameLegacyStyle")) return true;
if(attribut.equals("allContent")) return true;
if(attribut.equals("evalNameNode")) return true;
if(attribut.equals("evalEntetePasActive")) return true;
if(attribut.equals("evalEnteteActive")) return true;
if(attribut.equals("evalPiedPagePasActive")) return true;
if(attribut.equals("evalPiedPageActive")) return true;
if(attribut.equals("evalNameSequence")) return true;
if(attribut.equals("evalNamePage")) return true;
if(attribut.equals("evalTextUserDefined")) return true;
if(attribut.equals("evalNumeroAbsoluePage")) return true;
if(attribut.equals("evalNumeroPage")) return true;
if(attribut.equals("evalPlacement")) return true;
if(attribut.equals("evalLastChild")) return true;
if(attribut.equals("evalFirstChild")) return true;
if(attribut.equals("evalAncrageNumeroAbsoluePage")) return true;
case "analysis_filename": return true;
case "auteur": return true;
case "baremeABC": return true;
case "controleDateCreation": return true;
case "controle_Initial_Creator": return true;
case "creationDate": return true;
case "date": return true;
case "dateModification": return true;
case "dureeEdition": return true;
case "filename": return true;
case "hash": return true;
case "historiquePresent": return true;
case "link_help": return true;
case "link_sujet": return true;
case "metaSujet": return true;
case "notefrom": return true;
case "presenceMetaSujet": return true;
case "producteur": return true;
case "progression": return true;
case "version": return true;
case "OU": return true;
default:
return false;
}
//Les attribut placer dans le node fichier du fichier d'analyse
if(attribut.equals("analysis_filename")) return true;
if(attribut.equals("auteur")) return true;
if(attribut.equals("baremeABC")) return true;
if(attribut.equals("controleDateCreation")) return true;
if(attribut.equals("controle_Initial_Creator")) return true;
if(attribut.equals("creationDate")) return true;
if(attribut.equals("date")) return true;
if(attribut.equals("dateModification")) return true;
if(attribut.equals("dureeEdition")) return true;
if(attribut.equals("filename")) return true;
if(attribut.equals("hash")) return true;
if(attribut.equals("historiquePresent")) return true;
if(attribut.equals("link_help")) return true;
if(attribut.equals("link_sujet")) return true;
if(attribut.equals("metaSujet")) return true;
if(attribut.equals("notefrom")) return true;
if(attribut.equals("presenceMetaSujet")) return true;
if(attribut.equals("producteur")) return true;
if(attribut.equals("progression")) return true;
if(attribut.equals("version")) return true;
//Le node OU
if(attribut.equals("OU")) return true;
// if(attribut.equals("page_start:text_contenu_index")) return true;
return false;
// if(attribut.equals("evaluer")) return true;
// if(attribut.equals("addmenu")) return true;
// if(attribut.equals("saut")) return true;
// if(attribut.equals("titre")) return true;
// if(attribut.equals("titre1")) return true;
// if(attribut.equals("titre2")) return true;
// if(attribut.equals("titre3")) return true;
// if(attribut.equals("marquenode")) return true;
// if(attribut.equals("information")) return true;
// if(attribut.equals("poids")) return true;
// if(attribut.equals("analyseStyle")) return true;
// if(attribut.equals("index")) return true;
// if(attribut.equals("recherche_index")) return true;
// if(attribut.equals("recherche_contenu_exact")) return true;
// if(attribut.equals("styletitre")) return true; //ancienne version, il faudra les supprimer au fur plus ajouter depuis la version v4.1.2
// if(attribut.equals("recherche_anchor-page-number")) return true;
// if(attribut.equals("recherche_contenu_plus_proche_voisin")) return true;
// if(attribut.equals("numero")) return true;
// if(attribut.equals("numeroabsolue")) return true;
// if(attribut.equals("isDoublon")) return true;
//
//
// // Les attributs évaluateurs
// if(attribut.equals("EvaluerATraversAnalyseStyle")) return true;
// if(attribut.equals("evalNameCreator")) return true;
// if(attribut.equals("evalNameInitialCreator")) return true;
// if(attribut.equals("evalNameLegacyStyle")) return true;
// if(attribut.equals("allContent")) return true;
// if(attribut.equals("evalNameNode")) return true;
// if(attribut.equals("evalEntetePasActive")) return true;
// if(attribut.equals("evalEnteteActive")) return true;
// if(attribut.equals("evalPiedPagePasActive")) return true;
// if(attribut.equals("evalPiedPageActive")) return true;
// if(attribut.equals("evalNameSequence")) return true;
// if(attribut.equals("evalNamePage")) return true;
// if(attribut.equals("evalTextUserDefined")) return true;
// if(attribut.equals("evalNumeroAbsoluePage")) return true;
// if(attribut.equals("evalNumeroPage")) return true;
// if(attribut.equals("evalPlacement")) return true;
// if(attribut.equals("evalLastChild")) return true;
// if(attribut.equals("evalFirstChild")) return true;
// if(attribut.equals("evalAncrageNumeroAbsoluePage")) return true;
//
//
//
// //Les attribut placer dans le node fichier du fichier d'analyse
// if(attribut.equals("analysis_filename")) return true;
// if(attribut.equals("auteur")) return true;
// if(attribut.equals("baremeABC")) return true;
// if(attribut.equals("controleDateCreation")) return true;
// if(attribut.equals("controle_Initial_Creator")) return true;
// if(attribut.equals("creationDate")) return true;
// if(attribut.equals("date")) return true;
// if(attribut.equals("dateModification")) return true;
// if(attribut.equals("dureeEdition")) return true;
// if(attribut.equals("filename")) return true;
// if(attribut.equals("hash")) return true;
// if(attribut.equals("historiquePresent")) return true;
// if(attribut.equals("link_help")) return true;
// if(attribut.equals("link_sujet")) return true;
// if(attribut.equals("metaSujet")) return true;
// if(attribut.equals("notefrom")) return true;
// if(attribut.equals("presenceMetaSujet")) return true;
// if(attribut.equals("producteur")) return true;
// if(attribut.equals("progression")) return true;
// if(attribut.equals("version")) return true;
//
// //Le node OU
// if(attribut.equals("OU")) return true;
//
//// if(attribut.equals("page_start:text_contenu_index")) return true;
//
//
// return false;
}
}

View File

@ -7,12 +7,27 @@ public class listeDesNodesAncrable {
public static Boolean isAncrable(node nod) {
if(nod.getNomElt().equals("text:p")) return true;
if(nod.getNomElt().equals("text:h")) return true;
if(nod.getNomElt().equals("text:list")) return true;
if(nod.getNomElt().equals("text:list-item")) return true;
String nameNode = nod.getNomElt();
return false;
switch (nameNode) {
case "page": return true;
case "text:p": return true;
case "text:h": return true;
case "text:list": return true;
case "text:title": return true;
case "text:span": return true;
case "text:list-item": return true;
case "text:subject": return true;
case "text:initial-creator": return true;
case "text:creator": return true;
case "text:editing-cycles": return true;
case "draw:frame": return true;
default:
return false;
}
}
}

View File

@ -5,14 +5,28 @@ import cXML.node;
public class listeDesNodesEvalPlacement {
public static boolean isPlacement(node nod) {
if(nod.getNomElt().equals("page")) return true;
if(nod.getNomElt().equals("text:p")) return true;
if(nod.getNomElt().equals("text:h")) return true;
if(nod.getNomElt().equals("text:list")) return true;
if(nod.getNomElt().equals("text:title")) return true;
if(nod.getNomElt().equals("text:span")) return true;
if(nod.getNomElt().equals("text:list-item")) return true;
return false;
String nameNode = nod.getNomElt();
switch (nameNode) {
case "page": return true;
case "text:p": return true;
case "text:h": return true;
case "text:list": return true;
case "text:title": return true;
case "text:span": return true;
case "text:list-item": return true;
case "text:subject": return true;
case "text:initial-creator": return true;
case "text:creator": return true;
case "text:editing-cycles": return true;
default:
return false;
}
}
}

View File

@ -0,0 +1,22 @@
package list;
import cXML.node;
public class listeDesNodesFormatageDirect {
public static boolean isFormatageDirect(node nod) {
String nameNode = nod.getNomElt();
switch (nameNode) {
case "text:p": return true;
case "text:h": return true;
default:
return false;
}
}
}

View File

@ -10,13 +10,23 @@ public class listeDesNotesAEvaluer {
* @return
*/
public static Boolean isAEvaluer(node nod) {
if(nod.getNomElt().equals("meta:initial-creator")) return true;
if(nod.getNomElt().equals("dc:creator")) return true;
if(nod.getNomElt().equals("text:sequence-decl")) return true;
if(nod.getNomElt().equals("text:user-defined")) return true;
if(nod.getNomElt().equals("style:style")) return true;
return false;
String nameNode = nod.getNomElt();
switch (nameNode) {
case "meta:initial-creator": return true;
case "dc:creator": return true;
case "text:sequence-decl": return true;
case "text:user-defined": return true;
case "style:style": return true;
case "draw:frame": return true;
default:
return false;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B