Package suds :: Package xsd :: Module sxbasic :: Class Enumeration
[hide private]
[frames] | no frames]

Class Enumeration

source code

         object --+        
                  |        
sxbase.SchemaObject --+    
                      |    
         sxbase.Content --+
                          |
                         Enumeration

Represents an (xsd) schema <xs:enumeration/> node

Instance Methods [hide private]
 
__init__(self, schema, root)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
boolean
enum(self)
Get whether this is a simple-type containing an enumeration.
source code

Inherited from sxbase.SchemaObject: __getitem__, __iter__, __len__, __repr__, __str__, __unicode__, all, any, attributes, autoqualified, builtin, children, childtags, choice, content, default_namespace, dependencies, description, extension, find, get_attribute, get_child, isattr, merge, mixed, namespace, optional, qualify, required, resolve, restriction, sequence, str, translate, 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

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]

__init__(self, schema, root)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • schema - The containing schema.
  • root - The xml root node.
Overrides: object.__init__
(inherited documentation)

enum(self)

source code 

Get whether this is a simple-type containing an enumeration.

Returns: boolean
True if any, else False
Overrides: sxbase.SchemaObject.enum
(inherited documentation)