Package dataprocessor :: Package ce :: Module cejcml2orange :: Class CElementTreeJcml2Orange
[hide private]
[frames] | no frames]

Class CElementTreeJcml2Orange

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
 
convert(self) source code
 
get_orange_header(self)
This function gets orange header.
source code
 
_get_attribute_names(self)
Parse once the given XML file and return a set with the attribute names
source code
 
_get_header_text(self) source code
 
get_orange_content(self) source code
 
_write_orange_line(self, ps_nested_attributes, src_text, tgt_text) 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

_get_attribute_names(self)

source code 

Parse once the given XML file and return a set with the attribute names

Parameters:
  • input_xml_filename - The XML file to be parsed