Package pyxb :: Package binding :: Module basis :: Class _Content
[hide private]
[frames] | no frames]

type _Content

source code

object --+
         |
        _Content
Known Subclasses:

Base for any wrapper added to complexTypeDefinition.orderedContent.

Instance Methods [hide private]
 
__getValue(self)
The value of the content.
source code
 
__init__(self, value) source code
 
_Content__getValue(self)
The value of the content.
source code
Class Methods [hide private]
 
ContentIterator(cls, input)
Return an iterator that filters and maps a sequence of _Content instances.
source code
Class Variables [hide private]
  __value = None
  _Content__value = None
Properties [hide private]
  value
The value of the content.
Method Details [hide private]

__getValue(self)

source code 

The value of the content.

This is a unicode string for NonElementContent, and (ideally) an instance of _TypeBinding_mixin for ElementContent.

ContentIterator(cls, input)
Class Method

source code 

Return an iterator that filters and maps a sequence of _Content instances.

The returned iterator will filter out sequence members that are not instances of the class from which the iterator was created. Further, only the value field of the sequence member is returned.

Thus the catenated text of the non-element content of an instance can be obtained with:

  text = u''.join(NonElementContent.ContentIterator(instance.orderedContent()))

See also pyxb.NonElementContent

__init__(self, value)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

_Content__getValue(self)

source code 

The value of the content.

This is a unicode string for NonElementContent, and (ideally) an instance of _TypeBinding_mixin for ElementContent.


Property Details [hide private]

value

The value of the content.

This is a unicode string for NonElementContent, and (ideally) an instance of _TypeBinding_mixin for ElementContent.

Get Method:
_Content__getValue(self) - The value of the content.