Package Modeling :: Package interfaces :: Module Qualifier :: Class QualifierInterface
[show private | hide private]
[frames | no frames]

Class QualifierInterface

Base --+
       |
      QualifierInterface


Method Summary
  addQualifierKeysToSet(self, qualifierKeysList)
Adds the receiver's qualifier keys to the supplied list.
  allQualifierKeys(self)
Returns the set (tuple) of keys used in the qualifier.
  bindingKeys(self)
  evaluateWithObject(self, object)
Tests whether the supplied object matches the qualifier Parameter 'object' should be a subclass of KeyValueCoding
  keyPathForBindingKey(self, aKey)
  validateKeysWithRootClassDescription(self, aClassDescription)
Checks that all qualifierKeys can be found in the supplied class description, either in attributes or relationships.

Method Details

addQualifierKeysToSet(self, qualifierKeysList)

Adds the receiver's qualifier keys to the supplied list. This must be overriden in subclasses

allQualifierKeys(self)

Returns the set (tuple) of keys used in the qualifier. The returned tuple has no duplicate.

For example, for a qualifier defined like this:

NOT((age<=30 OR age>50) AND book.title caseInsensitiveLike "*hitchhiker*"

the set ('age', 'book.title') is returned.

Subclasses should not override this method: override addQualifierKeysToSet instead.

evaluateWithObject(self, object)

Tests whether the supplied object matches the qualifier Parameter 'object' should be a subclass of KeyValueCoding

validateKeysWithRootClassDescription(self, aClassDescription)

Checks that all qualifierKeys can be found in the supplied class description, either in attributes or relationships. When a keypath is involved, like 'book.title', only the first part, i.e. 'book', while be checked against the class description ; the remaining part is not checked at all.

Raises ValueError on failure.


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