com.altair.hwm.toolkit.datamodel
Class HWMDataModelXMLExport

java.lang.Object
  extended by com.altair.hwm.toolkit.datamodel.HWMDataModelXMLExport

public class HWMDataModelXMLExport
extends java.lang.Object

Title: HWMDataModelXMLExport

Description: It exports data model in xml format.

Company: Altair Engineering, Inc.


Field Summary
 java.io.File m_fileXML
          XML file to write the data model information
 HWMModelInstance m_hwmModelInstance
          The model instance
 
Constructor Summary
HWMDataModelXMLExport(HWMModelInstance hwmModelInstance, com.jidesoft.grid.TreeTable treeTable, java.io.File fileXMLData)
          Constructor Method : HWMDataModelXMLExport
 
Method Summary
 void ExportDataModelInXMLFormat()
          Method : ExportDataModelInXMLFormat Main method, which is called to export data model in XML format
 void WriteControlPropertiesIntoXML(com.altair.hwm.toolkit.datamodel.HWMCellEntry infoBean, org.jdom.Element elemTaskBean)
          Method : WriteControlPropertiesIntoXML Method writes out the properties of each control or bean, which is in a task into XML file
 void WriteDataModelInfo(org.jdom.Element elemDataModel)
          Method : WriteDataModelInfo Method writes out the details of data model into xml format
 void WriteDataModelInXML(java.io.File fileXML)
          Method : WriteDataModelInXML Main XML format would be written here, which contains heading, comments etc (xml structring).
 void WriteTaskControlInfoIntoXML(com.altair.hwm.toolkit.datamodel.HWMCellEntry infoCellRow, org.jdom.Element elemTaskName)
          Method : WriteTaskControlInfoIntoXML Method writes out bean or control information of each task into XML file
 void WriteTaskInfoIntoXML(org.jdom.Element elemTaskInfo)
          Method : WriteTaskInfoIntoXML Method writes out the details of all tasks into XML file
 void WriteTaskRelatedInfoIntoXML(org.jdom.Element elemDataModelInfo)
          Method : WriteTaskRelatedInfoIntoXML Method writes out the Task information into XML file.
 void WriteUserDataIntoXML(org.jdom.Element elemUserDataInfo)
          Method : WriteUserDataIntoXML Method writes out the details of all userdata, which is in tree table into XML file
 void WriteUserRelatedDataInfoIntoXML(org.jdom.Element elemDataModelInfo)
          Method : WriteUserRelatedDataInfoIntoXML Method writes out the User relate data or information into XML file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_hwmModelInstance

public HWMModelInstance m_hwmModelInstance
The model instance


m_fileXML

public java.io.File m_fileXML
XML file to write the data model information

Constructor Detail

HWMDataModelXMLExport

public HWMDataModelXMLExport(HWMModelInstance hwmModelInstance,
                             com.jidesoft.grid.TreeTable treeTable,
                             java.io.File fileXMLData)
Constructor Method : HWMDataModelXMLExport

Parameters:
HWMModelInstance - hwmModelInstance - The current model instance
TreeTable - treeTable - Treetable of Data Model Viewer from which all details would be retrieved
Method Detail

ExportDataModelInXMLFormat

public void ExportDataModelInXMLFormat()
                                throws java.lang.Exception
Method : ExportDataModelInXMLFormat Main method, which is called to export data model in XML format

Throws:
java.lang.Exception

WriteDataModelInXML

public void WriteDataModelInXML(java.io.File fileXML)
                         throws java.lang.Exception
Method : WriteDataModelInXML Main XML format would be written here, which contains heading, comments etc (xml structring).

Parameters:
File - : fileXML - XML file to export
Throws:
java.lang.Exception

WriteDataModelInfo

public void WriteDataModelInfo(org.jdom.Element elemDataModel)
Method : WriteDataModelInfo Method writes out the details of data model into xml format

Parameters:
XML - Element : elemDataModel

WriteTaskRelatedInfoIntoXML

public void WriteTaskRelatedInfoIntoXML(org.jdom.Element elemDataModelInfo)
Method : WriteTaskRelatedInfoIntoXML Method writes out the Task information into XML file. All the task related info would be taken from treetable and written to xml file

Parameters:
XML - Element : elemDataModelInfo

WriteTaskInfoIntoXML

public void WriteTaskInfoIntoXML(org.jdom.Element elemTaskInfo)
Method : WriteTaskInfoIntoXML Method writes out the details of all tasks into XML file

Parameters:
XML - Element : elemTaskInfo

WriteTaskControlInfoIntoXML

public void WriteTaskControlInfoIntoXML(com.altair.hwm.toolkit.datamodel.HWMCellEntry infoCellRow,
                                        org.jdom.Element elemTaskName)
Method : WriteTaskControlInfoIntoXML Method writes out bean or control information of each task into XML file

Parameters:
HWMCellEntry - : infoCellRow - Treenode of treetable from which all children detaile would be taken
XML - Element : elemTaskName

WriteControlPropertiesIntoXML

public void WriteControlPropertiesIntoXML(com.altair.hwm.toolkit.datamodel.HWMCellEntry infoBean,
                                          org.jdom.Element elemTaskBean)
Method : WriteControlPropertiesIntoXML Method writes out the properties of each control or bean, which is in a task into XML file

Parameters:
HWMCellEntry - : infoBean - Treenode of treetable from which all children detaile would be taken
XML - Element : elemTaskBean

WriteUserRelatedDataInfoIntoXML

public void WriteUserRelatedDataInfoIntoXML(org.jdom.Element elemDataModelInfo)
Method : WriteUserRelatedDataInfoIntoXML Method writes out the User relate data or information into XML file. All the user related info would be taken from treetable and written to xml file

Parameters:
XML - Element : elemDataModelInfo

WriteUserDataIntoXML

public void WriteUserDataIntoXML(org.jdom.Element elemUserDataInfo)
Method : WriteUserDataIntoXML Method writes out the details of all userdata, which is in tree table into XML file

Parameters:
XML - Element : elemUserDataInfo