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

# type SAXElementState

source code

    object --+
             |
            SAXElementState

Known Subclasses:
  - binding.saxer._SAXElementState

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

Instance Methods | [hide private]
contentHandler(self) Reference to the `xml.sxa.handler.ContentHandler` that is processing the document. | source code
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) | source code
addTextContent(self, location, content) Add the given text as non-element content of the current element. | source code
addElementContent(self, location, element, element_decl=None) Add the given binding instance as element content corresponding to the given use. | source code

Class Variables | [hide private]
| __contentHandler = `None`
| __parentState = `None`
| __namespaceContext = `None`
| __expandedName = `None`
| __location = `None`
| __content = `None`

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 ElementDeclaration instance used to create the content; and `maybe_element` is `True` iff the content is non-content text.

### __init__(self, **kw) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)

### addTextContent(self, location, content) | source code
Add the given text as non-element content of the current element. Parameters: `content` (`unicode` or `str`) Returns: `self`

### addElementContent(self, location, element, element_decl=None) | source code
Add the given binding instance as element content corresponding to the given use. Parameters: `element` - Any binding instance. `element_decl` - The element use in the containing complex type.