Module example2 :: Class VWhackyCalendar
[show private | hide private]
[frames | no frames]

Class VWhackyCalendar

object --+        
         |        
 Component --+    
             |    
     VCalendar --+
                 |
                VWhackyCalendar


This is a non-standards compliant calendar with some added subcomponents and properties. It's only an example, nobody uses this whacky format for real (that I know of).

We will add a subcomponent named VWHACKY and a property named WHACKYNESS for that subcomponent.
Method Summary
  __init__(self, parent)
a new object with type S, a subtype of T __new__(S, ...)
  __str__(self)
Serialize this component as well as it's properties and subcomponents. (inherited from Component)
pdi.core.Component addComponent(self, component, lineNumber)
Add a subcomponent to this component. (inherited from Component)
  addComponents(self, componentList)
Candy method for adding several components at one time. (inherited from Component)
  addProperties(self, propertyList)
Candy method for adding several properties at one time. (inherited from Component)
pdi.core.Property addProperty(self, property, lineNumber)
Add a property to this component. (inherited from Component)
string getName(self)
Return the name of this component. (inherited from Component)
  interpret(self, key, value, lineNumber)
Interprets a symbol and value. (inherited from Component)
pdi.core.Component parseLine(self, data, lineNumber)
This parses one line of data. (inherited from Component)
  registerComponents(self, componentList, rule)
Register all valid (or invalid, depending on rule) components. (inherited from Component)
  registerProperties(self, propertyList, rule)
Register valid (or invalid, depending on rule) properties. (inherited from Component)
  registerPropertyTypes(self, propertyTypes)
Register available property types. (inherited from Component)
  validate(self, lineNumber)
This will make sure that all mandatory components and properties are present. (inherited from Component)
  _validate(self, recursive, lineNumber)
Internal method for validating components. (inherited from Component)

Method Details

__init__(self, parent=None)
(Constructor)

Parameters:
parent - The parent component, if any. May be omitted or None if it is a top-level component.
           (type=pdi.core.Component)

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

Generated by Epydoc 1.1 on Sun Nov 24 14:33:25 2002 http://epydoc.sf.net