A resident of the Region who stands for election or assumes public office shall confirm in writing or take an oath to uphold the Basic Law of the Hong Kong Special Administrative Region of the People’s Republic of China and swear allegiance to the Hong Kong Special Administrative Region of the People’s Republic of China in accordance with the law.