Encapsulates a X12 segment. Contains composites.
|
__init__(self,
seg_str,
seg_term,
ele_term,
subele_term)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
string
|
|
|
|
int
|
|
string
|
|
tuple(ele_idx, subele_idx)
|
|
segment.Composite
|
|
|
|
|
|
|
set(self,
ref_des,
val)
Set the value of an element or subelement identified by the Reference
Designator |
source code
|
|
|
|
|
|
int
|
ele_len(self,
ref_des)
Returns:
number of sub-elements in an element or composite |
source code
|
|
|
|
|
|
|
|
string
|
format(self,
seg_term=None,
ele_term=None,
subele_term=None) |
source code
|
|
|
format_ele_list(self,
str_elems,
subele_term=None)
Modifies the parameter str_elems Strips trailing empty composites |
source code
|
|
boolean
|
|
boolean
|
is_seg_id_valid(self)
Is the Segment identifier the correct length |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|