THE GENERALIZED THEORY OF CAPILLARITY