Package Modeling :: Module PyModel :: Class Association
[show private | hide private]
[frames | no frames]

Class Association

BaseDescription --+
                  |
                 Association


Describes an Association between 2 entities

An Association binds two entities, 'src' and 'dst' (cf. __init__()), with two relationships:


Method Summary
  __init__(self, src, dst, **kw)
  build(self, model)
  check_multiplicity(self)
Check the self.multiplicity is correct
    Inherited from BaseDescription
  clone(self, descriptionObject)
return an independant copy of object
  defaultedField(self, field, defaultValue)
  requiredField(self, field)
make test more useful
  toXML(self)
  update(self)

Class Variable Summary
dict defaults = {'joinSemantic': [0, 0], 'displayLabel': ['',...
    Inherited from BaseDescription
str VERSION = '0.1'

Method Details

check_multiplicity(self)

Check the self.multiplicity is correct

Returns: (src->dst multiplicity, dst->src multiplicity)


Class Variable Details

defaults

Type:
dict
Value:
{'delete': ['nullify', 'nullify'],
 'displayLabel': ['', ''],
 'doc': ['', ''],
 'isClassProperty': [1, 1],
 'joinSemantic': [0, 0],
 'keys': [None, None],
 'multiplicity': [[0, 1], [0, None]],
 'relations': <function relationsForSrcAndDst at 0xb6a2a844>('src', 'd\
...                                                                    

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