Package suds :: Package bindings :: Module binding :: Class PartElement
[hide private]
[frames] | no frames]

Class PartElement

source code

             object --+                
                      |                
xsd.sxbase.SchemaObject --+            
                          |            
         xsd.sxbase.Content --+        
                              |        
       xsd.sxbasic.TypedContent --+    
                                  |    
                xsd.sxbasic.Element --+
                                      |
                                     PartElement

A part used to represent a message part when the part references a schema type and thus assumes to be an element.

Instance Methods [hide private]
 
__init__(self, name, resolved)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
Element
implany(self)
Set the type as any when implicit.
source code
boolean
optional(self)
Get whether this type is optional.
source code
(prefix,URI)
namespace(self, prefix=None)
Get this properties namespace
source code
SchemaObject
resolve(self, nobuiltin=False)
Resolve and return the nodes true self.
source code

Inherited from xsd.sxbasic.Element: anytype, childtags, dependencies, description, extension, merge, restriction

Inherited from xsd.sxbasic.TypedContent: qref

Inherited from xsd.sxbase.SchemaObject: __getitem__, __iter__, __len__, __repr__, __str__, __unicode__, all, any, attributes, autoqualified, builtin, children, choice, content, default_namespace, enum, find, get_attribute, get_child, isattr, mixed, qualify, required, 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 xsd.sxbase.SchemaObject: append, prepend

Instance Variables [hide private]
suds.xsd.sxbase.SchemaObject resolved
The part type.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, resolved)
(Constructor)

source code 

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

Parameters:
Overrides: object.__init__

implany(self)

source code 

Set the type as any when implicit. An implicit <xs:any/> is when an element has not body and no type defined.

Returns: Element
self
Overrides: xsd.sxbasic.Element.implany
(inherited documentation)

optional(self)

source code 

Get whether this type is optional.

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

namespace(self, prefix=None)

source code 

Get this properties namespace

Parameters:
  • prefix - The default prefix.
Returns: (prefix,URI)
The schema's target namespace
Overrides: xsd.sxbase.SchemaObject.namespace
(inherited documentation)

resolve(self, nobuiltin=False)

source code 

Resolve and return the nodes true self.

Parameters:
  • nobuiltin - Flag indicates that resolution must not continue to include xsd builtins.
Returns: SchemaObject
The resolved (true) type.
Overrides: xsd.sxbase.SchemaObject.resolve
(inherited documentation)