@classmethod<EOL><INDENT>def translate(cls, val):<DEDENT>
if val is None:<EOL><INDENT>return cls.translate_none(val)<EOL><DEDENT>elif isinstance(val, string_types):<EOL><INDENT>return cls.translate_str(val)<EOL><DEDENT>elif isinstance(val, bool):<EOL><INDENT>return cls.translate_bool(val)<EOL><DEDENT>elif isinstance(val, integer_types):<EOL><INDENT>return cls.translate_int(val)<EOL><DEDENT>elif isinstance(val, float):<EOL><INDENT>return cls.translate_float(val)<EOL><DEDENT>elif isinstance(val, dict):<EOL><INDENT>return cls.translate_dict(val)<EOL><DEDENT>elif isinstance(val, list):<EOL><INDENT>return cls.translate_list(val)<EOL><DEDENT>return cls.translate_escaped_str(val)<EOL>
Translate each of the standard json/yaml types to appropiate objects.