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

Class hexBinary

source code

                    object --+                
                             |                
                       cscRoot --+            
                                 |            
     utils.utility.Locatable_mixin --+        
                                     |        
              basis._TypeBinding_mixin --+    
                                         |    
                            object --+   |    
                                     |   |    
utils.utility._DeconflictSymbols_mixin --+    
                                         |    
                        object --+       |    
                                 |       |    
                           cscRoot --+   |    
                                     |   |    
            basis._DynamicCreate_mixin --+    
                                         |    
                basis.simpleTypeDefinition --+
                                             |
                                object --+   |
                                         |   |
                                      long --+
                                             |
                                            hexBinary

Nested Classes [hide private]
  _XsdBaseType
See http://www.w3.org/TR/xmlschema-2/#dt-anySimpleType
Instance Methods [hide private]
 
length(self)
Return the length of the value, in octets.
source code

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

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

Inherited from long: __abs__, __add__, __and__, __cmp__, __coerce__, __div__, __divmod__, __float__, __floordiv__, __getattribute__, __getnewargs__, __hash__, __hex__, __index__, __int__, __invert__, __long__, __lshift__, __mod__, __mul__, __neg__, __nonzero__, __oct__, __or__, __pos__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __repr__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __str__, __sub__, __truediv__, __xor__

Inherited from object: __delattr__, __reduce__, __reduce_ex__

Class Methods [hide private]
 
_ConvertString(cls, text)
Convert a sequence of pairs of hex digits into a length (in octets) and a binary value.
source code
 
_ConvertValue(cls, value)
Given an integral value, return a pair consisting of the number of octets required to represent the value, and the value.
source code
 
XsdLiteral(cls, value)
Convert from a python value to a string usable in an XML document.
source code
 
XsdValueLength(cls, value)
Return the length of the given value.
source code

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

Inherited from basis._TypeBinding_mixin: Factory

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kw) source code
Class Variables [hide private]
  _ExpandedName = pyxb.namespace.XMLSchema.createExpandedName('h...
The expanded name of the component.
  __length = None
  _CF_enumeration = <pyxb.binding.facets.CF_enumeration object a...
  _CF_length = <pyxb.binding.facets.CF_length object at 0x9c66f0c>
  _CF_maxLength = <pyxb.binding.facets.CF_maxLength object at 0x...
  _CF_minLength = <pyxb.binding.facets.CF_minLength object at 0x...
  _CF_pattern = <pyxb.binding.facets.CF_pattern object at 0x9c66...
  _CF_whiteSpace = <pyxb.binding.facets.CF_whiteSpace object at ...
  _httpwww_w3_org2001XMLSchema_hexBinary_FacetMap = {<class 'pyx...

Inherited from basis.simpleTypeDefinition (private): _ReservedSymbols

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kw)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

XsdLiteral(cls, value)
Class Method

source code 

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

This should be implemented in the subclass.

Overrides: basis.simpleTypeDefinition.XsdLiteral
(inherited documentation)

XsdValueLength(cls, value)
Class Method

source code 

Return the length of the given value.

The length is calculated by a subclass implementation of _XsdValueLength_vx in accordance with http://www.w3.org/TR/xmlschema-2/#rf-length.

The return value is a non-negative integer, or None if length constraints should be considered trivially satisfied (as with QName and NOTATION).

:raise pyxb.LogicError: the provided value is not an instance of cls. :raise pyxb.LogicError: an attempt is made to calculate a length for an instance of a type that does not support length calculations.

Overrides: basis.simpleTypeDefinition.XsdValueLength
(inherited documentation)

Class Variable Details [hide private]

_ExpandedName

The expanded name of the component.

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

_CF_enumeration

Value:
<pyxb.binding.facets.CF_enumeration object at 0x9c6662c>

_CF_maxLength

Value:
<pyxb.binding.facets.CF_maxLength object at 0x9c66f2c>

_CF_minLength

Value:
<pyxb.binding.facets.CF_minLength object at 0x9c66f6c>

_CF_pattern

Value:
<pyxb.binding.facets.CF_pattern object at 0x9c6666c>

_CF_whiteSpace

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

_httpwww_w3_org2001XMLSchema_hexBinary_FacetMap

Value:
{<class 'pyxb.binding.facets.CF_whiteSpace'>: <pyxb.binding.facets.CF_\
whiteSpace object at 0x9c66f4c>,
 <class 'pyxb.binding.facets.CF_pattern'>: <pyxb.binding.facets.CF_pat\
tern object at 0x9c6666c>,
 <class 'pyxb.binding.facets.CF_enumeration'>: <pyxb.binding.facets.CF\
_enumeration object at 0x9c6662c>,
 <class 'pyxb.binding.facets.CF_length'>: <pyxb.binding.facets.CF_leng\
th object at 0x9c66f0c>,
...