def addCodedValue(self, name, code):
        """
        adds a coded value to the domain

        Inputs:
           name - name of the domain
           code - value
        """
        i = {"name" : name, "code" : code}
        if i not in self._codedValues:
            self._codedValues.append(i)