Package pyxb :: Package binding :: Module content :: Class _PluralBinding
[hide private]
[frames] | no frames]

Class _PluralBinding

source code

       object --+            
                |            
    _abcoll.Sized --+        
                    |        
       object --+   |        
                |   |        
 _abcoll.Iterable --+        
                    |        
       object --+   |        
                |   |        
_abcoll.Container --+        
                    |        
     _abcoll.Sequence --+    
                        |    
  _abcoll.MutableSequence --+
                            |
                           _PluralBinding

Helper for element content that supports multiple occurences.

This is an adapter for Python list. Any operation that can mutate an item in the list ensures the stored value is compatible with the element for which the list holds values.

Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
__init__(self, *args, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__convert(self, v) source code
 
__len__(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
__iter__(self) source code
 
__reversed__(self) source code
 
__contains__(self, item) source code
 
append(self, x)
append object to the end of the sequence
source code
 
extend(self, x)
extend sequence by appending elements from the iterable
source code
integer
count(self, x)
return number of occurrences of value
source code
integer
index(self, x, i=0, j=-1)
return first index of value.
source code
 
insert(self, i, x)
insert object before index
source code
item
pop(self, i=-1)
remove and return item at index (default last).
source code
 
remove(self, x)
remove first occurrence of value.
source code
 
reverse(self)
reverse *IN PLACE*
source code
 
sort(self, key=None, reverse=False) source code
 
__str__(self)
str(x)
source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, other) source code
 
__lt__(self, other) source code
 
_PluralBinding__convert(self, v) source code
 
__ge__(x, y)
x>=y
source code
 
__gt__(x, y)
x>y
source code
 
__le__(x, y)
x<=y
source code
 
__ne__(x, y)
x!=y
source code

Inherited from _abcoll.MutableSequence: __iadd__

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

Class Methods [hide private]

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]
  __list = None
hash(x)
  __elementBinding = None
hash(x)
  _PluralBinding__elementBinding = None
hash(x)
  _PluralBinding__list = None
hash(x)
  __abstractmethods__ = frozenset([])
  _abc_cache = <_weakrefset.WeakSet object>
  _abc_negative_cache_version = 27
  _abc_registry = <_weakrefset.WeakSet object>

Inherited from _abcoll.Sized (private): _abc_negative_cache

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__len__(self)
(Length operator)

source code 
Overrides: _abcoll.Sized.__len__

__getitem__(self, key)
(Indexing operator)

source code 
Overrides: _abcoll.Sequence.__getitem__

__setitem__(self, key, value)
(Index assignment operator)

source code 
Overrides: _abcoll.MutableSequence.__setitem__

__delitem__(self, key)
(Index deletion operator)

source code 
Overrides: _abcoll.MutableSequence.__delitem__

__iter__(self)

source code 
Overrides: _abcoll.Iterable.__iter__

__reversed__(self)

source code 
Overrides: _abcoll.Sequence.__reversed__

__contains__(self, item)
(In operator)

source code 
Overrides: _abcoll.Container.__contains__

append(self, x)

source code 

append object to the end of the sequence

Overrides: _abcoll.MutableSequence.append
(inherited documentation)

extend(self, x)

source code 

extend sequence by appending elements from the iterable

Overrides: _abcoll.MutableSequence.extend
(inherited documentation)

count(self, x)

source code 

return number of occurrences of value

Returns: integer
Overrides: _abcoll.Sequence.count
(inherited documentation)

index(self, x, i=0, j=-1)

source code 

return first index of value. Raises ValueError if the value is not present.

Returns: integer
Overrides: _abcoll.Sequence.index
(inherited documentation)

insert(self, i, x)

source code 

insert object before index

Overrides: _abcoll.MutableSequence.insert
(inherited documentation)

pop(self, i=-1)

source code 

remove and return item at index (default last). Raise IndexError if list is empty or index is out of range.

Returns: item
Overrides: _abcoll.MutableSequence.pop
(inherited documentation)

remove(self, x)

source code 

remove first occurrence of value. Raise ValueError if the value is not present.

Overrides: _abcoll.MutableSequence.remove
(inherited documentation)

reverse(self)

source code 

reverse *IN PLACE*

Overrides: _abcoll.MutableSequence.reverse
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)