|
||||||||||
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 having requirements and test cases, and transform them in XML to be imported by Doc XML in SalomeTMF
Constructor Summary | |
---|---|
FromExcelToXml(java.lang.String fichierExcel,
boolean selectionImportExigence,
boolean selectionImportTest,
boolean selectionImportParametre,
boolean selectionImportEnvironnement,
java.lang.String creationCampagne,
boolean selectionExecutionCampagnes,
boolean selectionAssociationExigencesSalome,
org.objectweb.salome_tmf.plugins.IPlugObject vt)
Deprecated. Read a Spreadsheet having requirements ans test cases, and transform them in XML to be imported by Doc XML in SalomeTMF |
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 |
javax.swing.tree.DefaultMutableTreeNode |
getChosenRoot()
Deprecated. Get chosenRoot |
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 |
boolean |
getExigenceSelection()
Deprecated. Return true si case a cocher Exigence est selectionnee |
java.util.ArrayList |
getFamilySelectionList()
Deprecated. Get familySelectionList |
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 |
getListeCampagneNonTrouve()
Deprecated. listeCampagneNonTrouve |
java.util.ArrayList |
getSuiteSelectionList()
Deprecated. Get suiteSelectionList |
boolean |
getTestSelection()
Deprecated. Return true si case a cocher tests est selectionnee |
java.util.ArrayList |
getTestSelectionList()
Deprecated. Get testSelectionList |
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 |
boolean |
isInitSelection()
Deprecated. Get isInitSelection |
void |
litLesExecutions(int debutExecutionCampagne,
int hauteurExecutionCampagne)
Deprecated. Lit les executions des campagnes |
void |
litLesResultatExecutionsTests(int debutResultatExecutionCampagne,
int hauteurResultatExecutionCampagne)
Deprecated. Lit les resultats d'executions des campagnes |
void |
litPJetURL(org.dom4j.Element ElementAAttachements,
jxl.Sheet feuilleExcel,
int ligneALire,
boolean presenceColonneLienHypertexte,
int numeroColonneLienHypertexte,
boolean presenceColonnePieceJointe,
int numeroColonnePieceJointe,
java.lang.String repertoirePieceJointe)
Deprecated. read url and files for all spreadsheets |
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 |
readXlsTableCampagnes(boolean selectionImportExigence,
boolean selectionImportParametre,
boolean selectionExecutionCampagnes)
Deprecated. Read all the spreadsheet for the campaigns |
void |
readXlsTableEnvironnement(boolean selectionImportParametre,
boolean selectionImportTest)
Deprecated. Read all the spreadsheet for the environments |
void |
readXlsTableExecutionCampagnes(java.lang.String valeurNomCampagne)
Deprecated. Lit la feuille executions des campagnes |
void |
readXlsTableParametre()
Deprecated. Read all the spreadsheet for the parameters |
void |
readXlsTableRequirement()
Deprecated. Function that read each cells of the requirement spreadsheet |
void |
readXlsTableTest(boolean selectionImportExigence,
boolean selectionAssociationExigencesSalome,
boolean selectionImportParametre)
Deprecated. Read all the spreadsheet for the test |
java.lang.String |
RemiseEnFormeDescription(java.lang.String valeurDescription)
Deprecated. Permet d'enlever les espaces en trop d'une chaine de caracteres pour la cellule Description |
java.lang.String |
removeSpecialCharacters(java.lang.String chaineAModifier)
Deprecated. Modify a string to pass special characters like quote |
java.lang.String |
replace_BySpecialChar(java.lang.String value)
Deprecated. |
java.lang.String |
replaceSpecialCharBy_(java.lang.String value)
Deprecated. |
void |
setChosenRoot(javax.swing.tree.DefaultMutableTreeNode chosenRoot)
Deprecated. Set chosenRoot |
void |
setFamilySelectionList(java.util.ArrayList familySelectionList)
Deprecated. Set familySelectionList |
void |
setInitSelection(boolean initSelection)
Deprecated. Set isInitSelection |
void |
setSuiteSelectionList(java.util.ArrayList suiteSelectionList)
Deprecated. Set suiteSelectionList |
void |
setTestSelectionList(java.util.ArrayList testSelectionList)
Deprecated. Set testSelectionList |
void |
testColumnsPresenceCampagnes()
Deprecated. Function that Verify the presence of parameters columns in the paremeter spreadsheet |
void |
testColumnsPresenceEnvironnement()
Deprecated. Function that Verify the presence of environments columns in the enviroment spreadsheet |
void |
testColumnsPresenceExecutionCampagnes()
Deprecated. Function that Verify the presence of Execution campaigns columns in the Execution campaign spreadsheet |
void |
testColumnsPresenceParametre()
Deprecated. Function that Verify the presence of parameters columns in the paremeter spreadsheet |
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 |
void |
updateRequirementList(org.objectweb.salome_tmf.plugins.IPlugObject pIPlugObject)
Deprecated. |
void |
writeActionTestAuto()
Deprecated. Write automatic tests |
void |
writeActionTestManuel()
Deprecated. Write one action for a test |
void |
writeFamilyRequirement(java.lang.String familleEnCours2)
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,
java.lang.String exigenceLu,
int lignePourLirePJetURL)
Deprecated. Function that write a Requirement in the XML File |
void |
writeRequirementLinkToTest()
Deprecated. Write a requirement linked to a test |
void |
WriteRequirementsFromSalome()
Deprecated. Function that write requirements read in SalomeTMF |
void |
writeSuiteTest()
Deprecated. write suite test |
void |
writeTest(int lignePourLirePJetURL)
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FromExcelToXml(java.lang.String fichierExcel, boolean selectionImportExigence, boolean selectionImportTest, boolean selectionImportParametre, boolean selectionImportEnvironnement, java.lang.String creationCampagne, boolean selectionExecutionCampagnes, boolean selectionAssociationExigencesSalome, org.objectweb.salome_tmf.plugins.IPlugObject vt) throws java.lang.Exception
selectionImportParametre
- parametre case a cocherselectionImportEnvironnement
- parametre case a cocherselectionExecutionCampagnes
- parametre case a cocherselectionImportExigence
- parametre case a cocherselectionImportTest
- parametre case a cochercreationCampagne
- parametre case a cocherfichierExcel
- Name of the spreadsheet file
java.lang.Exception
- Language ExceptionMethod Detail |
---|
public void WriteRequirementsFromSalome() throws java.lang.Exception
java.lang.Exception
- Language Exceptionpublic void updateRequirementList(org.objectweb.salome_tmf.plugins.IPlugObject pIPlugObject) throws org.dom4j.DocumentException
org.dom4j.DocumentException
public void litLesExecutions(int debutExecutionCampagne, int hauteurExecutionCampagne)
debutExecutionCampagne
- Debut lignehauteurExecutionCampagne
- nombre de lignes a lirepublic void litLesResultatExecutionsTests(int debutResultatExecutionCampagne, int hauteurResultatExecutionCampagne)
debutResultatExecutionCampagne
- Debut lignehauteurResultatExecutionCampagne
- nombre de lignes a lirepublic void readXlsTableExecutionCampagnes(java.lang.String valeurNomCampagne)
valeurNomCampagne
- Nom de la campagnepublic void testColumnsPresenceExecutionCampagnes()
public void litPJetURL(org.dom4j.Element ElementAAttachements, jxl.Sheet feuilleExcel, int ligneALire, boolean presenceColonneLienHypertexte, int numeroColonneLienHypertexte, boolean presenceColonnePieceJointe, int numeroColonnePieceJointe, java.lang.String repertoirePieceJointe)
ElementAAttachements
- Element XMLfeuilleExcel
- Feuille ExcelligneALire
- ligne a lirepresenceColonneLienHypertexte
- presence Colonne Lien HypertextenumeroColonneLienHypertexte
- numero Colonne Lien HypertextepresenceColonnePieceJointe
- presence colonne Piece JointenumeroColonnePieceJointe
- numero colonne Piece JointerepertoirePieceJointe
- Repertoire de stockage des Piece Jointepublic void readXlsTableCampagnes(boolean selectionImportExigence, boolean selectionImportParametre, boolean selectionExecutionCampagnes) throws java.lang.Exception
selectionImportExigence
- selection Import ExigenceselectionExecutionCampagnes
- selection Execution Campagnes
java.lang.Exception
- Exceptionpublic void testColumnsPresenceCampagnes()
public void readXlsTableEnvironnement(boolean selectionImportParametre, boolean selectionImportTest) throws java.lang.Exception
java.lang.Exception
- Null pointer exceptionpublic void testColumnsPresenceEnvironnement()
public void readXlsTableParametre() throws java.lang.Exception
java.lang.Exception
- Null pointer exceptionpublic void testColumnsPresenceParametre()
public void writeTest(int lignePourLirePJetURL)
lignePourLirePJetURL
- lignePourLirePJetURLpublic void writeActionTestAuto()
public void writeActionTestManuel()
public void writeRequirementLinkToTest()
public void writeFamilyTest()
public void writeSuiteTest()
public void readFamilyTest(int i)
i
- numbre of line readpublic void readRequirementTest(int debutCasDeTest, int hauteurCasDeTest)
debutCasDeTest
- integerhauteurCasDeTest
- integerpublic void readXlsTableTest(boolean selectionImportExigence, boolean selectionAssociationExigencesSalome, boolean selectionImportParametre) throws java.lang.Exception
selectionImportExigence
- selectionImportExigence
java.lang.Exception
- Exceptionpublic void writeTestCase(int debutCasDeTest, int hauteurCasDeTest)
debutCasDeTest
- IntegerhauteurCasDeTest
- Integerpublic void testColumnsPresenceTests()
public void writeFamilyRequirement(java.lang.String familleEnCours2)
public void writeRequirement(boolean familleExiste, java.lang.String exigenceLu, int lignePourLirePJetURL)
lignePourLirePJetURL
- lignePourLirePJetURLfamilleExiste
- booleanexigenceLu
- stringdescriptionLu
- stringpublic 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 java.lang.String getListeCampagneNonTrouve()
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
public javax.swing.tree.DefaultMutableTreeNode getChosenRoot()
public void setChosenRoot(javax.swing.tree.DefaultMutableTreeNode chosenRoot)
chosenRoot
- The chosenRoot to set.public java.util.ArrayList getFamilySelectionList()
public void setFamilySelectionList(java.util.ArrayList familySelectionList)
familySelectionList
- The familySelectionList to set.public java.util.ArrayList getSuiteSelectionList()
public void setSuiteSelectionList(java.util.ArrayList suiteSelectionList)
suiteSelectionList
- The suiteSelectionList to set.public java.util.ArrayList getTestSelectionList()
public void setTestSelectionList(java.util.ArrayList testSelectionList)
testSelectionList
- The testSelectionList to set.public boolean isInitSelection()
public boolean getTestSelection()
public boolean getExigenceSelection()
public void setInitSelection(boolean initSelection)
initSelection
- initSelectionpublic java.lang.String RemiseEnFormeDescription(java.lang.String valeurDescription)
valeurDescription
- chaine a modifier
public java.lang.String replace_BySpecialChar(java.lang.String value)
public java.lang.String replaceSpecialCharBy_(java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |