Package suds :: Package xsd :: Module schema :: Class SchemaCollection
[hide private]
[frames] | no frames]

Class SchemaCollection

source code

A collection of schema objects. This class is needed because WSDLs may contain more then one <schema/> node.

Instance Methods [hide private]
 
__init__(self, wsdl) source code
 
add(self, schema)
Add a schema node to the collection.
source code
Schema
load(self, options)
Load the schema objects for the root nodes.
source code
SchemaCollection
autoblend(self)
Ensure that all schemas within the collection import each other which has a blending effect.
source code
Schema
locate(self, ns)
Find a schema by namespace.
source code
Schema
merge(self)
Merge the contained schemas into one.
source code
 
__len__(self) source code
 
__str__(self) source code
 
__unicode__(self) source code
Instance Variables [hide private]
[Schema,...] children
A list contained schemas.
{str:Schema} namespaces
A dictionary of contained schemas by namespace.
suds.wsdl.Definitions wsdl
A wsdl object.
Method Details [hide private]

__init__(self, wsdl)
(Constructor)

source code 
Parameters:

add(self, schema)

source code 

Add a schema node to the collection. Schema(s) within the same target namespace are consolidated.

Parameters:
  • schema ((Schema)) - A schema object.

load(self, options)

source code 

Load the schema objects for the root nodes.

  • de-references schemas
  • merge schemas
Parameters:
Returns: Schema
The merged schema.

autoblend(self)

source code 

Ensure that all schemas within the collection import each other which has a blending effect.

Returns: SchemaCollection
self

locate(self, ns)

source code 

Find a schema by namespace. Only the URI portion of the namespace is compared to each schema's targetNamespace

Parameters:
  • ns ((prefix,URI)) - A namespace.
Returns: Schema
The schema matching the namesapce, else None.

merge(self)

source code 

Merge the contained schemas into one.

Returns: Schema
The merged schema.