public List<String> getTechnicalEmail() { return StringUtility.splitStringCommaSpace(technicalEmail); }
public List<String> getBillingEmail() { return StringUtility.splitStringCommaSpace(billingEmail); }
/** * Gets the list of protocols in preferred order. */ static List<String> getProtocols() throws IOException { return StringUtility.splitStringCommaSpace(getProperty("aoserv.client.protocols")); }
/** * Gets a unique set of trimmed strings. Must have at least one value when required. */ public Set<String> getUniqueStrings(String propertyName, boolean required) throws AppClusterConfigurationException { String paramValue = getString(propertyName, required); if(paramValue==null) return Collections.emptySet(); List<String> values = StringUtility.splitStringCommaSpace(paramValue); Set<String> set = new LinkedHashSet<String>(values.size()*4/3+1); for(String value : values) { value = value.trim(); if(value.length()>0 && !set.add(value)) { throw new AppClusterConfigurationException( ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getStrings.duplicate", propertyName, value) ); } } if(required && set.isEmpty()) throw new AppClusterConfigurationException(ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getString.missingValue", propertyName)); return AoCollections.optimalUnmodifiableSet(set); }
for(String dayStr : StringUtility.splitStringCommaSpace(recurring.substring(3))) { boolean found = false; for(DayOfWeek dow : allDaysOfWeek) { for(String monthStr : StringUtility.splitStringCommaSpace(recurring.substring(3))) { boolean found = false; for(Month month : allMonths) {
/** * Gets a unique set of trimmed names. Must have at least one value. */ public Set<? extends Name> getUniqueNames(String propertyName) throws AppClusterConfigurationException { try { List<String> values = StringUtility.splitStringCommaSpace(getString(propertyName, true)); Set<Name> set = new LinkedHashSet<Name>(values.size()*4/3+1); for(String value : values) { value = value.trim(); if(value.length()>0 && !set.add(Name.fromString(value))) { throw new AppClusterConfigurationException( ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getStrings.duplicate", propertyName, value) ); } } if(set.isEmpty()) throw new AppClusterConfigurationException(ApplicationResources.accessor.getMessage("AppClusterPropertiesConfiguration.getString.missingValue", propertyName)); return AoCollections.optimalUnmodifiableSet(set); } catch(TextParseException exc) { throw new AppClusterConfigurationException(exc); } }
return matchNone; } else { List<String> list = StringUtility.splitStringCommaSpace(patterns);