def add_name(self, name_attr, space_attr, new_schema):<EOL>
to_add = Name(name_attr, space_attr, self.default_namespace)<EOL>if to_add.fullname in VALID_TYPES:<EOL><INDENT>fail_msg = '<STR_LIT>' % to_add.fullname<EOL>raise SchemaParseException(fail_msg)<EOL><DEDENT>elif to_add.fullname in self.names:<EOL><INDENT>fail_msg = '<STR_LIT>' % to_add.fullname<EOL>raise SchemaParseException(fail_msg)<EOL><DEDENT>self.names[to_add.fullname] = new_schema<EOL>return to_add<EOL>
Add a new schema object to the name set.

  @arg name_attr: name value read in schema
  @arg space_attr: namespace value read in schema.

  @return: the Name that was just added.