Package gavo :: Package stc :: Module stcxast :: Class STCXContext
[frames] | no frames]

Class STCXContext

source code

object --+
         |
        STCXContext

A parse context containing handlers, stacks, etc.

A special feature is that there are "context-active" tags. For those the context gets notified by buildTree when their processing is started or ended. We use this to note the active coordinate systems during, e.g., AstroCoords parsing.

Instance Methods
 
__init__(self, elementHandlers, activeTags, vecTags={<xml.etree.ElementTree.QName object>: 2, <xml.etree.ElementTr..., **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getHandler(self, elementName)
returns a builder for the qName elementName, and the expected dimension of child vectors.
source code
 
startTag(self, node) source code
 
endTag(self, node) source code
 
pushDim(self, nDim) source code
 
popDim(self) source code
 
peekDim(self) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, elementHandlers, activeTags, vecTags={<xml.etree.ElementTree.QName object>: 2, <xml.etree.ElementTr..., **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

getHandler(self, elementName)

source code 

returns a builder for the qName elementName, and the expected dimension of child vectors.

If no such handler exists, we return None, None