@Override protected void addAttributesTo(Map<PropertyDescriptorField, String> attributes) { super.addAttributesTo(attributes); attributes.put(PropertyDescriptorField.DELIMITER, Character.toString(multiValueDelimiter())); }
@Override public List<V> valueFrom(String valueString) throws IllegalArgumentException { if (StringUtils.isBlank(valueString)) { return Collections.emptyList(); } String[] strValues = valueString.split(Pattern.quote("" + multiValueDelimiter())); List<V> values = new ArrayList<>(strValues.length); for (String strValue : strValues) { values.add(createFrom(strValue)); } return values; }
@Override public final String asDelimitedString(List<V> values) { return asDelimitedString(values, multiValueDelimiter()); }
/** * Returns a string representation of the default value. * * @return A string representation of the default value. */ @Override protected String defaultAsString() { return asDelimitedString(defaultValue(), multiValueDelimiter()); }
@Override protected void addAttributesTo(Map<PropertyDescriptorField, String> attributes) { super.addAttributesTo(attributes); attributes.put(PropertyDescriptorField.DELIMITER, Character.toString(multiValueDelimiter())); }
@Override public List<V> valueFrom(String valueString) throws IllegalArgumentException { if (StringUtils.isBlank(valueString)) { return Collections.emptyList(); } String[] strValues = valueString.split(Pattern.quote("" + multiValueDelimiter())); List<V> values = new ArrayList<>(strValues.length); for (String strValue : strValues) { values.add(createFrom(strValue)); } return values; }
@Override public final String asDelimitedString(List<V> values) { return asDelimitedString(values, multiValueDelimiter()); }
/** * Returns a string representation of the default value. * * @return A string representation of the default value. */ @Override protected String defaultAsString() { return asDelimitedString(defaultValue(), multiValueDelimiter()); }