Package dataprocessor :: Package sax :: Module saxjcml2orange :: Class SaxJcml2Orange
[hide private]
[frames] | no frames]

Class SaxJcml2Orange

source code

This class converts jcml format to tab format (orange format). The output file is saved to the same folder where input file is.

Instance Methods [hide private]
 
__init__(self, input_xml_filename, class_name, desired_attributes, meta_attributes, output_file, **kwargs)
Init calls class SaxJcmlOrangeHeader for creating header and SaxJcmlOrangeContent for creating content.
source code
 
get_orange_header(self)
This function gets orange header.
source code
 
get_orange_content(self)
This function gets orange content.
source code
 
test_orange(self)
Test function for getting orange file.
source code
Method Details [hide private]

__init__(self, input_xml_filename, class_name, desired_attributes, meta_attributes, output_file, **kwargs)
(Constructor)

source code 

Init calls class SaxJcmlOrangeHeader for creating header and SaxJcmlOrangeContent for creating content.

Parameters:
  • input_xml_filename (string) - name of input jcml file
  • class_name (string) - name of class
  • desired_attributes (list of strings) - desired attributes
  • meta_attributes (list of strings) - meta attributes