def getParameterByType(self, type):
        """Searchs a parameter by type and returns it."""
        result = None
        for parameter in self.getParameters():
            typeParam = parameter.getType()
            if typeParam == type:
                result = parameter
                break
        return result
def getParameterByType ( self , type ) : result = None for parameter in self . getParameters ( ) : typeParam = parameter . getType ( ) if typeParam == type : result = parameter break return result
Searchs a parameter by type and returns it.