|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectsalomeTMF_plug.pluginxlsxml.Import.FromExcelToXml
public class FromExcelToXml
Read a Spreadsheet haiving requirements ans test cases, and transform them in XML to be imported by Doc XML in SaloméTMF
Field Summary | |
---|---|
private org.dom4j.Element |
actionTest
Deprecated. |
private org.dom4j.Element |
campagneTests
Deprecated. |
private int |
differrenceFusion
Deprecated. |
private org.dom4j.Document |
documentXml
Deprecated. |
private java.lang.String |
exigenceAEcrire
Deprecated. |
private java.util.Vector |
exigenceID
Deprecated. |
private java.lang.String |
exigenceLu
Deprecated. |
private java.lang.String |
exigenceLuTest
Deprecated. |
private java.lang.String |
exigenceNonTrouvePourTest
Deprecated. |
private org.dom4j.Element |
famille
Deprecated. |
private java.lang.String |
familleEnCours
Deprecated. |
private java.lang.String |
famillePrecedente
Deprecated. |
private org.dom4j.Element |
familles
Deprecated. |
private org.dom4j.Element |
familyRequirement
Deprecated. |
private java.io.File |
fichierDeSortieXML
Deprecated. |
private java.lang.String |
fichiersNonImportes
Deprecated. |
private java.lang.String |
fs
Deprecated. Get the File Separator (different between Unix and Windows) |
private int |
indiceActionTest
Deprecated. |
private int |
indiceCampagne
Deprecated. |
private int |
indiceExecCampagne
Deprecated. |
private int |
indiceFamilleTest
Deprecated. |
private int |
indiceRequirementExigenceEnCours
Deprecated. |
private int |
indiceRequirementFamilleEnCours
Deprecated. |
private int |
indiceSuiteTest
Deprecated. |
private int |
indiceTestTest
Deprecated. |
private boolean |
isErreurFormalismeExcel
Deprecated. |
private boolean |
isErreurImportFichier
Deprecated. |
private boolean |
isErreurTraitementImport
Deprecated. |
private boolean |
isPresenceColonneActionARealiser
Deprecated. |
private boolean |
isPresenceColonneActionAttendue
Deprecated. |
private boolean |
isPresenceColonneCasDeTests
Deprecated. |
private boolean |
isPresenceColonneCategorie
Deprecated. |
private boolean |
isPresenceColonneComplexite
Deprecated. |
private boolean |
isPresenceColonneDescription
Deprecated. |
private boolean |
isPresenceColonneDescriptionTest
Deprecated. |
private boolean |
isPresenceColonneEtat
Deprecated. |
private boolean |
isPresenceColonneExigence
Deprecated. |
private boolean |
isPresenceColonneExigenceTests
Deprecated. |
private boolean |
isPresenceColonneFamille
Deprecated. |
private boolean |
isPresenceColonneFamilleTests
Deprecated. |
private boolean |
isPresenceColonneLienHypertexte
Deprecated. |
private boolean |
isPresenceColonneNumeroTests
Deprecated. |
private boolean |
isPresenceColonneOrigine
Deprecated. |
private boolean |
isPresenceColonnePieceJointe
Deprecated. |
private boolean |
isPresenceColonnePriorite
Deprecated. |
private boolean |
isPresenceColonneReference
Deprecated. |
private boolean |
isPresenceColonneTestLienHypertexte
Deprecated. |
private boolean |
isPresenceColonneTestPieceJointe
Deprecated. |
private boolean |
isPresenceColonneVerifWay
Deprecated. |
private boolean |
isPresenceColonneVersion
Deprecated. |
private int |
ligneDebutTableau
Deprecated. |
private int |
ligneEntete
Deprecated. |
private org.dom4j.Element |
linkRequirement
Deprecated. |
private java.util.Vector |
listeExigencesCampagnes
Deprecated. |
private java.util.Vector |
listeFamille
Deprecated. |
private java.util.Vector |
listePourCampagne
Deprecated. |
private java.util.Vector |
listeTestsPourCampagne
Deprecated. |
private int |
nombreColonneTableau
Deprecated. |
private int |
nombreColonneTableauTests
Deprecated. |
private int |
nombreLigneTableau
Deprecated. |
private int |
nombreLigneTableauTests
Deprecated. |
private java.lang.String |
nomFichierXML
Deprecated. |
private int |
numeroColonneActionARealiser
Deprecated. |
private int |
numeroColonneActionAttendue
Deprecated. |
private int |
numeroColonneCasDeTests
Deprecated. |
private int |
numeroColonneCategorie
Deprecated. |
private int |
numeroColonneComplexite
Deprecated. |
private int |
numeroColonneDescription
Deprecated. |
private int |
numeroColonneDescriptionTest
Deprecated. |
private int |
numeroColonneEtat
Deprecated. |
private int |
numeroColonneExigence
Deprecated. |
private int |
numeroColonneExigenceTests
Deprecated. |
private int |
numeroColonneFamille
Deprecated. |
private int |
numeroColonneFamilleTests
Deprecated. |
private int |
numeroColonneLienHypertexte
Deprecated. |
private int |
numeroColonneNumeroTests
Deprecated. |
private int |
numeroColonneOrigine
Deprecated. |
private int |
numeroColonnePieceJointe
Deprecated. |
private int |
numeroColonnePriorite
Deprecated. |
private int |
numeroColonneReference
Deprecated. |
private int |
numeroColonneTestLienHypertexte
Deprecated. |
private int |
numeroColonneTestPieceJointe
Deprecated. |
private int |
numeroColonneVerifWay
Deprecated. |
private int |
numeroColonneVersion
Deprecated. |
private org.objectweb.salome_tmf.plugins.IPlugObject |
pIPlugObject
Deprecated. |
private org.dom4j.Element |
projetVT
Deprecated. |
private org.dom4j.Element |
requirements
Deprecated. |
private jxl.Sheet |
sheet
Deprecated. |
private java.lang.String |
Sortie
Deprecated. |
private org.dom4j.Element |
test
Deprecated. |
private org.dom4j.Element |
testManuel
Deprecated. |
private org.dom4j.Element |
tests
Deprecated. |
private jxl.Sheet |
testSheet
Deprecated. |
private java.lang.String |
valeurActionARealiser
Deprecated. |
private java.lang.String |
valeurActionAttendue
Deprecated. |
private java.lang.String |
valeurCasDeTests
Deprecated. |
private java.lang.String |
valeurCategorie
Deprecated. |
private java.lang.String |
valeurComplexite
Deprecated. |
private java.lang.String |
valeurDescription
Deprecated. |
private java.lang.String |
valeurDescriptionTest
Deprecated. |
private java.lang.String |
valeurEtat
Deprecated. |
private java.lang.String |
valeurExigenceTests
Deprecated. |
private java.lang.String |
valeurFamilleTests
Deprecated. |
private java.util.ArrayList |
valeurLienHypertexte
Deprecated. |
private java.lang.String |
valeurNumeroTests
Deprecated. |
private java.lang.String |
valeurOrigine
Deprecated. |
private java.util.ArrayList |
valeurPieceJointe
Deprecated. |
private java.lang.String |
valeurPriorite
Deprecated. |
private java.lang.String |
valeurReference
Deprecated. |
private java.util.ArrayList |
valeurTestLienHypertexte
Deprecated. |
private java.util.ArrayList |
valeurTestPieceJointe
Deprecated. |
private java.lang.String |
valeurVerifWay
Deprecated. |
private java.lang.String |
valeurVersion
Deprecated. |
private jxl.Workbook |
workbook
Deprecated. |
private java.lang.String |
xmlDir
Deprecated. |
Constructor Summary | |
---|---|
FromExcelToXml(java.lang.String fichierExcel,
boolean selectionImportExigence,
boolean selectionImportTest,
java.lang.String creationCampagne)
Deprecated. Read a Spreadsheet having requirements ans test cases, and transform them in XML to be imported by Doc XML in SaloméTMF |
Method Summary | |
---|---|
void |
closeXmlAndXlsFiles()
Deprecated. Function that close the XLS and the XML file This function tries to delete empties spreadsheet's columns |
java.lang.String |
copyFileAttachements(java.lang.String listePJ,
java.lang.String type,
java.lang.String exigenceLu)
Deprecated. Function that verify if attachements are accessible and copy them into a same directory tree |
java.lang.String |
createXmlFile(java.lang.String nomFichierXml)
Deprecated. Function that create the XML file from the name typed in the swing component |
(package private) void |
creeCampagne(java.lang.String nomCampagne,
java.util.Vector vectorElementsofCampaign)
Deprecated. Fonction that generate acampaign |
(package private) void |
creeCampagnes(java.lang.String creationCampagne)
Deprecated. Fonction that generate campaigns |
boolean |
getErreurImportFichier()
Deprecated. Function that return if the transformation in a XML File was OK |
java.lang.String |
getExigenceNonTrouvePourTest()
Deprecated. Function that only return the list of requirements that don't exist |
java.lang.String |
getFichiersNonImportes()
Deprecated. Function that only return the name of the files that had not been imported |
boolean |
getIsErreurTraitementImport()
Deprecated. Function that only return true if there has been an error during import |
java.lang.String |
getXmlDir()
Deprecated. Function that only return the npath of the xlm created by this function |
java.lang.String |
getXMLFileName()
Deprecated. Function that only return the name of the XML File |
void |
openXLSFile(java.lang.String FichierExcel)
Deprecated. Function testing the presence of the XLS file and open it |
void |
readFamilyTest(int i)
Deprecated. read a family for a test |
void |
readRequirementTest(int debutCasDeTest,
int hauteurCasDeTest)
Deprecated. Read all requirements linked to a test |
void |
readXlsTableRequirement()
Deprecated. Function that read each cells of the requirement spreadsheet |
void |
readXlsTableTest()
Deprecated. Read all the spreadsheet for the test |
java.lang.String |
removeSpecialCharacters(java.lang.String chaineAModifier)
Deprecated. Modify a string to pass spécial characters like quote |
(package private) java.lang.String |
restorePath(java.lang.String path)
Deprecated. |
void |
testColumnsPresenceRequirement()
Deprecated. Function that verify the presence of requirement columns in the requirement spreadsheet |
void |
testColumnsPresenceTests()
Deprecated. Function that Verify the presence of test columns in the test spreadsheet |
(package private) boolean |
testIfRequirementExists(java.lang.String ExigenceAComparer)
Deprecated. Fonction that compare if the requirement read in the test sheet is the same as the previous, to no write it twice in the XML file |
void |
writeActionTest()
Deprecated. Write one action for a test |
void |
writeFamilyRequirement()
Deprecated. Function that write a family Requirement in the XML File |
void |
writeFamilyTest()
Deprecated. Function that write a family test in the XML File |
void |
writeRequirement(boolean familleExiste)
Deprecated. Function that write a Requirement in the XML File |
void |
writeRequirementLinkToTest()
Deprecated. Write a requirement linked to a test |
void |
writeTest()
Deprecated. Function that write a test in the XML File |
void |
writeTestCase(int debutCasDeTest,
int hauteurCasDeTest)
Deprecated. Write a coplete test case |
void |
writeXmlHeading()
Deprecated. Function that write the XML Heading (common to every XML files) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String xmlDir
private java.lang.String Sortie
private jxl.Workbook workbook
private jxl.Sheet sheet
private jxl.Sheet testSheet
private int nombreColonneTableau
private int nombreLigneTableau
private int nombreColonneTableauTests
private int nombreLigneTableauTests
private int ligneDebutTableau
private java.io.File fichierDeSortieXML
private java.lang.String fichiersNonImportes
private boolean isErreurImportFichier
private boolean isErreurTraitementImport
private boolean isPresenceColonneExigence
private int numeroColonneExigence
private boolean isPresenceColonneFamille
private int numeroColonneFamille
private java.lang.String familleEnCours
private boolean isPresenceColonnePriorite
private int numeroColonnePriorite
private java.lang.String valeurPriorite
private boolean isPresenceColonneVersion
private int numeroColonneVersion
private java.lang.String valeurVersion
private boolean isPresenceColonneCategorie
private int numeroColonneCategorie
private java.lang.String valeurCategorie
private boolean isPresenceColonneDescription
private int numeroColonneDescription
private java.lang.String valeurDescription
private boolean isPresenceColonneLienHypertexte
private int numeroColonneLienHypertexte
private java.util.ArrayList valeurLienHypertexte
private boolean isPresenceColonneComplexite
private int numeroColonneComplexite
private java.lang.String valeurComplexite
private boolean isPresenceColonneEtat
private int numeroColonneEtat
private java.lang.String valeurEtat
private boolean isPresenceColonneOrigine
private int numeroColonneOrigine
private java.lang.String valeurOrigine
private boolean isPresenceColonneVerifWay
private int numeroColonneVerifWay
private java.lang.String valeurVerifWay
private boolean isPresenceColonnePieceJointe
private int numeroColonnePieceJointe
private java.util.ArrayList valeurPieceJointe
private boolean isPresenceColonneReference
private int numeroColonneReference
private java.lang.String valeurReference
private boolean isPresenceColonneCasDeTests
private int numeroColonneCasDeTests
private java.lang.String valeurCasDeTests
private boolean isPresenceColonneNumeroTests
private int numeroColonneNumeroTests
private java.lang.String valeurNumeroTests
private boolean isPresenceColonneActionARealiser
private int numeroColonneActionARealiser
private java.lang.String valeurActionARealiser
private boolean isPresenceColonneActionAttendue
private int numeroColonneActionAttendue
private java.lang.String valeurActionAttendue
private boolean isPresenceColonneExigenceTests
private int numeroColonneExigenceTests
private java.lang.String valeurExigenceTests
private boolean isPresenceColonneFamilleTests
private int numeroColonneFamilleTests
private java.lang.String valeurFamilleTests
private boolean isPresenceColonneTestLienHypertexte
private int numeroColonneTestLienHypertexte
private java.util.ArrayList valeurTestLienHypertexte
private boolean isPresenceColonneTestPieceJointe
private int numeroColonneTestPieceJointe
private java.util.ArrayList valeurTestPieceJointe
private boolean isPresenceColonneDescriptionTest
private int numeroColonneDescriptionTest
private java.lang.String valeurDescriptionTest
private int differrenceFusion
private int ligneEntete
private java.lang.String famillePrecedente
private int indiceRequirementFamilleEnCours
private int indiceRequirementExigenceEnCours
private int indiceFamilleTest
private int indiceSuiteTest
private int indiceTestTest
private int indiceActionTest
private int indiceCampagne
private int indiceExecCampagne
private java.lang.String exigenceLu
private java.lang.String exigenceLuTest
private java.lang.String nomFichierXML
private org.dom4j.Document documentXml
private org.dom4j.Element projetVT
private org.dom4j.Element requirements
private org.dom4j.Element familyRequirement
private org.dom4j.Element familles
private org.dom4j.Element famille
private org.dom4j.Element tests
private org.dom4j.Element test
private org.dom4j.Element testManuel
private org.dom4j.Element actionTest
private org.dom4j.Element linkRequirement
private org.dom4j.Element campagneTests
private java.lang.String exigenceAEcrire
private boolean isErreurFormalismeExcel
private java.util.Vector exigenceID
private java.util.Vector listeTestsPourCampagne
private java.lang.String exigenceNonTrouvePourTest
private java.util.Vector listeFamille
private java.util.Vector listePourCampagne
private java.util.Vector listeExigencesCampagnes
private java.lang.String fs
private org.objectweb.salome_tmf.plugins.IPlugObject pIPlugObject
Constructor Detail |
---|
public FromExcelToXml(java.lang.String fichierExcel, boolean selectionImportExigence, boolean selectionImportTest, java.lang.String creationCampagne) throws java.lang.Exception
selectionImportExigence
- parametre case à cocherselectionImportTest
- parametre case à cochercreationCampagne
- parametre case à cocherfichierExcel
- Name of the spreadsheet file
java.lang.Exception
- Langauge ExceptionMethod Detail |
---|
void creeCampagnes(java.lang.String creationCampagne)
creationCampagne
- type of camapaign to createvoid creeCampagne(java.lang.String nomCampagne, java.util.Vector vectorElementsofCampaign)
nomCampagne
- name of campaign to createvectorElementsofCampaign
- vector containing all elements to create a campaignboolean testIfRequirementExists(java.lang.String ExigenceAComparer)
ExigenceAComparer
- Name of a requirement to compare
public void writeTest()
public void writeActionTest()
public void writeRequirementLinkToTest()
public void writeFamilyTest()
public void readFamilyTest(int i)
i
- numbre of line readpublic void readRequirementTest(int debutCasDeTest, int hauteurCasDeTest)
debutCasDeTest
- integerhauteurCasDeTest
- integerpublic void readXlsTableTest() throws java.lang.Exception
java.lang.Exception
- Null pointer exceptionpublic void writeTestCase(int debutCasDeTest, int hauteurCasDeTest)
debutCasDeTest
- IntegerhauteurCasDeTest
- Integerpublic void testColumnsPresenceTests()
public void writeFamilyRequirement()
public void writeRequirement(boolean familleExiste)
familleExiste
- booleanpublic void readXlsTableRequirement() throws java.lang.Exception
java.lang.Exception
- Language Exceptionpublic void testColumnsPresenceRequirement()
public void writeXmlHeading()
public java.lang.String createXmlFile(java.lang.String nomFichierXml)
nomFichierXml
- Name of the XML file
public void openXLSFile(java.lang.String FichierExcel)
FichierExcel
- Name of the XLS Filepublic void closeXmlAndXlsFiles()
public java.lang.String getFichiersNonImportes()
public java.lang.String getXmlDir()
public boolean getIsErreurTraitementImport()
public java.lang.String getXMLFileName()
public java.lang.String getExigenceNonTrouvePourTest()
public boolean getErreurImportFichier()
public java.lang.String copyFileAttachements(java.lang.String listePJ, java.lang.String type, java.lang.String exigenceLu) throws java.lang.Exception
listePJ
- Filetype
- Requirement or testexigenceLu
- Requirement linket to file
java.lang.Exception
- Language Exceptionpublic java.lang.String removeSpecialCharacters(java.lang.String chaineAModifier)
chaineAModifier
- A string for argument
java.lang.String restorePath(java.lang.String path) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |