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

# type 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:
  - datatypes.ENTITIES
  - , datatypes.IDREFS
  - , datatypes.NMTOKENS

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 `simpleTypeDefinition` (private): `_checkValidValue`, `_isValidValue`, `_setAttribute`, `_toDOM_csc`, `_validateBinding_vx` Inherited from `_TypeBinding_mixin`: `__setattr__`, `toDOM`, `toxml`, `validateBinding` Inherited from `_TypeBinding_mixin` (private): `_TypeBinding_mixin__checkNilCtor`, `_TypeBinding_mixin__getValidationConfig`, `_constructedWithValue`, `_diagnosticName`, `_element`, `_finalizeContentModel`, `_isNil`, `_namespaceContext`, `_performValidation`, `_postDOMValidate`, `_postFactory_vx`, `_resetContent`, `_setAttributesFromKeywordsAndDOM`, `_setElement`, `_setIsNil`, `_setNamespaceContext`, `_setValidationConfig`, `_substitutesFor` Inherited from `utils.utility.Locatable_mixin` (private): `_location`, `_setLocation` 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`

Class Methods | [hide private]
_ValidatedItem(cls, value, kw=None) 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 `simpleTypeDefinition` (private): `_CheckValidValue`, `_ConvertArguments`, `_FacetMap`, `_InitializeFacetMap`, `_IsSimpleTypeContent`, `_IsValidValue`, `_SimpleTypeDefinition`, `_XsdConstraintsPreCheck_vb` Inherited from `_TypeBinding_mixin`: `Factory` Inherited from `_TypeBinding_mixin` (private): `_CompatibleValue`, `_GetValidationConfig`, `_IsUrType`, `_Name`, `_PerformValidation`, `_PreFactory_vx`, `_RequireXSIType`, `_SetValidationConfig`, `_TypeBinding_mixin__AttributesFromDOM` Inherited from `_DynamicCreate_mixin` (private): `_AlternativeConstructor`, `_DynamicCreate`, `_DynamicCreate_mixin__AlternativeConstructorAttribute`, `_DynamicCreate_mixin__SupersedingClassAttribute`, `_SetAlternativeConstructor`, `_SetSupersedingClass`, `_SupersedingClass`

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 `_TypeBinding_mixin`: `_validationConfig_` Inherited from `_TypeBinding_mixin` (private): `_Abstract`, `_AttributeMap`, `_AttributeWildcard`, `_ExpandedName`, `_PyXBFactoryKeywords`, `_TypeBinding_mixin__WarnedUnassociatedElement`, `_TypeBinding_mixin__constructedWithValue`, `_TypeBinding_mixin__element`, `_TypeBinding_mixin__namespaceContext`, `_TypeBinding_mixin__xsiNil`, `_XSDLocation` Inherited from `list`: `__hash__`

Properties | [hide private]
Inherited from `_TypeBinding_mixin` (private): `_validationConfig`

Method Details | [hide private]

### _ValidatedItem(cls, value, kw=None) 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. Parameters: `kw` - optional dictionary of standard constructor keywords used when exceptions must be built. In particular, `_location` may be useful.

### _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)