Package pyx12 :: Module dataele :: Class DataElements
[hide private]

Class DataElements

source code

object --+
         |
        DataElements

Interface to normalized Data Elements

Instance Methods [hide private]
 
__init__(self, base_path)
Initialize the list of data elements
source code
(string, int, int)
get_by_elem_num(self, ele_num)
Get the element characteristics for the indexed element code
source code
 
__repr__(self)
repr(x)
source code
 
debug_print(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, base_path)
(Constructor)

source code 

Initialize the list of data elements

Parameters:
  • base_path (string) - path to dataele.xml
Overrides: object.__init__

Note: self.dataele - map to the data element {ele_num: (data_type, min_len, max_len, name)}

get_by_elem_num(self, ele_num)

source code 

Get the element characteristics for the indexed element code

Parameters:
  • ele_num (string) - the data element code
Returns: (string, int, int)
(data_type, min_len, max_len)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)