Update name and longName properties of BaseSchemaObject when corresponding properties are set.