Package pyxb :: Package binding :: Module datatypes :: Class token
[hide private]
[frames] | no frames]

Class token

source code

                    object --+                        
                             |                        
                       cscRoot --+                    
                                 |                    
     utils.utility.Locatable_mixin --+                
                                     |                
              basis._TypeBinding_mixin --+            
                                         |            
                            object --+   |            
                                     |   |            
utils.utility._DeconflictSymbols_mixin --+            
                                         |            
                        object --+       |            
                                 |       |            
                           cscRoot --+   |            
                                     |   |            
            basis._DynamicCreate_mixin --+            
                                         |            
                basis.simpleTypeDefinition --+        
                                             |        
                            object --+       |        
                                     |       |        
                            basestring --+   |        
                                         |   |        
                                   unicode --+        
                                             |        
                                        string --+    
                                                 |    
                                  normalizedString --+
                                                     |
                                                    token
Known Subclasses:

XMLSchema datatype token.

Tokens cannot leading or trailing space characters; any carriage return, line feed, or tab characters; nor any occurrence of two or more consecutive space characters.

Nested Classes [hide private]

Inherited from string (private): _XsdBaseType

Instance Methods [hide private]

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

Inherited from basis._TypeBinding_mixin: __setattr__, toDOM, toxml, validateBinding

Inherited from unicode: __add__, __contains__, __eq__, __format__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __repr__, __rmod__, __rmul__, __sizeof__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, format, index, isalnum, isalpha, isdecimal, isdigit, islower, isnumeric, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from unicode (private): _formatter_field_name_split, _formatter_parser

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __subclasshook__

Class Methods [hide private]
 
_ValidateString_va(cls, value)
Post-extended method to validate that a string matches a given pattern.
source code

Inherited from normalizedString (private): _XsdConstraintsPreCheck_vb

Inherited from string: XsdLiteral, XsdValueLength

Inherited from basis.simpleTypeDefinition: PythonLiteral, SimpleTypeDefinition, XsdConstraintsOK, XsdSuperType

Inherited from basis._TypeBinding_mixin: Factory

Static Methods [hide private]

Inherited from basis.simpleTypeDefinition: __new__

Class Variables [hide private]
  _ExpandedName = pyxb.namespace.XMLSchema.createExpandedName('t...
The expanded name of the component.
  _CF_whiteSpace = <pyxb.binding.facets.CF_whiteSpace object at ...
  __SimpleTypeDefinition = <pyxb.xmlschema.structures.SimpleType...
  _httpwww_w3_org2001XMLSchema_token_FacetMap = {<class 'pyxb.bi...

Inherited from basis.simpleTypeDefinition (private): _ReservedSymbols

Inherited from basis._TypeBinding_mixin: _validationConfig_

Properties [hide private]

Inherited from basis._TypeBinding_mixin (private): _validationConfig

Inherited from object: __class__

Method Details [hide private]

_ValidateString_va(cls, value)
Class Method

source code 

Post-extended method to validate that a string matches a given pattern.

If you can express the valid strings as a compiled regular expression in the class variable _ValidRE, or the invalid strings as a compiled regular expression in the class variable _InvalidRE, you can just use those. If the acceptable matches are any trickier, you should invoke the superclass implementation, and if it returns True then perform additional tests.

Overrides: normalizedString._ValidateString_va
(inherited documentation)

Class Variable Details [hide private]

_ExpandedName

The expanded name of the component.

Value:
pyxb.namespace.XMLSchema.createExpandedName('token')

_CF_whiteSpace

Value:
<pyxb.binding.facets.CF_whiteSpace object at 0x2109b90>

__SimpleTypeDefinition

Value:
<pyxb.xmlschema.structures.SimpleTypeDefinition object at 0x1ef9b10>

_httpwww_w3_org2001XMLSchema_token_FacetMap

Value:
{<class 'pyxb.binding.facets.CF_minLength'>: <pyxb.binding.facets.CF_m\
inLength object at 0x2109750>,
 <class 'pyxb.binding.facets.CF_enumeration'>: <pyxb.binding.facets.CF\
_enumeration object at 0x2109850>,
 <class 'pyxb.binding.facets.CF_length'>: <pyxb.binding.facets.CF_leng\
th object at 0x2109810>,
 <class 'pyxb.binding.facets.CF_pattern'>: <pyxb.binding.facets.CF_pat\
tern object at 0x2109890>,
...