Package suds :: Package umx :: Module typed :: Class Typed
[hide private]
[frames] | no frames]

Class Typed

source code

core.Core --+
            |
           Typed
Known Subclasses:

A typed XML unmarshaller

Instance Methods [hide private]
 
__init__(self, schema) source code
Object
process(self, node, type)
Process an object graph representation of the xml node.
source code
 
reset(self) source code
Object
start(self, content)
Processing on node has started.
source code
 
end(self, content)
Processing on node has ended.
source code
boolean '
unbounded(self, content)
Get whether the object is unbounded (a list).
source code
boolean '
nillable(self, content)
Get whether the object is nillable.
source code
 
append_attribute(self, name, value, content)
Append an attribute name/value into Content.data.
source code
 
append_text(self, content)
Append text nodes into Content.data Here is where the true type is used to translate the value into the proper python type.
source code
 
translated(self, value, type)
translate using the schema type
source code

Inherited from core.Core: append, append_attributes, append_children, bounded, postprocess

Instance Variables [hide private]
NodeResolver resolver
A schema type resolver.
Method Details [hide private]

__init__(self, schema)
(Constructor)

source code 
Parameters:

process(self, node, type)

source code 

Process an object graph representation of the xml node.

Parameters:
Returns: Object
A suds object.
Overrides: core.Core.process

reset(self)

source code 
Overrides: core.Core.reset

start(self, content)

source code 

Processing on node has started. Build and return the proper object.

Parameters:
  • content - The current content being unmarshalled.
Returns: Object
A subclass of Object.
Overrides: core.Core.start
(inherited documentation)

end(self, content)

source code 

Processing on node has ended.

Parameters:
  • content - The current content being unmarshalled.
Overrides: core.Core.end
(inherited documentation)

unbounded(self, content)

source code 

Get whether the object is unbounded (a list).

Parameters:
  • content - The current content being unmarshalled.
Returns: boolean '
True if unbounded, else False
Overrides: core.Core.unbounded
(inherited documentation)

nillable(self, content)

source code 

Get whether the object is nillable.

Parameters:
  • content - The current content being unmarshalled.
Returns: boolean '
True if nillable, else False
Overrides: core.Core.nillable
(inherited documentation)

append_attribute(self, name, value, content)

source code 

Append an attribute name/value into Content.data.

Parameters:
  • name (basestring) - The attribute name
  • value (basestring) - The attribute's value
  • content (Content) - The current content being unmarshalled.
Overrides: core.Core.append_attribute

append_text(self, content)

source code 

Append text nodes into Content.data Here is where the true type is used to translate the value into the proper python type.

Parameters:
  • content (Content) - The current content being unmarshalled.
Overrides: core.Core.append_text