question: public static Class toReturnType ( short xsType , String typeName , Integer optionalFractionDigits ) { if ( typeName != null ) { Class result = typeMap . get ( typeName ) ; if ( result != null ) { return result ; } } switch ( xsType ) { case XSSimpleType . PRIMITIVE_BOOLEAN : return Boolean . class ; case XSSimpleType . PRIMITIVE_STRING : return String . class ; case XSSimpleType . PRIMITIVE_DECIMAL : if ( ( optionalFractionDigits != null ) && ( optionalFractionDigits > 0 ) ) { return Double . class ; } return Integer . class ; case XSSimpleType . PRIMITIVE_FLOAT : return Float . class ; case XSSimpleType . PRIMITIVE_DOUBLE : return Double . class ; default : return String . class ; } }
target:  Returns the type for a give short type and type name.