Package de.xima.fc.gui.common.converter
Class PlaceholderStringListConverter
- java.lang.Object
-
- de.xima.fc.gui.component.tagify.AStringListConverter
-
- de.xima.fc.gui.common.converter.PlaceholderStringListConverter
-
- All Implemented Interfaces:
IListConverter
- Direct Known Subclasses:
MailAddressListConverter
public class PlaceholderStringListConverter extends AStringListConverter
A converter for a list of Strings that respects placeholders. Strings are splitted by the given delimiters. This makes sure that if a delimiter occurs within a placeholder, the placeholder is not split. See the correspondingMailAddressListConverterTest
for examples.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static IListConverter
COMMA_TO_SELICOLON_COMMA_SPACE
Splits by commas.static IListConverter
SEMICOLON_COMMA
Splits email addresses by semicolons or commas.static IListConverter
SEMICOLON_COMMA_SPACE
Splits email addresses by semicolons, commas or spaces.
-
Constructor Summary
Constructors Constructor Description PlaceholderStringListConverter(char mainDelimiter, String delimiters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator<String>
split(String value)
-
Methods inherited from class de.xima.fc.gui.component.tagify.AStringListConverter
convertToList, convertToObject, getMainDelimiter
-
-
-
-
Field Detail
-
SEMICOLON_COMMA
public static final IListConverter SEMICOLON_COMMA
Splits email addresses by semicolons or commas. This constant is used in XHTML pages, if you rename this, search for occurrences in XHTML pages as well.
-
SEMICOLON_COMMA_SPACE
public static final IListConverter SEMICOLON_COMMA_SPACE
Splits email addresses by semicolons, commas or spaces. This constant is used in XHTML pages, if you rename this, search for occurrences in XHTML pages as well.
-
COMMA_TO_SELICOLON_COMMA_SPACE
public static final IListConverter COMMA_TO_SELICOLON_COMMA_SPACE
Splits by commas. This constant is used in XHTML pages, if you rename this, search for occurrences in XHTML pages as well.
-
-
Constructor Detail
-
PlaceholderStringListConverter
public PlaceholderStringListConverter(char mainDelimiter, String delimiters)
-
-
Method Detail
-
split
protected Iterator<String> split(String value)
- Specified by:
split
in classAStringListConverter
-
-