Package gavo :: Package dm :: Module dmrd :: Class DataModelRoles
[frames] | no frames]

Class DataModelRoles

source code

                   object --+            
                            |            
 base.structure.StructureBase --+        
                                |        
                   object --+   |        
                            |   |        
           base.common.Parser --+        
                                |        
base.structure.ParseableStructure --+    
                                    |    
             base.structure.Structure --+
                                        |
                                       DataModelRoles

an annotation of a table in terms of data models.

The content of this element is a Simple Instance Language clause.

Nested Classes

Inherited from base.structure.StructureBase: __metaclass__

Instance Methods
 
getAnnotation(self, roleName, container, instance) source code
 
completeElement(self, ctx) source code
 
parse(self)
returns a parsed version of the embedded annotation.
source code
 
copy(self, newParent, ctx)
returns a deep copy of self, reparented to parent.
source code

Inherited from base.structure.Structure: __provides__, callCompletedCallbacks, finishElement, onElementComplete, validate

Inherited from base.structure.ParseableStructure: __init__, end_, feed, feedFrom, feedObject, getAttribute, iterEvents, start_, value_

Inherited from base.structure.StructureBase: __providedBy__, adopt, breakCircles, change, getAttributes, getCopyableAttributes, getSourcePosition, iterChildren, setPosition

Inherited from base.common.Parser: feedEvent

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

Class Methods

Inherited from base.structure.StructureBase: fromStructure

Class Variables
  name_ = 'dm'
a sentinel for all kinds of undefined values.
  attrSeq = [<gavo.base.parsecontext.IdAttribute object>, <gavo....
  managedAttrs = {'content_': <gavo.base.structure.DataContent o...

Inherited from base.structure.Structure: __implemented__

Inherited from base.structure.StructureBase: completedCallbacks

Properties

Inherited from object: __class__

Method Details

completeElement(self, ctx)

source code 
Overrides: base.structure.Structure.completeElement

parse(self)

source code 

returns a parsed version of the embedded annotation.

Do not call this while the RD is still being built, as dm elements may contain forward references, and these might not yet be available during the parse.

copy(self, newParent, ctx)

source code 

returns a deep copy of self, reparented to parent.

This is a shallow wrapper around change, present for backward compatibility.

Overrides: base.structure.StructureBase.copy
(inherited documentation)

Class Variable Details

attrSeq

Value:
[<gavo.base.parsecontext.IdAttribute object>,
 <gavo.base.structure.DataContent object>]

managedAttrs

Value:
{'content_': <gavo.base.structure.DataContent object>,
 'id': <gavo.base.parsecontext.IdAttribute object>}