@@ -0,0 +1,844 @@
+package edu.duke.cabig.c3pr.domain;%0A%0Aimport gov.nih.nci.cabig.ctms.domain.CodedEnum;%0Aimport static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.*;%0A%0A/**%0A * Created by IntelliJ IDEA.%0A * User: kherm%0A * Date: Aug 27, 2007%0A * Time: 12:23:36 PM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic enum ContactMechanismType implements CodedEnum%3CString%3E %7B%0A%0A    PHONE(%22Phone%22),%0A    EMAIL(%22Email%22),%0A    Fax(%22Fax%22)%0A    ;%0A%0A    private String code;%0A%0A    ContactMechanismType(String code) %7B%0A        this.code = code;%0A        register(this);%0A    %7D%0A%0A%0A    public String getCode() %7B%0A        return code;%0A    %7D%0A%0A    public static ContactMechanismType getByCode(String code) %7B%0A        return getByClassAndCode(ContactMechanismType.class, code);%0A    %7D%0A%0A%0A    public String getDisplayName()%7B%0A        return sentenceCasedName(this);%0A    %7D%0A%0A%0A%7D%0A

refactor contactmech to enum type