Package suds :: Package xsd :: Module sxbuiltin :: Class XBoolean
[hide private]
[frames] | no frames]

Class XBoolean

source code

         object --+        
                  |        
sxbase.SchemaObject --+    
                      |    
        sxbase.XBuiltin --+
                          |
                         XBoolean

Represents an (xsd) boolean builtin type.

Instance Methods [hide private]
 
translate(self, value, topython=True)
Translate a value (type) to/from a python type.
source code

Inherited from sxbase.XBuiltin: __init__, builtin, namespace, resolve

Inherited from sxbase.SchemaObject: __getitem__, __iter__, __len__, __repr__, __str__, __unicode__, all, any, attributes, autoqualified, children, childtags, choice, content, default_namespace, dependencies, description, enum, extension, find, get_attribute, get_child, isattr, merge, mixed, optional, qualify, required, restriction, sequence, str, unbounded, xslist

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

Class Methods [hide private]

Inherited from sxbase.SchemaObject: append, prepend

Class Variables [hide private]
  translation = ({'0': False, '1': True, 'false': False, 'true':...
Instance Variables [hide private]

Inherited from sxbase.SchemaObject: default, form_qualified, nillable, rawchildren, root, schema

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

translate(self, value, topython=True)

source code 

Translate a value (type) to/from a python type.

Parameters:
  • value - A value to translate.
Returns:
The converted language type.
Overrides: sxbase.SchemaObject.translate
(inherited documentation)

Class Variable Details [hide private]

translation

Value:
({'0': False, '1': True, 'false': False, 'true': True},
 {False: 'false', True: 'true'})