Package suds :: Package xsd :: Module sxbuiltin :: 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
XBuiltin
create(cls, schema, name)
Create an object based on the root tag name.
source code
Class Variables [hide private]
  tags = {'ENTITIES': <class 'suds.xsd.sxbuiltin.XString'>, 'ENT...
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, schema, name)
Class Method

source code 

Create an object based on the root tag name.

Parameters:
  • schema (schema.Schema) - A schema object.
  • name (str) - The name.
Returns: XBuiltin
The created object.

Class Variable Details [hide private]

tags

Value:
{'ENTITIES': <class 'suds.xsd.sxbuiltin.XString'>,
 'ENTITY': <class 'suds.xsd.sxbuiltin.XString'>,
 'ID': <class 'suds.xsd.sxbuiltin.XString'>,
 'IDREF': <class 'suds.xsd.sxbuiltin.XString'>,
 'IDREFS': <class 'suds.xsd.sxbuiltin.XString'>,
 'NCName': <class 'suds.xsd.sxbuiltin.XString'>,
 'NMTOKEN': <class 'suds.xsd.sxbuiltin.XString'>,
 'NMTOKENS': <class 'suds.xsd.sxbuiltin.XString'>,
...