/** * Return the String property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @param defaultValue the default value to return if no value is found * @return The string property */ public String getString(String key, String defaultValue) { return configuration.getString(key, defaultValue); }
/** * Returns an optional String property value associated with the given key. * * @param key the property name to resolve * @return The string property */ public Optional<String> getString(String key) { return Optional.ofNullable(configuration.getString(key)); }
/** * Return the Language property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The Language property */ public Language getLanguage(String key) { return Language.valueOf(configuration.getString(key)); }
/** * Return the MarkupLanguage property value associated with the given key (never {@code null}). * * @return The MarkupLanguage property * @throws IllegalStateException if the key cannot be resolved */ public MarkupLanguage getRequiredMarkupLanguage(String key) { return MarkupLanguage.valueOf(configuration.getString(key)); }
/** * Return the GroupBy property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The GroupBy property * @throws IllegalStateException if the value cannot be mapped to the enum */ public GroupBy getGroupBy(String key) { return GroupBy.valueOf(configuration.getString(key)); }
/** * Return the OrderBy property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The OrderBy property * @throws IllegalStateException if the value cannot be mapped to the enum */ public OrderBy getOrderBy(String key) { return OrderBy.valueOf(configuration.getString(key)); }
/** * Return the String property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @param defaultValue the default value to return if no value is found * @return The string property */ public String getString(String key, String defaultValue) { return configuration.getString(key, defaultValue); }
/** * Return the String property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @param defaultValue the default value to return if no value is found * @return The string property */ public String getString(String key, String defaultValue) { return configuration.getString(key, defaultValue); }
/** * If the schedule is of type {@link NodeColoredSchedule}, get the type of {@link Coloring} to * perform */ public Coloring getColoringType() { return Coloring.valueOf(_config.getString(PROP_COLORING)); } }
protected final String getStringOptionValue(String key) { String valueStr = _line.getOptionValue(key); if (valueStr != null) { _config.setProperty(key, valueStr); } return _config.getString(key); }
private String[] getColumnHeadersForType(Type type) { String confKey = type.getName().replaceAll("\\.", "..") + ".labels"; String confEntry = configuration.getString(confKey, null); if (confEntry != null && !confEntry.isEmpty()) return confEntry.split(","); else return new String[0]; }
private String[] getUnaryFeaturePathsForType(Type type) { String confKey = type.getName().replaceAll("\\.", "..") + ".paths"; String confEntry = configuration.getString(confKey, null); if (confEntry != null && !confEntry.isEmpty()) return confEntry.split(","); else return new String[0]; }
private String[] getCoveringsForType(Type type) { String confKey = type.getName().replaceAll("\\.", "..") + ".covered"; String confEntry = configuration.getString(confKey, null); if (confEntry != null && !confEntry.isEmpty()) return confEntry.split(","); else return new String[0]; }
/** * Return the MarkupLanguage property value associated with the given key (never {@code null}). * * @return The MarkupLanguage property * @throws IllegalStateException if the key cannot be resolved */ public MarkupLanguage getRequiredMarkupLanguage(String key) { return MarkupLanguage.valueOf(configuration.getString(key)); }
/** * Return the Language property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The Language property */ public Language getLanguage(String key) { return Language.valueOf(configuration.getString(key)); }
/** * Return the GroupBy property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The GroupBy property * @throws IllegalStateException if the value cannot be mapped to the enum */ public GroupBy getGroupBy(String key) { return GroupBy.valueOf(configuration.getString(key)); }
/** * Return the OrderBy property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The OrderBy property * @throws IllegalStateException if the value cannot be mapped to the enum */ public OrderBy getOrderBy(String key) { return OrderBy.valueOf(configuration.getString(key)); }
private String[] getArrayMultiplierForType(Type type) { String confKey = type.getName().replaceAll("\\.", "..") + ".arraymulti"; String confEntry = configuration.getString(confKey, null); if (confEntry != null && !confEntry.isEmpty()) return confEntry.split(","); else return new String[0]; }
/** * Return the Language property value associated with the given key, or * {@code defaultValue} if the key cannot be resolved. * * @param key the property name to resolve * @return The Language property */ public Language getLanguage(String key) { return Language.valueOf(configuration.getString(key)); }
@Nullable protected final Path getPathOptionValue(String key) { String valueStr = _line.getOptionValue(key); if (valueStr != null) { _config.setProperty(key, valueStr); } return nullablePath(_config.getString(key)); }