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

Class Core

source code

Known Subclasses:

An abstract marshaller. This class implement the core functionality of the marshaller.

Instance Methods [hide private]
 
__init__(self) source code
 
process(self, content)
Process (marshal) the tag with the specified value using the optional type information.
source code
 
append(self, parent, content)
Append the specified content to the parent.
source code
 
reset(self)
Reset the marshaller.
source code
Element
node(self, content)
Create and return an XML node.
source code
boolean
start(self, content)
Appending this content has started.
source code
 
suspend(self, content)
Appending this content has suspended.
source code
 
resume(self, content)
Appending this content has resumed.
source code
 
end(self, parent, content)
Appending this content has ended.
source code
 
setnil(self, node, content)
Set the value of the node to nill.
source code
 
setdefault(self, node, content)
Set the value of the node to a default value.
source code
 
optional(self, content)
Get whether the specified content is optional.
source code
Instance Variables [hide private]
ContentAppender appender
A content appender.
Method Details [hide private]

process(self, content)

source code 

Process (marshal) the tag with the specified value using the optional type information.

Parameters:
  • content (Object) - The content to process.

append(self, parent, content)

source code 

Append the specified content to the parent.

Parameters:
  • parent (Element) - The parent node to append to.
  • content (Object) - The content to append.

node(self, content)

source code 

Create and return an XML node.

Parameters:
  • content (Object) - The content for which proccessing has been suspended.
Returns: Element
An element.

start(self, content)

source code 

Appending this content has started.

Parameters:
  • content (Content) - The content for which proccessing has started.
Returns: boolean
True to continue appending

suspend(self, content)

source code 

Appending this content has suspended.

Parameters:
  • content (Content) - The content for which proccessing has been suspended.

resume(self, content)

source code 

Appending this content has resumed.

Parameters:
  • content (Content) - The content for which proccessing has been resumed.

end(self, parent, content)

source code 

Appending this content has ended.

Parameters:
  • parent (Element) - The parent node ending.
  • content (Content) - The content for which proccessing has ended.

setnil(self, node, content)

source code 

Set the value of the node to nill.

Parameters:
  • node (Element) - A nil node.
  • content (Content) - The content to set nil.

setdefault(self, node, content)

source code 

Set the value of the node to a default value.

Parameters:
  • node (Element) - A nil node.
  • content (Content) - The content to set the default value.
Returns:
The default.

optional(self, content)

source code 

Get whether the specified content is optional.

Parameters:
  • content (Content) - The content which to check.