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

Class _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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_Content__getValue(self)
The value of the content.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

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
hash(x)
  _Content__value = None
hash(x)
Properties [hide private]
  value
The value of the content.

Inherited from object: __class__

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 = six.u('').join(NonElementContent.ContentIterator(instance.orderedContent()))

See also pyxb.NonElementContent

__init__(self, value)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

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.