def default_value(self, type_name):
uname = type_name.upper()<EOL>if   uname == '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT>elif uname == '<STR_LIT>':<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>elif uname == '<STR_LIT>':<EOL><INDENT>return <NUM_LIT:0.0><EOL><DEDENT>elif uname == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif uname == '<STR_LIT>':<EOL><INDENT>if self.metamodel:<EOL><INDENT>return next(self.metamodel.id_generator)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise MetaException("<STR_LIT>" % type_name)<EOL><DEDENT>
Obtain the default value for some *type name*.