Package gavo :: Package base :: Module complexattrs :: Class MultiStructAttribute
[frames] | no frames]

Class MultiStructAttribute

source code

          object --+        
                   |        
attrdef.AttributeDef --+    
                       |    
         StructAttribute --+
                           |
                          MultiStructAttribute
Known Subclasses:

describes an attribute containing one of a class of Structures.

This is to support things like grammars or cores -- these can be of many types.

This works like StructAttribute, except that childFactory now is a function returning elements (i.e., it's a childFactoryFactory).

Instance Methods
 
__init__(self, name, childFactory, childNames, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
create(self, structure, ctx, name) source code
 
makeUserDoc(self) source code

Inherited from StructAttribute: feed, feedObject, getCopy, iterChildren, iterEvents, onParentComplete, remove, replace

Inherited from attrdef.AttributeDef: doCallbacks, iterParentMethods

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

Properties
  typeDesc_

Inherited from object: __class__

Method Details

__init__(self, name, childFactory, childNames, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

create(self, structure, ctx, name)

source code 
Overrides: StructAttribute.create

makeUserDoc(self)

source code 
Overrides: attrdef.AttributeDef.makeUserDoc

Property Details

typeDesc_

Get Method:
unreachable.typeDesc_(self)