Home | Trees | Indices | Help |
|
---|
|
object --+ | utils.codetricks.IdManagerMixin --+ | VOTableContext
A context object for writing VOTables.
The constructor arguments work as keyword arguments to ``getAsVOTable``. Some other high-level functions accept finished contexts.
This class provides management for unique ID attributes, the value mapper registry, and possibly additional services for writing VOTables.
VOTableContexts optionally take
There's also an attribute produceVODML that will automatically be set for VOTable 1.4; you can set it to true manually, but the resulting VOTables will probably be invalid.
If VO-DML processing is enabled, the context also manages models declared; that's the modelsUsed dictionary, mapping prefix -> dm.Model instances
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Properties | |
currentTable the DaCHS table object from which things are currently built. |
|
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
adds VODML annotation to this VOTable. Note that it will only be rendered if produceVODML is true (in general, for target versions >1.3). |
returns xmlstan for a table. This is exposed as a method of context as the dm subpackage needs it, but I don't want to import formats there (yet). This may go away as I fix the interdependence of dm, votable, and format. |
returns the xmlstan element of the table currently built. This returns a ValueError if the context isn't aware of a table being built. (This depends builders using activeContainer) |
returns the xmlstan element of the resource currently built. This returns a ValueError if the context isn't aware of a resource being built. (This depends builders using activeContainer) |
a context manager to be called by VOTable builders when they open a new TABLE or RESOURCE.
|
a context manager to control code that works on a DaCHS table.
|
orders refVal to be set as ref on rdEl's VOTable representation if such a thing is being serialised. This currently is more a hack for PARAMs with COOSYS than something that should be really used; if this were to become a general pattern, we should work out a way to assign the ref if rdEl's representation already is in the tree... |
adds an ID attribute to votEl if rdEl has an id managed by self. Also, if a ref has been noted for rdEl, a ref attribute is being added, too. This is a special hack for params and coosys; and I suspect we shouldn't go beyond that. |
Property Details |
currentTablethe DaCHS table object from which things are currently built. If no builder has declared a table being built (using buildingFromTable), it's a value error.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |