Package pyxb :: Package utils :: Module saxutils :: Class SAXElementState
[hide private]
[frames] | no frames]

Class SAXElementState

source code

object --+
         |
        SAXElementState
Known Subclasses:

State corresponding to processing a given element with the SAX model.

Instance Methods [hide private]
 
parentState(self)
Reference to the SAXElementState of the element enclosing this one.
source code
 
namespaceContext(self)
The pyxb.namespace.resolution.NamespaceContext used for this binding.
source code
 
expandedName(self)
The expanded name of the element.
source code
 
location(self)
The location corresponding to the element event.
source code
 
content(self)
An accumulation of content to be supplied to the content model when the element end is reached.
source code
 
__init__(self, **kw)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addTextContent(self, content)
Add the given text as non-element content of the current element.
source code
 
addElementContent(self, element, element_use)
Add the given binding instance as element content correspondidng to the given use.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __parentState = None
hash(x)
  __namespaceContext = None
hash(x)
  __expandedName = None
hash(x)
  __location = None
hash(x)
  __content = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

content(self)

source code 

An accumulation of content to be supplied to the content model when the element end is reached.

This is a list, with each member being (content, element_use, maybe_element). content is text or a binding instance; element_use is None or the ElementUse instance used to create the content; and maybe_element is True iff the content is non-content text.

__init__(self, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

addTextContent(self, content)

source code 

Add the given text as non-element content of the current element.

Parameters:
  • content (unicode or str)
Returns:
self

addElementContent(self, element, element_use)

source code 

Add the given binding instance as element content correspondidng to the given use.

Parameters: