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

Class Element

source code

         object --+            
                  |            
sxbase.SchemaObject --+        
                      |        
         sxbase.Content --+    
                          |    
               TypedContent --+
                              |
                             Element
Known Subclasses:

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

Instance Methods [hide private]
 
__init__(self, schema, root)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
anytype(self)
create an xsd:anyType reference
source code
[str,...]
childtags(self)
Get a list of valid child tag names.
source code
(int, [SchemaObject,...])
dependencies(self)
Get a list of dependancies for dereferencing.
source code
[str,...]
description(self)
Get the names used for str() and repr() description.
source code
boolean
extension(self)
Get whether the object is an extension of another type.
source code
Element
implany(self)
Set the type as any when implicit.
source code
 
merge(self, other)
Merge another object as needed.
source code
boolean
restriction(self)
Get whether the object is an restriction of another type.
source code

Inherited from TypedContent: qref, resolve

Inherited from 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, namespace, optional, 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 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)

childtags(self)

source code 

Get a list of valid child tag names.

Returns: [str,...]
A list of child tag names.
Overrides: sxbase.SchemaObject.childtags
(inherited documentation)

dependencies(self)

source code 

Get a list of dependancies for dereferencing.

Returns: (int, [SchemaObject,...])
A merge dependancy index and a list of dependancies.
Overrides: sxbase.SchemaObject.dependencies
(inherited documentation)

description(self)

source code 

Get the names used for str() and repr() description.

Returns: [str,...]
A dictionary of relavent attributes.
Overrides: sxbase.SchemaObject.description
(inherited documentation)

extension(self)

source code 

Get whether the object is an extension of another type.

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

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

merge(self, other)

source code 

Merge another object as needed.

Overrides: sxbase.SchemaObject.merge
(inherited documentation)

restriction(self)

source code 

Get whether the object is an restriction of another type.

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