@Deprecated public abstract class AbstractCollectionConverter extends AbstractConverter
Collection
converters.Modifier and Type | Field and Description |
---|---|
protected static char |
QUOTECHAR
Deprecated.
Quote char.
|
protected static String |
QUOTESTRING
Deprecated.
Quote string.
|
Constructor and Description |
---|
AbstractCollectionConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
convertToString(Object value)
Deprecated.
|
protected Object |
convertToType(Type targetType,
Object value)
Deprecated.
|
protected StreamTokenizer |
createStreamTokenizer(String value)
Deprecated.
Create and initializer a
StreamTokenizer to parse the value. |
ConverterManager |
getConverterManager()
Deprecated.
|
char |
getDelimiter()
Deprecated.
since 3.2M3 use
getDelimiters() instead |
String |
getDelimiters()
Deprecated.
|
protected Collection |
newCollection()
Deprecated.
|
protected Collection |
parseElements(String value,
Type genericType)
Deprecated.
Parse an incoming String of the form similar to an array initializer in the Java language into a
List individual Strings for each element, according to the following rules. |
void |
setAllowedChars(char[] allowedChars)
Deprecated.
since 3.2M3 use
setDelimiters(String) instead |
void |
setDelimiter(char delimiter)
Deprecated.
since 3.2M3 use
setDelimiters(String) instead |
void |
setDelimiters(String delimiter)
Deprecated.
Set the delimiter to be used for parsing a delimited String.
|
convert, convertToType
protected static final char QUOTECHAR
protected static final String QUOTESTRING
public ConverterManager getConverterManager()
public void setDelimiters(String delimiter)
delimiter
- The delimiter [default ", "]
since 3.2M3public String getDelimiters()
protected Object convertToType(Type targetType, Object value)
convertToType
in class AbstractConverter
protected Collection parseElements(String value, Type genericType)
Parse an incoming String of the form similar to an array initializer in the Java language into a
List
individual Strings for each element, according to the following rules.
value
- String value to be parsedgenericType
- the generic typeConversionException
- if the syntax of value
is not syntactically validNullPointerException
- if value
is null
protected Collection newCollection()
Collection
to fillprotected StreamTokenizer createStreamTokenizer(String value)
StreamTokenizer
to parse the value.value
- the string to parseStreamTokenizer
used to parse the stringprotected String convertToString(Object value)
convertToString
in class AbstractConverter
@Deprecated public char getDelimiter()
getDelimiters()
instead@Deprecated public void setAllowedChars(char[] allowedChars)
setDelimiters(String)
insteadallowedChars
- allowed characters@Deprecated public void setDelimiter(char delimiter)
setDelimiters(String)
insteaddelimiter
- the delimiterCopyright © 2004–2019 XWiki. All rights reserved.