public Locale getLocale(Config config, String path, Locale defaults) { addRecognizedArgument(path); if (config.hasPath(path)) { return getLocale(config, path); } else { return defaults; } }
public Locale getLocale(Config config, String path, Locale defaults) { addRecognizedArgument(path); if (config.hasPath(path)) { return getLocale(config, path); } else { return defaults; } }
public ToLowerCase(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.fieldName = getConfigs().getString(config, "field"); this.locale = getConfigs().getLocale(config, "locale", Locale.ROOT); LOG.debug("fieldName: {}", fieldName); validateArguments(); }
public ToUpperCase(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.fieldName = getConfigs().getString(config, "field"); this.locale = getConfigs().getLocale(config, "locale", Locale.ROOT); LOG.debug("fieldName: {}", fieldName); validateArguments(); }
public MyToLowerCase(CommandBuilder builder, Config config, Command parent, Command child, MorphlineContext context) { super(builder, config, parent, child, context); this.fieldName = getConfigs().getString(config, "field"); this.locale = getConfigs().getLocale(config, "locale", Locale.ROOT); this.reverse = getConfigs().getBoolean(config, "reverse", false); LOG.debug("fieldName: {}", fieldName); validateArguments(); }
LOG.trace("availableLocales: {}", Joiner.on("\n").join(Locale.getAvailableLocales())); Locale locale = getConfigs().getLocale(config, "locale", Locale.getDefault()); this.outputDir = new File(getConfigs().getString(config, "outputDir")); validateArguments();
LOG.trace("availableLocales: {}", Joiner.on("\n").join(Locale.getAvailableLocales())); Locale locale = getConfigs().getLocale(config, "locale", Locale.getDefault()); this.outputDir = new File(getConfigs().getString(config, "outputDir")); validateArguments();