Package Modeling :: Module ClassDescription
[show private | hide private]
[frames | no frames]

Module Modeling.ClassDescription

ClassDescription

!!! Abstract class !!!

Class description fills the gap between a model and informations needed at run-time, such as ...

Automatically registered when a model is loaded/instanciated.

Module's functions are the one a ZModelizationTool should be able to answer. (or something else?)

CVS information

$Id: ClassDescription.py,v 1.16 2004/07/20 06:21:36 sbigaret Exp $

Classes
ClassDescription This class is an abstract class ; all methods defined in ClassDescriptionInterface raises and should be overridden in concrete subclasses.

Function Summary
  abstract()
  classDescriptionForName(name)
Returns the ClassDescription corresponding to name
  classDescriptionForObject(anObject)
Returns the ClassDescription associated to the object 'anObject'
  invalidateClassDescriptionCache()
Simply empties the set of held class description
  registerClassDescription(aClassDescription, name)
Assigns the supplied classDescription to 'name'.
  registeredNames()
Returns the registered names

Function Details

classDescriptionForName(name)

Returns the ClassDescription corresponding to name

If the requested class description cannot be found, this method posts a 'ClassDescriptionNeededForEntityNameNotification' so that listeners can register the apropriate class description --in a standard confioguration, the default ModelSet listens to that notification and registers the class descriptions each time they are needed.

classDescriptionForObject(anObject)

Returns the ClassDescription associated to the object 'anObject'

invalidateClassDescriptionCache()

Simply empties the set of held class description

registerClassDescription(aClassDescription, name)

Assigns the supplied classDescription to 'name'.

The supplied ClassDescription's simple methods are not cached, unless MDL_ENABLE_SIMPLE_METHOD_CACHE is set to any non-empty string. See utils.cache_simple_methods() for details.

registeredNames()

Returns the registered names

Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 http://epydoc.sf.net