pyx12 :: segment :: Composite :: Class Composite
[hide private]

Class Composite

source code

object --+
         |
        Composite

Can be a simple element or a composite. A simple element is treated as a composite element with one sub-element.

Instance Methods [hide private]
 
__init__(self, ele_str, subele_term=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, idx)
returns Element instance for idx
source code
 
__setitem__(self, idx, val)
1 based index [0] throws exception sets element value for idx
source code
int
__len__(self) source code
string
__repr__(self)
repr(x)
source code
 
format(self, subele_term=None)
Format a composite
source code
 
get_value(self)
Get value of simple element
source code
 
set_subele_term(self, subele_term) source code
boolean
is_composite(self) source code
boolean
is_element(self) source code
boolean
is_empty(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, ele_str, subele_term=None)
(Constructor)

source code 

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

Parameters:
  • ele_str (string)
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Returns: string
Overrides: object.__repr__

format(self, subele_term=None)

source code 

Format a composite

Returns:
string

set_subele_term(self, subele_term)

source code 
Parameters:
  • subele_term (string) - Sub-element terminator value