Package pyx12 :: Module map_if :: Class map_if
[hide private]

Class map_if

source code

object --+    
         |    
  x12_node --+
             |
            map_if

Map file interface

Instance Methods [hide private]
 
__init__(self, reader, param)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
debug_print(self) source code
 
__len__(self) source code
 
get_child_count(self) source code
 
get_first_seg(self) source code
string
__repr__(self)
repr(x)
source code
string
_path_parent(self) source code
string
get_path(self)
Returns: path - XPath style
source code
 
get_child_node_by_idx(self, idx) source code
 
getnodebypath(self, path) source code
boolean
is_map_root(self) source code
 
reset_child_count(self)
Set cur_count of child nodes to zero
source code
 
reset_cur_count(self)
Set cur_count of child nodes to zero
source code
 
__iter__(self) source code

Inherited from x12_node: is_composite, is_element, is_first_seg_in_loop, is_loop, is_segment

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, reader, param)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • reader - libxml2 TextReader
  • param - map of parameters
Overrides: object.__init__

__len__(self)
(Length operator)

source code 
Overrides: x12_node.__len__

get_child_count(self)

source code 
Overrides: x12_node.get_child_count

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: string
Overrides: object.__repr__

get_path(self)

source code 
Returns: string
path - XPath style
Overrides: x12_node.get_path

get_child_node_by_idx(self, idx)

source code 
Parameters:
  • idx - zero based
Overrides: x12_node.get_child_node_by_idx

getnodebypath(self, path)

source code 
Parameters:
  • path (string) - Path string; /1000/2000/2000A/NM102-3
Overrides: x12_node.getnodebypath

is_map_root(self)

source code 
Returns: boolean
Overrides: x12_node.is_map_root