001
002package gudusoft.gsqlparser.pp.para.styleenums;
003
004/**
005 * the case option
006 * 
007 * @author zhoujun
008 * 
009 */
010public enum TCaseOption {
011        CoUppercase, CoLowercase, CoNoChange, CoInitCap;
012
013        public static TCaseOption of(String type) {
014                if (type == null)
015                        return null;
016                for (TCaseOption value : TCaseOption.values()) {
017                        if (value.name().equalsIgnoreCase(type)) {
018                                return value;
019                        }
020                }
021                return null;
022        }
023}