001 package railo.transformer.cfml; 002 003 import railo.runtime.config.Config; 004 import railo.runtime.config.ConfigImpl; 005 006 public class TransfomerSettings { 007 private static final TransfomerSettings TRANS_SETTING_DOT_NOT_UPPER = new TransfomerSettings(true); 008 private static final TransfomerSettings TRANS_SETTING_DOT_NOT_ORIGINAL = new TransfomerSettings(false); 009 public final boolean dotNotationUpper; 010 011 public TransfomerSettings(boolean dotNotationUpper) { 012 this.dotNotationUpper = dotNotationUpper; 013 } 014 015 public static TransfomerSettings toSetting(Config config) { 016 return ((ConfigImpl)config).getDotNotationUpperCase()?TRANS_SETTING_DOT_NOT_UPPER:TRANS_SETTING_DOT_NOT_ORIGINAL; 017 } 018 019 }