def formatText(self, text):
        """
        Formats the inputed text based on the input format assigned to this
        line edit.
        
        :param      text | <str>
        
        :return     <str> | frormatted text
        """
        format = self.inputFormat()
        if format == XLineEdit.InputFormat.Normal:
            return text
        
        text = projex.text.nativestring(text)
        if format == XLineEdit.InputFormat.CamelHump:
            return projex.text.camelHump(text)
        
        elif format == XLineEdit.InputFormat.Pretty:
            return projex.text.pretty(text)
        
        elif format == XLineEdit.InputFormat.Underscore:
            return projex.text.underscore(text)
        
        elif format == XLineEdit.InputFormat.Dash:
            return projex.text.dashed(text)
        
        elif format == XLineEdit.InputFormat.ClassName:
            return projex.text.classname(text)
        
        elif format == XLineEdit.InputFormat.NoSpaces:
            return projex.text.joinWords(text, self.spacer())
        
        elif format == XLineEdit.InputFormat.Capitalize:
            return text.capitalize()
        
        elif format == XLineEdit.InputFormat.Uppercase:
            return text.upper()
        
        elif format == XLineEdit.InputFormat.Lowercase:
            return text.lower()
        
        elif format == XLineEdit.InputFormat.Package:
            return '.'.join(map(lambda x: x.lower(),
                            map(projex.text.classname, text.split('.'))))
        
        return text
def formatText ( self , text ) : format = self . inputFormat ( ) if format == XLineEdit . InputFormat . Normal : return text text = projex . text . nativestring ( text ) if format == XLineEdit . InputFormat . CamelHump : return projex . text . camelHump ( text ) elif format == XLineEdit . InputFormat . Pretty : return projex . text . pretty ( text ) elif format == XLineEdit . InputFormat . Underscore : return projex . text . underscore ( text ) elif format == XLineEdit . InputFormat . Dash : return projex . text . dashed ( text ) elif format == XLineEdit . InputFormat . ClassName : return projex . text . classname ( text ) elif format == XLineEdit . InputFormat . NoSpaces : return projex . text . joinWords ( text , self . spacer ( ) ) elif format == XLineEdit . InputFormat . Capitalize : return text . capitalize ( ) elif format == XLineEdit . InputFormat . Uppercase : return text . upper ( ) elif format == XLineEdit . InputFormat . Lowercase : return text . lower ( ) elif format == XLineEdit . InputFormat . Package : return '.' . join ( map ( lambda x : x . lower ( ) , map ( projex . text . classname , text . split ( '.' ) ) ) ) return text
Formats the inputed text based on the input format assigned to this
        line edit.
        
        :param      text | <str>
        
        :return     <str> | frormatted text