Package gavo :: Package base :: Module metavalidation :: Class MetaIsAtomic
[frames] | no frames]

Class MetaIsAtomic

source code

   object --+    
            |    
MetaAssertion --+
                |
               MetaIsAtomic
Known Subclasses:

An assertion that a meta item is present and contains a single value only.

Instance Methods
 
check(self, metaCarrier)
returns None if the assertion is true, a user-displayable string of what failed otherwise.
source code

Inherited from MetaAssertion: __init__

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

Class Variables
  propagate = True
Properties

Inherited from object: __class__

Method Details

check(self, metaCarrier)

source code 

returns None if the assertion is true, a user-displayable string of what failed otherwise.

This must be overridden in derived classes.

Parameters:
  • metaCarrier - an object mixing in MetaMixin.
Overrides: MetaAssertion.check
(inherited documentation)