Package suds :: Package umx :: Module encoded :: Class Encoded
[hide private]
[frames] | no frames]

Class Encoded

source code

core.Core --+    
            |    
  typed.Typed --+
                |
               Encoded

A SOAP section (5) encoding unmarshaller. This marshaller supports rpc/encoded soap styles.

Instance Methods [hide private]
Object
start(self, content)
Processing on node has started.
source code
 
end(self, content)
Processing on node has ended.
source code
any
postprocess(self, content)
Perform final processing of the resulting data structure as follows:
source code
Encoded
setaty(self, content)
Grab the (aty) soap-enc:arrayType and attach it to the content for proper array processing later in end().
source code
Encoded
applyaty(self, content, xty)
Apply the type referenced in the arrayType to the content (child nodes) of the array.
source code
 
promote(self, content)
Promote (replace) the content.data with the first attribute of the current content.data that is a list.
source code

Inherited from typed.Typed: __init__, append_attribute, append_text, nillable, process, reset, translated, unbounded

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

Instance Variables [hide private]

Inherited from typed.Typed: resolver

Method Details [hide private]

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)

postprocess(self, content)

source code 

Perform final processing of the resulting data structure as follows:

  • Mixed values (children and text) will have a result of the content.node.
  • Simi-simple values (attributes, no-children and text) will have a result of a property object.
  • Simple values (no-attributes, no-children with text nodes) will have a string result equal to the value of the content.node.getText().
Parameters:
  • content - The current content being unmarshalled.
Returns: any
The post-processed result.
Overrides: core.Core.postprocess
(inherited documentation)

setaty(self, content)

source code 

Grab the (aty) soap-enc:arrayType and attach it to the content for proper array processing later in end().

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: Encoded
self

applyaty(self, content, xty)

source code 

Apply the type referenced in the arrayType to the content (child nodes) of the array. Each element (node) in the array that does not have an explicit xsi:type attribute is given one based on the arrayType.

Parameters:
  • content (Content) - An array content.
  • xty (str) - The XSI type reference.
Returns: Encoded
self

promote(self, content)

source code 

Promote (replace) the content.data with the first attribute of the current content.data that is a list. Note: the content.data may be empty or contain only _x attributes. In either case, the content.data is assigned an empty list.

Parameters:
  • content (Content) - An array content.