Package suds :: Package umx :: Module core :: Class Core
[hide private]
[frames] | no frames]

Class Core

source code

Known Subclasses:

The abstract XML node unmarshaller. This class provides the core unmarshalling functionality.

Instance Methods [hide private]
Object
process(self, content)
Process an object graph representation of the xml node.
source code
append-result
append(self, content)
Process the specified node and convert the XML document into a suds object.
source code
any
postprocess(self, content)
Perform final processing of the resulting data structure as follows:
source code
 
append_attributes(self, content)
Append attribute nodes into Content.data.
source code
 
append_attribute(self, name, value, content)
Append an attribute name/value into Content.data.
source code
 
append_children(self, content)
Append child nodes into Content.data
source code
 
append_text(self, content)
Append text nodes into Content.data
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 '
bounded(self, content)
Get whether the content is bounded (not a list).
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
Method Details [hide private]

process(self, content)

source code 

Process an object graph representation of the xml node.

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: Object
A suds object.

append(self, content)

source code 

Process the specified node and convert the XML document into a suds object.

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: append-result
A append-result tuple as: (Object, value)

Note: This is not the proper entry point.

See Also: process()

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 (Content) - The current content being unmarshalled.
Returns: any
The post-processed result.

append_attributes(self, content)

source code 

Append attribute nodes into Content.data. Attributes in the schema or xml namespaces are skipped.

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

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.

append_children(self, content)

source code 

Append child nodes into Content.data

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

append_text(self, content)

source code 

Append text nodes into Content.data

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

start(self, content)

source code 

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

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: Object
A subclass of Object.

end(self, content)

source code 

Processing on node has ended.

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

bounded(self, content)

source code 

Get whether the content is bounded (not a list).

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: boolean '
True if bounded, else False

unbounded(self, content)

source code 

Get whether the object is unbounded (a list).

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: boolean '
True if unbounded, else False

nillable(self, content)

source code 

Get whether the object is nillable.

Parameters:
  • content (Content) - The current content being unmarshalled.
Returns: boolean '
True if nillable, else False