public class IterableStringMapper extends java.lang.Object implements IValueMapper
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String | 
delim
The delimiter. 
 | 
protected java.lang.String | 
postfix
The string postfix. 
 | 
protected java.lang.String | 
prefix
The string prefix, 
 | 
protected IValueMapper | 
submapper
The optional submapper. 
 | 
| Constructor and Description | 
|---|
IterableStringMapper()
Create a new string mapper. 
 | 
IterableStringMapper(java.lang.String delim)
Create a new string mapper. 
 | 
IterableStringMapper(java.lang.String delim,
                    IValueMapper submapper)
Create a new string mapper. 
 | 
IterableStringMapper(java.lang.String prefix,
                    java.lang.String delim)
Create a new string mapper. 
 | 
IterableStringMapper(java.lang.String prefix,
                    java.lang.String delim,
                    java.lang.String postfix)
Create a new string mapper. 
 | 
IterableStringMapper(java.lang.String prefix,
                    java.lang.String delim,
                    java.lang.String postfix,
                    IValueMapper submapper)
Create a new string mapper. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
convertValue(java.lang.Object value)
Convert the given value. 
 | 
protected java.lang.String delim
protected java.lang.String prefix
protected java.lang.String postfix
protected IValueMapper submapper
public IterableStringMapper()
public IterableStringMapper(java.lang.String delim)
delim - The delimiter that is placed between elements.public IterableStringMapper(java.lang.String delim,
                            IValueMapper submapper)
delim - The delimiter that is placed between elements.submapper - The submapper that will be invoked for each element.public IterableStringMapper(java.lang.String prefix,
                            java.lang.String delim)
prefix - The prefix for the result string.delim - The delimiter that is placed between elements.public IterableStringMapper(java.lang.String prefix,
                            java.lang.String delim,
                            java.lang.String postfix)
prefix - The prefix for the result string.delim - The delimiter that is placed between elements.postfix - The postfix for the result string.public IterableStringMapper(java.lang.String prefix,
                            java.lang.String delim,
                            java.lang.String postfix,
                            IValueMapper submapper)
prefix - The prefix for the result string.delim - The delimiter that is placed between elements.postfix - The postfix for the result string.submapper - The submapper that will be invoked for each element.public java.lang.Object convertValue(java.lang.Object value)
                              throws java.lang.Exception
convertValue in interface IValueMappervalue - The value to convert.java.lang.Exception