Package suds :: Module resolver :: Class GraphResolver
[hide private]
[frames] | no frames]

Class GraphResolver

source code

Resolver --+    
           |    
TreeResolver --+
               |
              GraphResolver

The graph resolver is a stateful Object graph resolver used to resolve each node in a tree. As such, it mirrors the tree structure to ensure that nodes are resolved in context.

Instance Methods [hide private]
 
__init__(self, schema) source code
xsd.sxbase.SchemaObject
find(self, name, object, resolved=False, push=True)
Returns: The found schema type
source code
 
query(self, name)
blindly query the schema by name
source code
 
wsdl(self)
get the wsdl
source code
 
known(self, object)
get the type specified in the object's metadata
source code

Inherited from TreeResolver: depth, getchild, pop, push, reset, top

Instance Variables [hide private]

Inherited from TreeResolver: stack

Inherited from Resolver: schema

Method Details [hide private]

__init__(self, schema)
(Constructor)

source code 
Parameters:
Overrides: Resolver.__init__

find(self, name, object, resolved=False, push=True)

source code 

Get the definition object for the schema object by name.

Parameters:
  • name (basestring) - The name of the object to be resolved.
  • object ((any|Object)) - The name's value.
  • resolved (boolean) - A flag indicating that the fully resolved type should be returned.
  • push (boolean) - Indicates that the resolved type should be pushed onto the stack.
Returns: xsd.sxbase.SchemaObject
The found schema type
Overrides: Resolver.find