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

Class STD_list

source code

                    object --+                
                             |                
                       cscRoot --+            
                                 |            
     utils.utility.Locatable_mixin --+        
                                     |        
                    _TypeBinding_mixin --+    
                                         |    
                            object --+   |    
                                     |   |    
utils.utility._DeconflictSymbols_mixin --+    
                                         |    
                        object --+       |    
                                 |       |    
                           cscRoot --+   |    
                                     |   |    
                  _DynamicCreate_mixin --+    
                                         |    
                      simpleTypeDefinition --+
                                             |
                                object --+   |
                                         |   |
                                      list --+
                                             |
                                            STD_list
Known Subclasses:

Base class for collection datatypes.

This class descends from the Python list type, and incorporates simpleTypeDefinition. Subclasses must define a class variable _ItemType which is a reference to the class of which members must be instances.

Instance Methods [hide private]
 
__convertMany(self, values) source code
 
__setitem__(self, key, value)
x[i]=y
source code
 
__setslice__(self, start, end, values)
x[i:j]=y
source code
 
__contains__(self, item)
y in x
source code
 
append(self, x)
append object to end
source code
 
extend(self, x, _from_xml=False)
extend list by appending elements from the iterable
source code
integer
count(self, x)
return number of occurrences of value
source code
 
index(self, x, *args)
L.index(value, [start, [stop]]) -> integer -- return first index of value.
source code
 
insert(self, i, x)
insert object before index
source code
 
remove(self, x)
remove first occurrence of value.
source code

Inherited from simpleTypeDefinition: __init__, pythonLiteral, xsdConstraintsOK, xsdLiteral, xsdValueLength

Inherited from _TypeBinding_mixin: __setattr__, toDOM, toxml, validateBinding

Inherited from list: __add__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __repr__, __reversed__, __rmul__, __sizeof__, pop, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Class Methods [hide private]
 
_ValidatedItem(cls, value)
Verify that the given value is permitted as an item of this list.
source code
 
_ConvertArguments_vx(cls, args, kw) source code
 
_XsdValueLength_vx(cls, value) source code
 
XsdLiteral(cls, value)
Convert from a binding value to a string usable in an XML document.
source code
 
_description(cls, name_only=False, user_documentation=True) source code
 
__ConvertOne(cls, v) source code

Inherited from simpleTypeDefinition: PythonLiteral, SimpleTypeDefinition, XsdConstraintsOK, XsdSuperType, XsdValueLength

Inherited from _TypeBinding_mixin: Factory

Static Methods [hide private]

Inherited from simpleTypeDefinition: __new__

Class Variables [hide private]
  _ItemType = None
A reference to the binding class for items within this list.
  __FacetMap = {}

Inherited from simpleTypeDefinition (private): _ReservedSymbols

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_ValidatedItem(cls, value)
Class Method

source code 

Verify that the given value is permitted as an item of this list.

This may convert the value to the proper type, if it is compatible but not an instance of the item type. Returns the value that should be used as the item, or raises an exception if the value cannot be converted.

_ConvertArguments_vx(cls, args, kw)
Class Method

source code 
Overrides: simpleTypeDefinition._ConvertArguments_vx

XsdLiteral(cls, value)
Class Method

source code 

Convert from a binding value to a string usable in an XML document.

Overrides: simpleTypeDefinition.XsdLiteral

_description(cls, name_only=False, user_documentation=True)
Class Method

source code 
Overrides: simpleTypeDefinition._description

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

source code 

x[i]=y

Overrides: list.__setitem__
(inherited documentation)

__setslice__(self, start, end, values)
(Slice assignment operator)

source code 

x[i:j]=y

Use of negative indices is not supported.

Overrides: list.__setslice__
(inherited documentation)

__contains__(self, item)
(In operator)

source code 

y in x

Overrides: list.__contains__
(inherited documentation)

append(self, x)

source code 

append object to end

Overrides: list.append
(inherited documentation)

extend(self, x, _from_xml=False)

source code 

extend list by appending elements from the iterable

Overrides: list.extend
(inherited documentation)

count(self, x)

source code 

return number of occurrences of value

Returns: integer
Overrides: list.count
(inherited documentation)

index(self, x, *args)

source code 

L.index(value, [start, [stop]]) -> integer -- return first index of value. Raises ValueError if the value is not present.

Overrides: list.index
(inherited documentation)

insert(self, i, x)

source code 

insert object before index

Overrides: list.insert
(inherited documentation)

remove(self, x)

source code 

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

Overrides: list.remove
(inherited documentation)