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

Class Factory

source code

Class Methods [hide private]
 
maptag(cls, tag, fn)
Map (override) tag => class mapping.
source code
SchemaObject
create(cls, root, schema)
Create an object based on the root tag name.
source code
sxbase.SchemaObject
build(cls, root, schema, filter=('*'))
Build an xsobject representation.
source code
 
collate(cls, children) source code
Class Variables [hide private]
{tag:fn,} tags = {'all': <class 'suds.xsd.sxbasic.All'>, 'any': <class '...
A factory to create object objects based on tag.
Method Details [hide private]

maptag(cls, tag, fn)
Class Method

source code 

Map (override) tag => class mapping.

Parameters:
  • tag (str) - An xsd tag name.
  • fn (fn|class.) - A function or class.

create(cls, root, schema)
Class Method

source code 

Create an object based on the root tag name.

Parameters:
Returns: SchemaObject
The created object.

build(cls, root, schema, filter=('*'))
Class Method

source code 

Build an xsobject representation.

Parameters:
Returns: sxbase.SchemaObject
A schema object graph.

Class Variable Details [hide private]

tags

A factory to create object objects based on tag.
Type:
{tag:fn,}
Value:
{'all': <class 'suds.xsd.sxbasic.All'>,
 'any': <class 'suds.xsd.sxbasic.Any'>,
 'attribute': <function __fn at 0x912317c>,
 'attributeGroup': <class 'suds.xsd.sxbasic.AttributeGroup'>,
 'choice': <class 'suds.xsd.sxbasic.Choice'>,
 'complexContent': <class 'suds.xsd.sxbasic.ComplexContent'>,
 'complexType': <class 'suds.xsd.sxbasic.Complex'>,
 'element': <class 'suds.xsd.sxbasic.Element'>,
...