Package suds :: Package xsd
[hide private]
[frames] | no frames]

Package xsd

source code

The schema module provides a intelligent representation of an XSD schema. The raw model is the XML tree and the model is the denormalized, objectified and intelligent view of the schema. Most of the value-add provided by the model is centered around tranparent referenced type resolution and targeted denormalization.

Submodules [hide private]
  • suds.xsd.deplist: The depsolve module defines a class for performing dependancy solving.
  • suds.xsd.doctor: The doctor module provides classes for fixing broken (sick) schema(s).
  • suds.xsd.query: The query module defines a class for performing schema queries.
  • suds.xsd.schema: The schema module provides a intelligent representation of an XSD schema.
  • suds.xsd.sxbase: The sxbase module provides base classes that represent schema objects.
  • suds.xsd.sxbasic: The sxbasic module provides classes that represent basic schema objects.
  • suds.xsd.sxbuiltin: The sxbuiltin module provides classes that represent XSD builtin schema objects.

Classes [hide private]
  Filter
Functions [hide private]
(name, namespace-uri)
qualify(ref, resolvers, defns=(None, None))
Get a reference that is qualified by namespace.
source code
boolean
isqref(object)
Get whether the object is a qualified reference.
source code
Variables [hide private]
  log = getLogger(__name__)
  __package__ = 'suds.xsd'
Function Details [hide private]

qualify(ref, resolvers, defns=(None, None))

source code 

Get a reference that is qualified by namespace.

Parameters:
  • ref (str) - A referenced schema type name.
  • resolvers ([sax.element.Element,]) - A list of objects to be used to resolve types.
  • defns (A default namespace tuple: (prefix,uri) used when ref not prefixed.) - An optional target namespace used to qualify references when no prefix is specified.
Returns: (name, namespace-uri)
A qualified reference.

isqref(object)

source code 

Get whether the object is a qualified reference.

Parameters:
  • object (any) - An object to be tested.
Returns: boolean

See Also: qualify