def _shouldOwn(self, param):
        """
        Validates that the input param belongs to this Params instance.
        """
        if not (self.uid == param.parent and self.hasParam(param.name)):
            raise ValueError("Param %r does not belong to %r." % (param, self))
def _shouldOwn ( self , param ) : if not ( self . uid == param . parent and self . hasParam ( param . name ) ) : raise ValueError ( "Param %r does not belong to %r." % ( param , self ) )
Validates that the input param belongs to this Params instance.