|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsalomeTMF_plug.pluginxlsxml.Export.FromXmlToExcel
public class FromXmlToExcel
Read a XML file, generated by SalomeTMF via DocXML Plugin, having requirements ans test cases, and transform it in XLS file
Field Summary | |
---|---|
private org.dom4j.Document |
documentXml
|
private EcritEntete |
ecritEntete
|
private java.io.File |
fichierDeSortieXLS
|
private java.lang.String |
fs
Get the File Separator (different between Unix and Windows) |
private boolean |
isEcritFeuilleExigence
|
private boolean |
isEcritFeuilleTest
|
private boolean |
isErreurEcritureXLS
|
private jxl.write.Label |
label
|
private jxl.write.Number |
nombre
|
private int |
nombreActionsParCasDeTests
|
private int |
nombreExigenceParCasDeTests
|
private int |
nombreLigneRequirementLu
|
private java.lang.String |
nomFichierXLS
|
private int |
numeroColonne
|
private int |
numeroColonneExigence
|
private int |
numeroLigne
|
private java.lang.String |
resulEffectif
|
private jxl.write.WritableSheet |
sheet
|
private jxl.write.WritableSheet |
testSheet
|
private jxl.write.WritableWorkbook |
workbook
|
private java.lang.String |
xmlDir
|
Constructor Summary | |
---|---|
FromXmlToExcel(java.lang.String fichierXml,
boolean selectionExportExigence,
boolean selectionExportTest)
Function that transform the XML file to a XLS file |
Method Summary | |
---|---|
java.lang.String |
createXlsFile(java.lang.String nomFichierSortie)
Function that create a XLS File |
java.lang.String |
getfichierDeSortieXLS()
|
boolean |
getWriteErrorXLS()
Get ErreurEcritureXLS |
void |
openXmlFile(java.lang.String fichierXml)
function that tries to open the XML File |
void |
organizeXLSfile(boolean selectionExportExigence,
boolean selectionExportTest)
Function that organise XLS file (merge cells, ...) |
void |
readRequirementsSettings(java.lang.String ParsingRequirement)
Read requirement options |
void |
readXMLFile(org.dom4j.Document documentXml)
Function that parse Xml file to read requirements |
void |
readXMLFileTest(org.dom4j.Document documentXml,
boolean selectionExportExigence)
Function that parse Xml file to read tests |
java.lang.String |
removeSpecialCharacters(java.lang.String chaineAModifier)
Modify a string to pass spécial characters like quote |
boolean |
setErreurEcritureXLS()
Set ErreurEcriturXLs to True |
void |
writeXLSHeading(java.lang.String Exigencelu)
Function that write XLS heading |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private jxl.write.WritableWorkbook workbook
private jxl.write.WritableSheet sheet
private jxl.write.WritableSheet testSheet
private org.dom4j.Document documentXml
private java.io.File fichierDeSortieXLS
private int numeroColonne
private int numeroLigne
private int nombreLigneRequirementLu
private int numeroColonneExigence
private int nombreExigenceParCasDeTests
private int nombreActionsParCasDeTests
private boolean isEcritFeuilleTest
private boolean isEcritFeuilleExigence
private jxl.write.Label label
private jxl.write.Number nombre
private java.lang.String nomFichierXLS
private EcritEntete ecritEntete
private java.lang.String resulEffectif
private boolean isErreurEcritureXLS
private java.lang.String xmlDir
private java.lang.String fs
Constructor Detail |
---|
public FromXmlToExcel(java.lang.String fichierXml, boolean selectionExportExigence, boolean selectionExportTest) throws org.dom4j.DocumentException, java.lang.Exception, java.io.IOException
selectionExportExigence
- parametre case à cocherselectionExportTest
- parametre case à cocherfichierXml
- Name of the XML file
org.dom4j.DocumentException
- DocumentException
java.lang.Exception
- Lang.Exception
java.io.IOException
- IOExceptionMethod Detail |
---|
public void openXmlFile(java.lang.String fichierXml) throws org.dom4j.DocumentException
fichierXml
- Name of the XML File
org.dom4j.DocumentException
- DocumentExceptionpublic void readXMLFileTest(org.dom4j.Document documentXml, boolean selectionExportExigence) throws org.dom4j.DocumentException, java.lang.Exception
selectionExportExigence
- parametre case à cocherdocumentXml
- document Xml
org.dom4j.DocumentException
- DocumentException
java.lang.Exception
- Exceptionpublic java.lang.String removeSpecialCharacters(java.lang.String chaineAModifier)
chaineAModifier
- A string for argument
public void readXMLFile(org.dom4j.Document documentXml) throws org.dom4j.DocumentException, java.lang.Exception
documentXml
- document Xml
org.dom4j.DocumentException
- DocumentException
java.lang.Exception
- Exceptionpublic void readRequirementsSettings(java.lang.String ParsingRequirement) throws jxl.write.WriteException
ParsingRequirement
- requirement name
jxl.write.WriteException
- Erreur Ecriture Excelpublic void writeXLSHeading(java.lang.String Exigencelu) throws jxl.write.WriteException
Exigencelu
- Requirement read by the XML Parser
jxl.write.WriteException
- WriteExceptionpublic void organizeXLSfile(boolean selectionExportExigence, boolean selectionExportTest) throws jxl.write.WriteException
selectionExportExigence
- parametre case à cocherselectionExportTest
- parametre case à cocher
jxl.write.WriteException
- Write Exceptionpublic boolean getWriteErrorXLS()
public boolean setErreurEcritureXLS()
public java.lang.String createXlsFile(java.lang.String nomFichierSortie)
nomFichierSortie
- Name of the XML File
public java.lang.String getfichierDeSortieXLS()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |