def getElementsByType(self, type):
        """
        retrieves all Elements that are of type type
        @type  type: class 
        @param type:  type of the element 
        """
        foundElements=[]
        for element in self.getAllElementsOfHirarchy():
            if isinstance(element, type):
                foundElements.append(element)                
                
        return foundElements
def getElementsByType ( self , type ) : foundElements = [ ] for element in self . getAllElementsOfHirarchy ( ) : if isinstance ( element , type ) : foundElements . append ( element ) return foundElements
retrieves all Elements that are of type type
        @type  type: class 
        @param type:  type of the element