Java Doc for ImportXML2.java in  » Test-Coverage » salome-tmf » salomeTMF_plug » docXML » importxml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » salome tmf » salomeTMF_plug.docXML.importxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   salomeTMF_plug.docXML.importxml.ImportXML2

ImportXML2
public class ImportXML2 implements ApiConstants,IHMConstants,XMLLoaderPlugin(Code)



Constructor Summary
public  ImportXML2(JDialog dialog, Document document, ArrayList<Family> familySelectionList, ArrayList<TestList> suiteSelectionList, ArrayList<Test> testSelectionList, AdminVTData adminVTData, IPlugObject plugObject)
    

Method Summary
public  voidajoutParametresActions(Element actionElem, Action pAction)
    
public  voidajouterActions(Element testElem, ManualTest test)
    
public  voidajouterAttachements(Element elem, WithAttachment attachableElement)
    
public  voidajouterExecutions(Element campElem, Campaign pCamp)
    
public  voidajouterResulExecs(Element execElem, Execution pExecution)
    
public  voidajouterScriptToExec(Element script, Execution pExecution)
    
public  booleandetecterModif(Family pFamily, TestList suite, Element testElem)
    
 voidexecInCampDeletion(Element campElem, Campaign camp)
    
public  booleanexistModifInParamsAction(Element actionElem, Action action)
    
public  StringgetDigest(File f)
    
public  voidimportInNewProject()
    
public  voidimportInProject()
    
public  booleanisAnnule()
    
public  booleanisInitSelection()
    
public  booleanmustKeepCopy(Campaign campaign, Element campElem)
     Method which detects if the campaign in database must be copied or not.
public  voidsetAnnule(boolean b)
    
public  voidsetDirXml(String dirXml)
    
public  voidsetImportCampaign(boolean importCampaign)
    
public  voidsetInitSelection(boolean initSelection)
    
public  voidupdateElementAttachement(Element element, WithAttachment data, boolean isNewElement)
    
public  voidupdateParametresTest(Element testElem, Test test)
    
 voidupdatePlugin()
    
public  voidupdateTestScript(Element testElem, AutomaticTest test)
    


Constructor Detail
ImportXML2
public ImportXML2(JDialog dialog, Document document, ArrayList<Family> familySelectionList, ArrayList<TestList> suiteSelectionList, ArrayList<Test> testSelectionList, AdminVTData adminVTData, IPlugObject plugObject)(Code)




Method Detail
ajoutParametresActions
public void ajoutParametresActions(Element actionElem, Action pAction) throws Exception(Code)
Si l'action existait dans la BD, ajout ou mise à jour des paramètres
Parameters:
  pAction - identifiant de l'action
Parameters:
  actionElem - élément action du document comportant les données



ajouterActions
public void ajouterActions(Element testElem, ManualTest test) throws Exception(Code)
Dans le cas où le test n'était pas déjà dans la BD, ajout des actions
Parameters:
  testElem - élément qui représente le test dans le document XML
Parameters:
  id_test - identifiant du test qui a été ajouté à la BD



ajouterAttachements
public void ajouterAttachements(Element elem, WithAttachment attachableElement) throws Exception(Code)
Dans le cas où attachableElement n'était pas déjà dans la BD, ajout des attachements
Parameters:
  elem - : élément qui représente le WithAttachment dans le document XML
Parameters:
  attachableElement -



ajouterExecutions
public void ajouterExecutions(Element campElem, Campaign pCamp) throws Exception(Code)
Méthode qui ajoute les exécutions aux campagnes qui n'était pas au préalable dans la BD
Parameters:
  campElem - élément représentant la campagne dans le document XML
Parameters:
  id_camp - identifiant de la campagne dans la BD



ajouterResulExecs
public void ajouterResulExecs(Element execElem, Execution pExecution) throws Exception(Code)
Méthode qui rajoute les résultats d'exécution à une campagne
Parameters:
  execElem - élément représentant l'exécution d'une campagne dans le document XML
Parameters:
  id_exec - identifiant de l'exécution dans la BD
Parameters:
  campName - nom de la campagne qui contient l'exécution



ajouterScriptToExec
public void ajouterScriptToExec(Element script, Execution pExecution) throws Exception(Code)
Méthode qui ajoute un script à une exécution
Parameters:
  script - élément script du document XML
Parameters:
  id_exec - identifiant de l'exécution



detecterModif
public boolean detecterModif(Family pFamily, TestList suite, Element testElem) throws Exception(Code)
On cherche à savoir si le test du projet possède des différences avec le test présent dans le fichier XML, ces différences générant un conflit
Parameters:
  familyName - nom de la famille auquelle appartient le test
Parameters:
  suiteName - nom de la suite auquelle appartient le test
Parameters:
  testElem - élément test du document XML true si réel conflit, false sinon



execInCampDeletion
void execInCampDeletion(Element campElem, Campaign camp) throws Exception(Code)
Delete executions which are in database and not in XML document
Parameters:
  campElem -
Parameters:
  camp -



existModifInParamsAction
public boolean existModifInParamsAction(Element actionElem, Action action) throws Exception(Code)
Méthode qui évalue si il y a une différence entre les paramètres d'une action dans le document XML et ceux de cette même action dans le projet Salomé
Parameters:
  actionElem - élément du document DOM4J contenant l'action
Parameters:
  action - action dans le modèle de SaloméTMF



getDigest
public String getDigest(File f)(Code)
Gives MD5 of the given file
Parameters:
  f -



importInNewProject
public void importInNewProject() throws Exception(Code)
Launch the import process from the createDialog in Administration of Salome
throws:
  Exception -



importInProject
public void importInProject() throws Exception(Code)
Launch the import process
throws:
  Exception -



isAnnule
public boolean isAnnule()(Code)
Verify if the task was cancelled



isInitSelection
public boolean isInitSelection()(Code)
Return true if the list of selected tests was initialized



mustKeepCopy
public boolean mustKeepCopy(Campaign campaign, Element campElem) throws Exception(Code)
Method which detects if the campaign in database must be copied or not. The campaign in database must be copied if it contains tests which have been saved in the test plan or it does not contain the same tests.
Parameters:
  campaign - campaign in DB
Parameters:
  campElem - campaign in XML document



setAnnule
public void setAnnule(boolean b)(Code)
Cancel the current task
Parameters:
  b -



setDirXml
public void setDirXml(String dirXml)(Code)
Set the directory where the XML file is
Parameters:
  dirXml -



setImportCampaign
public void setImportCampaign(boolean importCampaign)(Code)
Set the field defines if campaigns are also imported
Parameters:
  selected -



setInitSelection
public void setInitSelection(boolean initSelection)(Code)
True in parameter if the test selection has been already initialized
Parameters:
  initSelection -



updateElementAttachement
public void updateElementAttachement(Element element, WithAttachment data, boolean isNewElement)(Code)
Update attachments of an element



updateParametresTest
public void updateParametresTest(Element testElem, Test test) throws Exception(Code)
Dans le cas où le test était déjà dans la BD, ajout des paramètres
Parameters:
  test - le test concerné
Parameters:
  testElem - élément qui représente le test dans le document XML
Parameters:
  id_test - identifiant du test qui a été ajouté à la BD



updatePlugin
void updatePlugin() throws Exception(Code)



updateTestScript
public void updateTestScript(Element testElem, AutomaticTest test) throws Exception(Code)
Dans le cas où le test était déjà dans la BD, ajout ou mise à jour du script
Parameters:
  familyName - nom de la famille auquelle appartient le test
Parameters:
  suiteName - nom de la suite auquelle appartient le test
Parameters:
  testElem - élément qui représente le test dans le document XML
Parameters:
  id_test - identifiant du test qui a été ajouté à la BD



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.